pub struct Chromatogram {
pub arrays: BinaryArrayMap,
/* private fields */
}Expand description
Chromatograms record measures over time, and may be derived from mass spectra or other forms of detectors.
Chromatograms might be better called “traces”.
Fields§
§arrays: BinaryArrayMapImplementations§
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 chromatogram 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>
Source§fn description_mut(&mut self) -> &mut ChromatogramDescription
fn description_mut(&mut self) -> &mut ChromatogramDescription
The method to mutably access the chromatogram description itself, which supplies
the data for most other methods on this trait.
Source§fn precursor(&self) -> Option<&Precursor>
fn precursor(&self) -> Option<&Precursor>
Access the (first) precursor information, if it exists.
Source§fn precursor_iter(&self) -> impl Iterator<Item = &Precursor>
fn precursor_iter(&self) -> impl Iterator<Item = &Precursor>
Iterate over all precursors of the chromatogram
Source§fn precursor_mut(&mut self) -> Option<&mut Precursor>
fn precursor_mut(&mut self) -> Option<&mut Precursor>
Mutably access the (first) precursor information, if it exists
Source§fn product_mut(&mut self) -> Option<&mut Product>
fn product_mut(&mut self) -> Option<&mut Product>
Mutably access the (first) product, if it exists
Source§fn precursor_iter_mut(&mut self) -> impl Iterator<Item = &mut Precursor>
fn precursor_iter_mut(&mut self) -> impl Iterator<Item = &mut Precursor>
Iterate over all precursors of the chromatogram mutably
Source§fn add_precursor(&mut self, precursor: Precursor)
fn add_precursor(&mut self, precursor: Precursor)
Add a precursor to the list of precursors for this chromatogram. Read more
Source§fn remove_precursor(&mut self, index: usize) -> Precursor
fn remove_precursor(&mut self, index: usize) -> Precursor
Remove the precursor entry at
index in the precursor list. Read morefn start_time(&self) -> Option<f64>
fn end_time(&self) -> Option<f64>
fn chromatogram_type(&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§impl Debug for Chromatogram
impl Debug for Chromatogram
Source§impl Default for Chromatogram
impl Default for Chromatogram
Source§impl ParamDescribed for Chromatogram
impl ParamDescribed for Chromatogram
Source§fn params_mut(&mut self) -> &mut ParamList
fn params_mut(&mut self) -> &mut ParamList
Obtain an mutable slice over the encapsulated
Param listSource§fn extend_params(&mut self, it: impl IntoIterator<Item = Param>)
fn extend_params(&mut self, it: impl IntoIterator<Item = Param>)
Add all parameters from an iterator of
Param to the entitySource§fn get_param_by_name(&self, name: &str) -> Option<&Param>
fn get_param_by_name(&self, name: &str) -> Option<&Param>
Find the first
Param whose name matches nameSource§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 CoordinateRangeAuto Trait Implementations§
impl Freeze for Chromatogram
impl RefUnwindSafe for Chromatogram
impl Send for Chromatogram
impl Sync for Chromatogram
impl Unpin for Chromatogram
impl UnsafeUnpin 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