pub struct Precursor {
pub ions: Vec<SelectedIon>,
pub isolation_window: IsolationWindow,
pub precursor_id: Option<String>,
pub product_id: Option<String>,
pub activation: Activation,
}
Expand description
Describes the precursor ion of the owning spectrum.
Fields§
§ions: Vec<SelectedIon>
Describes the selected ion’s properties
isolation_window: IsolationWindow
Describes the isolation window around the selected ion
precursor_id: Option<String>
The precursor scan ID, if given
product_id: Option<String>
The product scan ID, if given
activation: Activation
The activation process applied to the precursor ion
Implementations§
Source§impl Precursor
impl Precursor
Sourcepub fn precursor_spectrum<C, D, S, R>(&self, source: &mut R) -> Option<S>where
C: CentroidPeakAdapting,
D: DeconvolutedPeakAdapting,
S: SpectrumLike<C, D>,
R: SpectrumSource<C, D, S>,
pub fn precursor_spectrum<C, D, S, R>(&self, source: &mut R) -> Option<S>where
C: CentroidPeakAdapting,
D: DeconvolutedPeakAdapting,
S: SpectrumLike<C, D>,
R: SpectrumSource<C, D, S>,
Given a SpectrumSource object, look up the precursor scan in it. This is useful when examining the area around where the precursor ion was or to obtain a snapshot of the retention time when the spectrum was scheduled.
Sourcepub fn product_spectrum<C, D, S, R>(&self, source: &mut R) -> Option<S>where
C: CentroidPeakAdapting,
D: DeconvolutedPeakAdapting,
S: SpectrumLike<C, D>,
R: SpectrumSource<C, D, S>,
pub fn product_spectrum<C, D, S, R>(&self, source: &mut R) -> Option<S>where
C: CentroidPeakAdapting,
D: DeconvolutedPeakAdapting,
S: SpectrumLike<C, D>,
R: SpectrumSource<C, D, S>,
Given a SpectrumSource object, look up the product scan in it.
This is rarely needed unless you have manually separated Precursor
objects from their spectra.
Trait Implementations§
Source§impl PrecursorSelection for Precursor
impl PrecursorSelection for Precursor
Source§fn ion(&self) -> &SelectedIon
fn ion(&self) -> &SelectedIon
Describes the selected ion’s properties
Source§fn isolation_window(&self) -> &IsolationWindow
fn isolation_window(&self) -> &IsolationWindow
Describes the isolation window around the selected ion
Source§fn precursor_id(&self) -> Option<&String>
fn precursor_id(&self) -> Option<&String>
The precursor scan ID, if given
Source§fn product_id(&self) -> Option<&String>
fn product_id(&self) -> Option<&String>
The product scan ID, if given
Source§fn activation(&self) -> &Activation
fn activation(&self) -> &Activation
The activation process applied to the precursor ion
fn ion_mut(&mut self) -> &mut SelectedIon
fn activation_mut(&mut self) -> &mut Activation
fn isolation_window_mut(&mut self) -> &mut IsolationWindow
fn iter(&self) -> impl Iterator<Item = &SelectedIon>
fn iter_mut(&mut self) -> impl Iterator<Item = &mut SelectedIon>
fn add_ion(&mut self, ion: SelectedIon)
fn last_ion_mut(&mut self) -> &mut SelectedIon
fn last_ion(&self) -> &SelectedIon
impl StructuralPartialEq for Precursor
Auto Trait Implementations§
impl Freeze for Precursor
impl RefUnwindSafe for Precursor
impl Send for Precursor
impl Sync for Precursor
impl Unpin for Precursor
impl UnwindSafe for Precursor
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