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

The method to access the spectrum description itself, which supplies the data for most other methods on this trait.

Retrieve the most processed representation of the mass spectrum’s signal

Provided methods

Access the acquisition information for this spectrum.

Access the precursor information, if it exists.

A shortcut method to retrieve the scan start time of a spectrum.

Access the MS exponentiation level

Access the native ID string for the spectrum

Access the index of the spectrum in the source file

Implementors