pub struct Activation {
pub energy: f32,
pub params: ParamList,
/* private fields */
}Expand description
Describes the activation method used to dissociate the precursor ion
Fields§
§energy: f32The energy used to dissociate the precursor(s). This will eventually cease to be a raw f32.
params: ParamListAny additional Param describing the activation process
Implementations§
Source§impl Activation
impl Activation
Sourcepub fn method(&self) -> Option<&DissociationMethodTerm>
pub fn method(&self) -> Option<&DissociationMethodTerm>
Get a reference to the first activation method, if it exists
Sourcepub fn method_mut(&mut self) -> Option<&mut DissociationMethodTerm>
pub fn method_mut(&mut self) -> Option<&mut DissociationMethodTerm>
Get a mutable reference to the first activation method, if it exists
Sourcepub fn methods(&self) -> &[DissociationMethodTerm]
pub fn methods(&self) -> &[DissociationMethodTerm]
Get a slice over all of the activation methods used.
Sourcepub fn methods_mut(&mut self) -> &mut Vec<DissociationMethodTerm>
pub fn methods_mut(&mut self) -> &mut Vec<DissociationMethodTerm>
Get a mutable reference to a Vec of activation methods, which may be useful
for adding or removing methods.
Sourcepub fn is_combined(&self) -> bool
pub fn is_combined(&self) -> bool
Check if multiple dissociation methods were used
Sourcepub fn is_param_activation<P: ParamLike>(p: &P) -> bool
pub fn is_param_activation<P: ParamLike>(p: &P) -> bool
Check if a ParamLike type references an activation method
Sourcepub fn accession_to_activation(accession: AccessionIntCode) -> bool
pub fn accession_to_activation(accession: AccessionIntCode) -> bool
Translate an integer accession ID into a DissociationMethodTerm if possible to detect
if it refers to a dissociation method.
pub fn _extract_methods_from_params(&mut self)
Trait Implementations§
Source§impl Clone for Activation
impl Clone for Activation
Source§impl Debug for Activation
impl Debug for Activation
Source§impl Default for Activation
impl Default for Activation
Source§impl ParamDescribed for Activation
impl ParamDescribed for Activation
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 Activation
impl PartialEq for Activation
impl StructuralPartialEq for Activation
Auto Trait Implementations§
impl Freeze for Activation
impl RefUnwindSafe for Activation
impl Send for Activation
impl Sync for Activation
impl Unpin for Activation
impl UnsafeUnpin for Activation
impl UnwindSafe for Activation
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