pub struct SpectrumGroup<C = CentroidPeak, D = DeconvolutedPeak, S = MultiLayerSpectrum<C, D>>{
pub precursor: Option<S>,
pub products: Vec<S>,
/* private fields */
}Expand description
A pairing of an optional MS1 spectrum with all its associated MSn spectra.
Fields§
§precursor: Option<S>The MS1 spectrum of a group. This may be absent when the source does not contain any MS1 spectra
products: Vec<S>The collection of related MSn spectra. If MSn for n > 2 is used, all levels are present in this collection, though there is no ordering guarantee.
Implementations§
Source§impl<'a, C, D, S> SpectrumGroup<C, D, S>
impl<'a, C, D, S> SpectrumGroup<C, D, S>
Trait Implementations§
Source§impl<C, D, S> Clone for SpectrumGroup<C, D, S>
impl<C, D, S> Clone for SpectrumGroup<C, D, S>
Source§impl<C, D, S> Debug for SpectrumGroup<C, D, S>
impl<C, D, S> Debug for SpectrumGroup<C, D, S>
Source§impl<C: CentroidLike, D: DeconvolutedCentroidLike, S: SpectrumLike<C, D>> Default for SpectrumGroup<C, D, S>
impl<C: CentroidLike, D: DeconvolutedCentroidLike, S: SpectrumLike<C, D>> Default for SpectrumGroup<C, D, S>
Source§impl<C, D, S> IntoIterator for SpectrumGroup<C, D, S>
impl<C, D, S> IntoIterator for SpectrumGroup<C, D, S>
Source§impl<C, D, S> PartialEq for SpectrumGroup<C, D, S>where
C: CentroidLike + PartialEq,
D: DeconvolutedCentroidLike + PartialEq,
S: SpectrumLike<C, D> + PartialEq,
impl<C, D, S> PartialEq for SpectrumGroup<C, D, S>where
C: CentroidLike + PartialEq,
D: DeconvolutedCentroidLike + PartialEq,
S: SpectrumLike<C, D> + PartialEq,
Source§impl<C, D, S> SpectrumGrouping<C, D, S> for SpectrumGroup<C, D, S>
impl<C, D, S> SpectrumGrouping<C, D, S> for SpectrumGroup<C, D, S>
Source§fn precursor_mut(&mut self) -> Option<&mut S>
fn precursor_mut(&mut self) -> Option<&mut S>
Get a mutable reference to the precursor spectrum, which may be absent
Source§fn set_precursor(&mut self, prec: S)
fn set_precursor(&mut self, prec: S)
Explicitly set the precursor spectrum directly.
Source§fn products_mut(&mut self) -> &mut Vec<S>
fn products_mut(&mut self) -> &mut Vec<S>
Get a mutable reference to the collection of product spectra
Source§fn into_parts(self) -> (Option<S>, Vec<S>)
fn into_parts(self) -> (Option<S>, Vec<S>)
Decompose the group into its components, discarding any additional metrics
Source§fn total_spectra(&self) -> usize
fn total_spectra(&self) -> usize
The total number of spectra in the group
Source§fn earliest_spectrum(&self) -> Option<&S>
fn earliest_spectrum(&self) -> Option<&S>
The spectrum that occurred first chronologically
Source§fn latest_spectrum(&self) -> Option<&S>
fn latest_spectrum(&self) -> Option<&S>
The spectrum that occurred last chronologically
impl<C, D, S> StructuralPartialEq for SpectrumGroup<C, D, S>where
C: CentroidLike + PartialEq,
D: DeconvolutedCentroidLike + PartialEq,
S: SpectrumLike<C, D> + PartialEq,
Auto Trait Implementations§
impl<C, D, S> Freeze for SpectrumGroup<C, D, S>
impl<C, D, S> RefUnwindSafe for SpectrumGroup<C, D, S>where
Option<S>: RefUnwindSafe,
Vec<S>: RefUnwindSafe,
PhantomData<C>: RefUnwindSafe,
PhantomData<D>: RefUnwindSafe,
impl<C, D, S> Send for SpectrumGroup<C, D, S>
impl<C, D, S> Sync for SpectrumGroup<C, D, S>
impl<C, D, S> Unpin for SpectrumGroup<C, D, S>
impl<C, D, S> UnsafeUnpin for SpectrumGroup<C, D, S>where
Option<S>: UnsafeUnpin,
Vec<S>: UnsafeUnpin,
PhantomData<C>: UnsafeUnpin,
PhantomData<D>: UnsafeUnpin,
impl<C, D, S> UnwindSafe for SpectrumGroup<C, D, S>where
Option<S>: UnwindSafe,
Vec<S>: UnwindSafe,
PhantomData<C>: UnwindSafe,
PhantomData<D>: UnwindSafe,
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