Struct mzdata::spectrum::spectrum::CentroidSpectrum[][src]

pub struct CentroidSpectrum {
    pub description: SpectrumDescription,
    pub peaks: PeakSet,
}
Expand description

Represents a spectrum that has been centroided

Fields

description: SpectrumDescription

The spectrum metadata describing acquisition conditions and details.

peaks: PeakSet

The picked centroid peaks

Implementations

Convert a spectrum into a Spectrum

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

Retrieve a spectrum by it’s native ID

Retrieve a spectrum by it’s integer index

Return the data stream to the beginning

Retrieve the number of spectra in source file

Retrieve a spectrum by its scan start time

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.