pub struct InstrumentConfiguration {
pub components: Vec<Component>,
pub params: ParamList,
pub software_reference: String,
pub id: u32,
}Expand description
A series of mass spectrometer components that together were engaged to acquire a mass spectrum
Fields§
§components: Vec<Component>The set of components involved
params: ParamListA set of parameters that describe the instrument such as the model name or serial number
software_reference: StringA reference to the data acquisition software involved in processing this configuration
id: u32A unique identifier translated to an ordinal identifying this configuration
Implementations§
Source§impl InstrumentConfiguration
impl InstrumentConfiguration
Sourcepub fn new_component(&mut self, component_type: ComponentType) -> &mut Component
pub fn new_component(&mut self, component_type: ComponentType) -> &mut Component
Add a new Component to the configuration, added at the end of the list
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn push(&mut self, value: Component)
pub fn push(&mut self, value: Component)
Add a new Component to the end of the list, setting the Component::order field
accordingly.
pub fn iter(&self) -> Iter<'_, Component> ⓘ
pub fn last(&self) -> Option<&Component>
pub fn last_mut(&mut self) -> Option<&mut Component>
Trait Implementations§
Source§impl Clone for InstrumentConfiguration
impl Clone for InstrumentConfiguration
Source§fn clone(&self) -> InstrumentConfiguration
fn clone(&self) -> InstrumentConfiguration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstrumentConfiguration
impl Debug for InstrumentConfiguration
Source§impl Default for InstrumentConfiguration
impl Default for InstrumentConfiguration
Source§fn default() -> InstrumentConfiguration
fn default() -> InstrumentConfiguration
Returns the “default value” for a type. Read more
impl Eq for InstrumentConfiguration
Source§impl ParamDescribed for InstrumentConfiguration
impl ParamDescribed for InstrumentConfiguration
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 InstrumentConfiguration
impl PartialEq for InstrumentConfiguration
impl StructuralPartialEq for InstrumentConfiguration
Auto Trait Implementations§
impl Freeze for InstrumentConfiguration
impl RefUnwindSafe for InstrumentConfiguration
impl Send for InstrumentConfiguration
impl Sync for InstrumentConfiguration
impl Unpin for InstrumentConfiguration
impl UnsafeUnpin for InstrumentConfiguration
impl UnwindSafe for InstrumentConfiguration
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