Struct mzdata::spectrum::Acquisition
source · pub struct Acquisition {
pub scans: Vec<ScanEvent>,
pub combination: ScanCombination,
pub params: Option<Box<ParamList>>,
}
Expand description
Describe the series of acquisition events that constructed the spectrum being described.
Fields§
§scans: Vec<ScanEvent>
§combination: ScanCombination
§params: Option<Box<ParamList>>
Implementations§
source§impl Acquisition
impl Acquisition
pub fn start_time(&self) -> f64
pub fn first_scan(&self) -> Option<&ScanEvent>
pub fn first_scan_mut(&mut self) -> Option<&mut ScanEvent>
pub fn last_scan(&self) -> Option<&ScanEvent>
pub fn last_scan_mut(&mut self) -> Option<&mut ScanEvent>
pub fn instrument_configuration_ids(&self) -> Vec<u32>
pub fn iter(&self) -> impl Iterator<Item = &ScanEvent>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut ScanEvent>
Trait Implementations§
source§impl Clone for Acquisition
impl Clone for Acquisition
source§fn clone(&self) -> Acquisition
fn clone(&self) -> Acquisition
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 Acquisition
impl Debug for Acquisition
source§impl Default for Acquisition
impl Default for Acquisition
source§fn default() -> Acquisition
fn default() -> Acquisition
Returns the “default value” for a type. Read more
source§impl ParamDescribed for Acquisition
impl ParamDescribed for Acquisition
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 name
source§fn iter_params(&self) -> Iter<'_, Param>
fn iter_params(&self) -> Iter<'_, Param>
Iterate over the encapsulated parameter list
source§fn iter_params_mut(&mut self) -> IterMut<'_, Param>
fn iter_params_mut(&mut self) -> IterMut<'_, Param>
Iterate mutably over the encapsulated parameter list
source§impl PartialEq for Acquisition
impl PartialEq for Acquisition
source§fn eq(&self, other: &Acquisition) -> bool
fn eq(&self, other: &Acquisition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Acquisition
Auto Trait Implementations§
impl Freeze for Acquisition
impl RefUnwindSafe for Acquisition
impl Send for Acquisition
impl Sync for Acquisition
impl Unpin for Acquisition
impl UnwindSafe for Acquisition
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§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.