Struct feroxide::ContainerCompound
[−]
[src]
pub struct ContainerCompound<E: Element> { pub element: E, pub moles: Moles, }
A compound for containers
Fields
element: E
The element it contains
moles: Moles
The amount of moles of this element
Trait Implementations
impl<E: Debug + Element> Debug for ContainerCompound<E>
[src]
impl<E: Clone + Element> Clone for ContainerCompound<E>
[src]
fn clone(&self) -> ContainerCompound<E>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<E: Element> Eq for ContainerCompound<E>
[src]
impl<E: Element> PartialEq for ContainerCompound<E>
[src]
fn eq(&self, rhs: &ContainerCompound<E>) -> bool
Two container compounds are equal when their elements are equal
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<E: Element> Hash for ContainerCompound<E>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<E: Element> Element for ContainerCompound<E>
[src]
fn get_charge(&self) -> Option<IonCharge>
Get the charge of the current Element
fn get_molecule(&self) -> Option<&Molecule>
Get the molecule associated with the current Element
impl<E: Element> Properties for ContainerCompound<E>
[src]
fn symbol(&self) -> String
Get the symbol of the current item
fn name(&self) -> String
Get the name of the current item
fn mass(&self) -> AtomMass
Get the mass of the current item
fn stringify(&self) -> String
Stringify the current item (default: self.symbol())