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>The list of scans that were acquired and combined to make a spectrum
combination: ScanCombinationHow the scans were combined to make the single spectrum.
params: Option<Box<ParamList>>Lazily initialized ParamList
Implementations§
Source§impl Acquisition
impl Acquisition
Sourcepub fn start_time(&self) -> f64
pub fn start_time(&self) -> f64
Get the ScanEvent::start_time of Self::first_scan or 0.0 if empty.
Sourcepub fn first_scan(&self) -> Option<&ScanEvent>
pub fn first_scan(&self) -> Option<&ScanEvent>
An alias of self.scans.first()
Sourcepub fn first_scan_mut(&mut self) -> Option<&mut ScanEvent>
pub fn first_scan_mut(&mut self) -> Option<&mut ScanEvent>
If the self.scans.is_empty(), create a new default ScanEvent, and then
self.scans.first_mut()
Sourcepub fn last_scan(&self) -> Option<&ScanEvent>
pub fn last_scan(&self) -> Option<&ScanEvent>
As Self::first_scan but for last
Sourcepub fn last_scan_mut(&mut self) -> Option<&mut ScanEvent>
pub fn last_scan_mut(&mut self) -> Option<&mut ScanEvent>
As Self::first_scan_mut but for last. Also creates a ScanEvent
if it is missing.
Sourcepub fn instrument_configuration_ids(&self) -> Vec<u32>
pub fn instrument_configuration_ids(&self) -> Vec<u32>
Get the list of [InstrumentConfiguration::id] referenced by this set of scans
Trait Implementations§
Source§impl Clone for Acquisition
impl Clone for Acquisition
Source§impl Debug for Acquisition
impl Debug for Acquisition
Source§impl Default for Acquisition
impl Default for Acquisition
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 nameSource§impl PartialEq for Acquisition
impl PartialEq for Acquisition
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 UnsafeUnpin 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