Struct mzdata::spectrum::spectrum::Spectrum[][src]

pub struct Spectrum {
    pub description: SpectrumDescription,
    pub arrays: Option<BinaryArrayMap>,
    pub peaks: Option<PeakSet>,
}
Expand description

Represent a spectrum with multiple layers of representation of the peak data.

Not directly used at this time

Fields

description: SpectrumDescription

The spectrum metadata describing acquisition conditions and details.

arrays: Option<BinaryArrayMap>

The (potentially absent) data arrays describing the m/z, intensity, and potentially other measured properties

peaks: Option<PeakSet>

Implementations

Convert a spectrum into a CentroidSpectrum

Convert a spectrum into a RawSpectrum

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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.

Access the precursor information, if it exists.

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

Access the MS exponentiation level

Access the native ID string for the spectrum

Access the index of the spectrum in the source file

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.