pub struct Component {
pub component_type: ComponentType,
pub order: u8,
pub params: Vec<Param>,
}Expand description
A description of a combination of parts that are described as part of an InstrumentConfiguration.
There may be more than one component of the same type in a singel configuration, e.g. a triple-quad instrument
can have three separate ComponentType::Analyzer components.
A component may also be described by more than one Param, such as the
Fields§
§component_type: ComponentTypeThe kind of component this describes
order: u8The order in the sequence of components that the analytes interact with
params: Vec<Param>Implementations§
Source§impl Component
impl Component
pub fn mass_analyzer(&self) -> Option<MassAnalyzerTerm>
pub fn detector(&self) -> Option<DetectorTypeTerm>
pub fn ionization_type(&self) -> Option<IonizationTypeTerm>
pub fn name(&self) -> Option<&str>
pub fn parent_types(&self) -> Vec<ParamCow<'static>>
Trait Implementations§
Source§impl ParamDescribed for Component
impl ParamDescribed for Component
Source§fn params_mut(&mut self) -> &mut Vec<Param>
fn params_mut(&mut self) -> &mut Vec<Param>
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 nameimpl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.