pub struct BrukerTimsDataLibrary {
pub lib: Library,
pub handle: u64,
}
Fields§
§lib: Library
§handle: u64
Implementations§
Source§impl BrukerTimsDataLibrary
impl BrukerTimsDataLibrary
pub fn new( bruker_lib_path: &str, data_path: &str, ) -> Result<BrukerTimsDataLibrary, Box<dyn Error>>
pub fn tims_close(&self) -> Result<(), Box<dyn Error>>
pub fn tims_index_to_mz( &self, frame_id: u32, dbl_tofs: &[c_double], mzs: &mut [c_double], ) -> Result<(), Box<dyn Error>>
pub fn tims_mz_to_index( &self, frame_id: u32, mzs: &[c_double], indices: &mut [c_double], ) -> Result<(), Box<dyn Error>>
pub fn tims_scan_to_inv_mob( &self, frame_id: u32, dbl_scans: &[c_double], inv_mob: &mut [c_double], ) -> Result<(), Box<dyn Error>>
pub fn inv_mob_to_tims_scan( &self, frame_id: u32, inv_mob: &[c_double], scans: &mut [c_double], ) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BrukerTimsDataLibrary
impl RefUnwindSafe for BrukerTimsDataLibrary
impl Send for BrukerTimsDataLibrary
impl Sync for BrukerTimsDataLibrary
impl Unpin for BrukerTimsDataLibrary
impl UnwindSafe for BrukerTimsDataLibrary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.