Struct feroxide::ReactionCompound
[−]
[src]
pub struct ReactionCompound<E: Element> { pub element: E, pub amount: u16, }
A reaction compound
Fields
element: E
The element it uses
amount: u16
The amount of moles needed
Methods
impl<E: Element> ReactionCompound<E>
[src]
fn ion_from_string(symbol: String) -> Option<ReactionCompound<Ion>>
[src]
Convert a string representation of a reaction compound into one
fn molecule_from_string(symbol: String) -> Option<ReactionCompound<Molecule>>
[src]
Convert a string representation of a reaction compound into one
Trait Implementations
impl<E: Debug + Element> Debug for ReactionCompound<E>
[src]
impl<E: Eq + Element> Eq for ReactionCompound<E>
[src]
impl<E: Clone + Element> Clone for ReactionCompound<E>
[src]
fn clone(&self) -> ReactionCompound<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: Element> PartialEq for ReactionCompound<E>
[src]
fn eq(&self, rhs: &ReactionCompound<E>) -> bool
[src]
Two ReactionCompound's are equal if their elements are equal
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<E: Element> Hash for ReactionCompound<E>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[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> Properties for ReactionCompound<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())
impl<E: Element> Element for ReactionCompound<E>
[src]
fn get_charge(&self) -> Option<AtomCharge>
[src]
Get the charge of the current Element
fn get_molecule(&self) -> Option<&Molecule>
[src]
Get the molecule associated with the current Element