Struct mzdata::spectrum::spectrum::RawSpectrum [−][src]
pub struct RawSpectrum { pub description: SpectrumDescription, pub arrays: BinaryArrayMap, }
Expand description
Represents a spectrum that hasn’t been processed yet, with only data arrays, potentially no discrete peaks.
Fields
description: SpectrumDescription
The spectrum metadata describing acquisition conditions and details.
arrays: BinaryArrayMap
The data arrays describing the m/z, intensity, and potentially other measured properties
Implementations
Convert a spectrum into a CentroidSpectrum
Convert a spectrum into a Spectrum
Trait Implementations
Returns the “default value” for a type. Read more
The iterator can also be updated to move to a different location in the stream efficiently.
They can also be used to fetch specific spectra by ID, index, or start
time when the underlying file stream supports io::Seek
.
Retrieve a spectrum by it’s native ID
Retrieve a spectrum by it’s integer index
Retrieve a spectrum by its scan start time
fn iter(&mut self) -> ScanIterator<'_, Self, S>ⓘNotable traits for ScanIterator<'lifespan, R, S>
impl<'lifespan, R: ScanSource<S>, S: SpectrumBehavior> Iterator for ScanIterator<'lifespan, R, S> type Item = S;
The method to access the spectrum description itself, which supplies the data for most other methods on this trait. Read more
Retrieve the most processed representation of the mass spectrum’s signal Read more
Access the acquisition information for this spectrum.
A shortcut method to retrieve the scan start time of a spectrum. Read more
Auto Trait Implementations
impl RefUnwindSafe for RawSpectrum
impl Send for RawSpectrum
impl Sync for RawSpectrum
impl Unpin for RawSpectrum
impl UnwindSafe for RawSpectrum
Blanket Implementations
Mutably borrows from an owned value. Read more