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]

[src]

Convert a string representation of an elementary reaction into one

[src]

Convert a string representation of a reaction into one

[src]

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

[src]

Swap the equation

Trait Implementations

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

[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]

[src]

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

[src]

This method tests for !=.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

1.3.0
[src]

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

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

[src]

NOTE: This function is still a WIP!

[src]

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

[src]

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

[src]

Get the ElemReaction version

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

[src]

Get the symbol of the current item

[src]

Get the name of the current item

[src]

Get the mass of the current item

[src]

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

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

[src]

Formats the value using the given formatter. Read more