Trait mzdata::spectrum::spectrum::SpectrumBehavior [−][src]
pub trait SpectrumBehavior { fn description(&self) -> &SpectrumDescription; fn peaks(&self) -> PeakDataLevel<'_>; fn acquisition(&self) -> &Acquisition { ... } fn precursor(&self) -> Option<&Precursor> { ... } fn start_time(&self) -> f64 { ... } fn ms_level(&self) -> u8 { ... } fn id(&self) -> &str { ... } fn index(&self) -> usize { ... } }
Expand description
A trait for providing a uniform delegated access to spectrum metadata
Required methods
fn description(&self) -> &SpectrumDescription
fn description(&self) -> &SpectrumDescription
The method to access the spectrum description itself, which supplies the data for most other methods on this trait.
fn peaks(&self) -> PeakDataLevel<'_>
fn peaks(&self) -> PeakDataLevel<'_>
Retrieve the most processed representation of the mass spectrum’s signal
Provided methods
fn acquisition(&self) -> &Acquisition
fn acquisition(&self) -> &Acquisition
Access the acquisition information for this spectrum.
fn start_time(&self) -> f64
fn start_time(&self) -> f64
A shortcut method to retrieve the scan start time of a spectrum.