pub struct Spectrum {
pub scan_index: usize,
pub retention_time: f64,
pub peaks: Vec<Peak>,
pub ms_level: u8,
pub isolation_window: Option<IsolationWindow>,
pub faims_cv: Option<f32>,
}Expand description
A single mass spectrum with all its peaks.
Fields§
§scan_index: usize0-based sequential index (scan number in the run)
retention_time: f64Retention time in minutes
peaks: Vec<Peak>Peaks sorted by mz ascending
ms_level: u81 for MS1, 2 for MS2, etc.
isolation_window: Option<IsolationWindow>Precursor isolation window (only set for MS2 spectra)
faims_cv: Option<f32>FAIMS compensation voltage for this scan, in volts. None when the
acquisition does not use FAIMS or the source format does not expose it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spectrum
impl RefUnwindSafe for Spectrum
impl Send for Spectrum
impl Sync for Spectrum
impl Unpin for Spectrum
impl UnsafeUnpin for Spectrum
impl UnwindSafe for Spectrum
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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