Struct feroxide::Molecule
[−]
[src]
pub struct Molecule { pub compounds: Vec<MoleculeCompound>, }
A molecule
Fields
compounds: Vec<MoleculeCompound>
The compounds it contains
Methods
impl Molecule
[src]
fn from_string(string: String) -> Option<Molecule>
[src]
Convert a string representation of a molecule into one
Trait Implementations
impl Debug for Molecule
[src]
impl Eq for Molecule
[src]
impl PartialEq for Molecule
[src]
fn eq(&self, __arg_0: &Molecule) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Molecule) -> bool
[src]
This method tests for !=
.
impl Clone for Molecule
[src]
fn clone(&self) -> Molecule
[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 Hash for Molecule
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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 Properties for Molecule
[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 Element for Molecule
[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