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]

[src]

Convert a string representation of a reaction compound into one

[src]

Convert a string representation of a reaction compound into one

Trait Implementations

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Two ReactionCompound's are equal if their elements are equal

1.0.0
[src]

This method tests for !=.

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

[src]

Get the charge of the current Element

[src]

Get the molecule associated with the current Element

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

[src]

Formats the value using the given formatter. Read more