Struct feroxide::MoleculeCompound [] [src]

pub struct MoleculeCompound {
    pub atom: Atom,
    pub amount: u8,
}

A compound of a molecule

Fields

The atom it uses

The amount

Methods

impl MoleculeCompound
[src]

[src]

Takes a symbol string representing a MoleculeCompound, and turns it into one

[src]

Converts an Atom into a MoleculeCompound, taking care of diatomic ones

Trait Implementations

impl Debug for MoleculeCompound
[src]

[src]

Formats the value using the given formatter.

impl Eq for MoleculeCompound
[src]

impl PartialEq for MoleculeCompound
[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 Clone for MoleculeCompound
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for MoleculeCompound
[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 Properties for MoleculeCompound
[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())