Struct feroxide::ElemReaction [] [src]

pub struct ElemReaction<E: Element> {
    pub lhs: ReactionSide<E>,
    pub rhs: ReactionSide<E>,
    pub is_equilibrium: bool,
}

An elementair reaction (not containing ions)

Fields

The left-hand-side

The right-hand-side

Methods

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

Convert a string representation of a reaction into one

Convert a string representation of a reaction into one

Get the sign of the equation ( → or ⇌ ), depending whether it is an equilibrium or not

Swap the equation

Trait Implementations

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

Formats the value using the given formatter.

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

impl<E: PartialEq + Element> PartialEq for ElemReaction<E>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<E: Hash + Element> Hash for ElemReaction<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> Reaction<E> for ElemReaction<E>
[src]

NOTE: This function is still a WIP!

Check if the reaction is valid by comparing the amount of total atoms on both sides, and by checking if the total charge on both sides is equal Read more

Calculate the cost of this reaction This can be negative in case of an exothermic reaction Read more

Get the ElemReaction version

impl<E: Element> Properties for ElemReaction<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> Display for ElemReaction<E>
[src]

Formats the value using the given formatter. Read more