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 PartialEq for Precursor
impl PartialEq for Precursor
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
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 moresource§impl<T> IonProperties for Twhere
T: PrecursorSelection,
impl<T> IonProperties for Twhere
T: PrecursorSelection,
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§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 moresource§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).source§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.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.