Struct feroxide::MoleculeCompound
[−]
[src]
pub struct MoleculeCompound { pub atom: Atom, pub amount: u8, }
A compound of a molecule
Fields
atom: Atom
The atom it uses
amount: u8
The amount
Methods
impl MoleculeCompound
[src]
fn from_string(string: String) -> Option<MoleculeCompound>
[src]
Takes a symbol string representing a MoleculeCompound, and turns it into one
fn from_atom(atom: Atom) -> MoleculeCompound
[src]
Converts an Atom into a MoleculeCompound, taking care of diatomic ones
Trait Implementations
impl Debug for MoleculeCompound
[src]
impl Eq for MoleculeCompound
[src]
impl PartialEq for MoleculeCompound
[src]
fn eq(&self, __arg_0: &MoleculeCompound) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MoleculeCompound) -> bool
[src]
This method tests for !=
.
impl Clone for MoleculeCompound
[src]
fn clone(&self) -> MoleculeCompound
[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 MoleculeCompound
[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