Skip to main content

DissociationEnergyTerm

Enum DissociationEnergyTerm 

Source
pub enum DissociationEnergyTerm {
    CollisionEnergy(f32),
    NormalizedCollisionEnergy(f32),
    CollisionEnergyRampStart(f32),
    CollisionEnergyRampEnd(f32),
    PercentCollisionEnergyRampStart(f32),
    PercentCollisionEnergyRampEnd(f32),
    SupplementalCollisionEnergy(f32),
    ElectronBeamEnergy(f32),
}
Expand description

Energy for an ion experiencing some form of dissociation

Variants§

§

CollisionEnergy(f32)

collision energy - Energy for an ion experiencing collision with a stationary gas particle resulting in dissociation of the ion.

§

NormalizedCollisionEnergy(f32)

normalized collision energy - Instrument setting, expressed in percent, for adjusting collisional energies of ions in an effort to provide equivalent excitation of all ions.

§

CollisionEnergyRampStart(f32)

collision energy ramp start - Collision energy at the start of the collision energy ramp.

§

CollisionEnergyRampEnd(f32)

collision energy ramp end - Collision energy at the end of the collision energy ramp.

§

PercentCollisionEnergyRampStart(f32)

percent collision energy ramp start - Collision energy at the start of the collision energy ramp in percent, normalized to the mass of the ion.

§

PercentCollisionEnergyRampEnd(f32)

percent collision energy ramp end - Collision energy at the end of the collision energy ramp in percent, normalized to the mass of the ion.

§

SupplementalCollisionEnergy(f32)

supplemental collision energy - Energy for an ion experiencing supplemental collision with a stationary gas particle resulting in dissociation of the ion.

§

ElectronBeamEnergy(f32)

electron beam energy - The kinetic energy of the electron beam used in dissociation methods induced by a free electron beam, such as electron-capture dissociation (ECD), electron-detachment dissociation (EDD), and electron-activated dissociation (EAD).

Implementations§

Source§

impl DissociationEnergyTerm

These methods are part of the controlled vocabulary mapping

Source

pub const fn accession(&self) -> AccessionIntCode

Retrieve the accession number for this term, independent of its controlled vocabulary

Source

pub const fn controlled_vocabulary(&self) -> ControlledVocabulary

Retrieve the controlled vocabulary this term belongs to

Source

pub const fn name(&self) -> &'static str

Retrieve the plain text human readable name for this term

Source

pub fn from_name(name: &str) -> Option<Self>

Attempt to map a string by name to retrieve one of the terms from this set.

If no match is found, None is returned.

Source

pub const fn from_accession( accession: AccessionIntCode, value: f32, ) -> Option<Self>

Attempt to map the numeric accession number to retrieve one of the terms from this set.

If no match is found, None is returned.

Source

pub const fn to_param(self) -> ParamCow<'static>

Convert this term into a ParamCow without a value.

Source

pub const fn to_param_value(self, value: ValueRef<'static>) -> ParamCow<'static>

Convert this term into a ParamCow a specific boxed value.

Source

pub fn from_curie(curie: &CURIE, value: f32) -> Option<Self>

Convert a CURIE by accession.

If no match is found, None is returned.

Source

pub fn from_param(p: &ParamCow<'static>) -> Option<Self>

Attempt to convert a ParamCow to a term from this set.

If no match is found, None is returned.

§Note

This method can be called in const contexts, requiring the type be ParamCow with a 'static lifetime parameter, but the regular From trait is implemented for all ParamLike types.

Source

pub fn flags(&self) -> i32

Retrieve a term set specific set of flags

Source

pub fn parents(&self) -> Vec<Self>

Retrieve the list of zero or more terms in the set which are parents of this term.

Source§

impl DissociationEnergyTerm

Source

pub const fn is_supplemental(&self) -> bool

Is the collision energy supplemental to another dissociation method?

Source

pub const fn is_ramp_start(&self) -> bool

Is this the start of an energy ramp?

Source

pub const fn is_ramp_end(&self) -> bool

Is this the end of an energy ramp?

Source

pub const fn energy(&self) -> f32

Get the scalar energy value for this term

Source

pub fn energy_mut(&mut self) -> &mut f32

Get a mutable reference to the energy in the term

Trait Implementations§

Source§

impl AsRef<f32> for DissociationEnergyTerm

A DissociationEnergyTerm can be treated as a reference to their energy value

Source§

fn as_ref(&self) -> &f32

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for DissociationEnergyTerm

Source§

fn clone(&self) -> DissociationEnergyTerm

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DissociationEnergyTerm

Source§

impl Debug for DissociationEnergyTerm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DissociationEnergyTerm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&DissociationEnergyTerm> for ParamCow<'static>

Source§

fn from(value: &DissociationEnergyTerm) -> Self

Converts to this type from the input type.
Source§

impl From<&DissociationEnergyTerm> for Param

Source§

fn from(value: &DissociationEnergyTerm) -> Self

Converts to this type from the input type.
Source§

impl From<DissociationEnergyTerm> for ParamCow<'static>

Source§

fn from(value: DissociationEnergyTerm) -> Self

Converts to this type from the input type.
Source§

impl From<DissociationEnergyTerm> for Param

Source§

fn from(value: DissociationEnergyTerm) -> Self

Converts to this type from the input type.
Source§

impl<P> From<P> for DissociationEnergyTerm
where P: ParamLike,

Source§

fn from(value: P) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DissociationEnergyTerm

Source§

fn eq(&self, other: &DissociationEnergyTerm) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for DissociationEnergyTerm

Source§

fn partial_cmp(&self, other: &DissociationEnergyTerm) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for DissociationEnergyTerm

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsOut<T> for T
where T: Copy,

Source§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.