Struct mzdata::spectrum::Chromatogram
source · pub struct Chromatogram {
pub arrays: BinaryArrayMap,
/* private fields */
}
Fields§
§arrays: BinaryArrayMap
Implementations§
source§impl Chromatogram
impl Chromatogram
pub fn new(description: ChromatogramDescription, arrays: BinaryArrayMap) -> Self
pub fn time(&self) -> Result<Cow<'_, [f64]>, ArrayRetrievalError>
pub fn intensity(&self) -> Result<Cow<'_, [f32]>, ArrayRetrievalError>
pub fn apex_time(&self) -> Option<f64>
pub fn area(&self) -> f32
Trait Implementations§
source§impl ChromatogramLike for Chromatogram
impl ChromatogramLike for Chromatogram
source§fn description(&self) -> &ChromatogramDescription
fn description(&self) -> &ChromatogramDescription
The method to access the spectrum description itself, which supplies
the data for most other methods on this trait.
fn time(&self) -> Result<Cow<'_, [f64]>, ArrayRetrievalError>
fn intensity(&self) -> Result<Cow<'_, [f32]>, ArrayRetrievalError>
fn description_mut(&mut self) -> &mut ChromatogramDescription
fn start_time(&self) -> Option<f64>
fn end_time(&self) -> Option<f64>
fn chromatogram_typ(&self) -> ChromatogramType
fn polarity(&self) -> ScanPolarity
fn is_aggregate(&self) -> bool
fn is_electromagnetic_radiation(&self) -> bool
fn is_ion_current(&self) -> bool
source§impl Clone for Chromatogram
impl Clone for Chromatogram
source§fn clone(&self) -> Chromatogram
fn clone(&self) -> Chromatogram
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Chromatogram
impl Debug for Chromatogram
source§impl Default for Chromatogram
impl Default for Chromatogram
source§fn default() -> Chromatogram
fn default() -> Chromatogram
Returns the “default value” for a type. Read more
source§impl ParamDescribed for Chromatogram
impl ParamDescribed for Chromatogram
fn params(&self) -> &[Param]
fn params_mut(&mut self) -> &mut ParamList
fn add_param(&mut self, param: Param)
fn remove_param(&mut self, index: usize) -> Param
fn get_param_by_name(&self, name: &str) -> Option<&Param>
fn get_param_by_curie(&self, curie: &CURIE) -> Option<&Param>
fn get_param_by_accession(&self, accession: &str) -> Option<&Param>
source§impl TimeInterval<Time> for Chromatogram
impl TimeInterval<Time> for Chromatogram
source§fn start_time(&self) -> Option<f64>
fn start_time(&self) -> Option<f64>
The earliest time point recorded
source§fn apex_time(&self) -> Option<f64>
fn apex_time(&self) -> Option<f64>
The time point where the feature reaches its greatest intensity
source§fn as_range(&self) -> CoordinateRange<T>
fn as_range(&self) -> CoordinateRange<T>
Represent the
TimeInterval
into a CoordinateRange
Auto Trait Implementations§
impl Freeze for Chromatogram
impl RefUnwindSafe for Chromatogram
impl Send for Chromatogram
impl Sync for Chromatogram
impl Unpin for Chromatogram
impl UnwindSafe for Chromatogram
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.