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]

[src]

Convert a string representation to an Atom

[src]

Get the charge an atom has based on its group

Trait Implementations

impl Debug for Atom
[src]

[src]

Formats the value using the given formatter.

impl Clone for Atom
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Atom
[src]

impl PartialEq for Atom
[src]

[src]

Two Atoms are equal when their atom numbers are equal

1.0.0
[src]

This method tests for !=.

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

[src]

Formats the value using the given formatter. Read more