Struct feroxide::ReactionCompound [] [src]

pub struct ReactionCompound<E: Element> {
    pub element: E,
    pub amount: u16,
}

A reaction compound

Fields

The element it uses

The amount of moles needed

Methods

impl<E: Element> ReactionCompound<E>
[src]

Convert a string representation of a reaction compound into one

Convert a string representation of a reaction compound into one

Trait Implementations

impl<E: Debug + Element> Debug for ReactionCompound<E>
[src]

Formats the value using the given formatter.

impl<E: Eq + Element> Eq for ReactionCompound<E>
[src]

impl<E: Clone + Element> Clone for ReactionCompound<E>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<E: Hash + Element> Hash for ReactionCompound<E>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<E: Element> PartialEq for ReactionCompound<E>
[src]

Two ReactionCompound's are equal if their elements are equal

This method tests for !=.

impl<E: Element> Properties for ReactionCompound<E>
[src]

Get the symbol of the current item

Get the name of the current item

Get the mass of the current item

Stringify the current item (default: self.symbol())

impl<E: Element> Element for ReactionCompound<E>
[src]

Get the charge of the current Element

Get the molecule associated with the current Element

impl<E: Element> Display for ReactionCompound<E>
[src]

Formats the value using the given formatter. Read more