Struct feroxide::Atom [] [src]

pub struct Atom {
    pub number: AtomNumber,
    pub group: AtomGroup,
    pub symbol: &'static str,
    pub name: &'static str,
    pub mass: AtomMass,
    pub diatomic: bool,
}

An atom

Fields

Atom Number (Hydrogen: 1)

Atom Group (Hydrogen: 1)

Atom symbol (Hydrogen: H)

Atom name (Hydrogen: hydrogen)

Atom mass (Hydrogen: 1.008)

Methods

impl Atom
[src]

Convert a string representation to an Atom

Trait Implementations

impl Debug for Atom
[src]

Formats the value using the given formatter.

impl Clone for Atom
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Atom
[src]

impl PartialEq for Atom
[src]

Two atoms are equal when their atom numbers are equal

This method tests for !=.

impl Hash for Atom
[src]

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

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

impl Properties for Atom
[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 Display for Atom
[src]

Formats the value using the given formatter. Read more