Enum rustyms::NeutralLoss
source · pub enum NeutralLoss {
Gain(MolecularFormula),
Loss(MolecularFormula),
}Expand description
All possible neutral losses
Variants§
Implementations§
source§impl NeutralLoss
impl NeutralLoss
sourcepub fn hill_notation_html(&self) -> String
pub fn hill_notation_html(&self) -> String
Generate a nice HTML notation for this NeutralLoss
Trait Implementations§
source§impl Add<&NeutralLoss> for &MolecularFormula
impl Add<&NeutralLoss> for &MolecularFormula
§type Output = MolecularFormula
type Output = MolecularFormula
The resulting type after applying the
+ operator.source§impl<'a> Add<&'a NeutralLoss> for MolecularFormula
impl<'a> Add<&'a NeutralLoss> for MolecularFormula
§type Output = MolecularFormula
type Output = MolecularFormula
The resulting type after applying the
+ operator.source§fn add(self, other: &'a NeutralLoss) -> MolecularFormula
fn add(self, other: &'a NeutralLoss) -> MolecularFormula
Performs the
+ operation. Read moresource§impl<'a> Add<NeutralLoss> for &'a MolecularFormula
impl<'a> Add<NeutralLoss> for &'a MolecularFormula
§type Output = MolecularFormula
type Output = MolecularFormula
The resulting type after applying the
+ operator.source§fn add(self, other: NeutralLoss) -> MolecularFormula
fn add(self, other: NeutralLoss) -> MolecularFormula
Performs the
+ operation. Read moresource§impl Add<NeutralLoss> for MolecularFormula
impl Add<NeutralLoss> for MolecularFormula
§type Output = MolecularFormula
type Output = MolecularFormula
The resulting type after applying the
+ operator.source§fn add(self, other: NeutralLoss) -> MolecularFormula
fn add(self, other: NeutralLoss) -> MolecularFormula
Performs the
+ operation. Read moresource§impl Clone for NeutralLoss
impl Clone for NeutralLoss
source§fn clone(&self) -> NeutralLoss
fn clone(&self) -> NeutralLoss
Returns a copy of the value. Read more
1.0.0 · 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 NeutralLoss
impl Debug for NeutralLoss
source§impl Display for NeutralLoss
impl Display for NeutralLoss
source§impl FromStr for NeutralLoss
impl FromStr for NeutralLoss
source§impl PartialEq for NeutralLoss
impl PartialEq for NeutralLoss
source§fn eq(&self, other: &NeutralLoss) -> bool
fn eq(&self, other: &NeutralLoss) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NeutralLoss
Auto Trait Implementations§
impl RefUnwindSafe for NeutralLoss
impl Send for NeutralLoss
impl Sync for NeutralLoss
impl Unpin for NeutralLoss
impl UnwindSafe for NeutralLoss
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.