Struct feroxide::ReactionSide
[−]
[src]
pub struct ReactionSide<E: Element> { pub compounds: Vec<ReactionCompound<E>>, }
A side of a reaction
Fields
compounds: Vec<ReactionCompound<E>>
The compounds of this side
Methods
impl<E: Element> ReactionSide<E>
[src]
fn ion_from_string(symbol: String) -> Option<ReactionSide<Ion>>
[src]
Convert a string representation of a reactionside into one
fn molecule_from_string(symbol: String) -> Option<ReactionSide<Molecule>>
[src]
Convert a string representation of a reactionside into one
fn total_charge(&self) -> AtomCharge
[src]
Calculate the total charge of this reaction side
fn energy(&self) -> Energy
[src]
Calculate the energy this side has
fn total_atoms(&self) -> HashMap<AtomNumber, u16>
[src]
Calculate the total amount of atoms this side contains
Trait Implementations
impl<E: Debug + Element> Debug for ReactionSide<E>
[src]
impl<E: Eq + Element> Eq for ReactionSide<E>
[src]
impl<E: PartialEq + Element> PartialEq for ReactionSide<E>
[src]
fn eq(&self, __arg_0: &ReactionSide<E>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ReactionSide<E>) -> bool
[src]
This method tests for !=
.
impl<E: Clone + Element> Clone for ReactionSide<E>
[src]
fn clone(&self) -> ReactionSide<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E: Hash + Element> Hash for ReactionSide<E>
[src]
fn hash<__HE: Hasher>(&self, __arg_0: &mut __HE)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<E: Element> Add for ReactionSide<E>
[src]
type Output = ReactionSide<E>
The resulting type after applying the +
operator.
fn add(self, rhs: ReactionSide<E>) -> ReactionSide<E>
[src]
Adding two ReactionSide's adds their compounds
impl<E: Element> Mul<u16> for ReactionSide<E>
[src]
type Output = ReactionSide<E>
The resulting type after applying the *
operator.
fn mul(self, rhs: u16) -> ReactionSide<E>
[src]
Multiplying a ReactionSide with a number multiplies the amount of all compounds of that side
impl<E: Element> Properties for ReactionSide<E>
[src]
fn symbol(&self) -> String
[src]
Get the symbol of the current item
fn name(&self) -> String
[src]
Get the name of the current item
fn mass(&self) -> AtomMass
[src]
Get the mass of the current item
fn stringify(&self) -> String
[src]
Stringify the current item (default: self.symbol())