Struct feroxide::Ion [] [src]

pub struct Ion {
    pub molecule: Molecule,
    pub charge: Option<IonCharge>,
}

An Ion

Fields

The molecule of this ion

The charge of this ion

Methods

impl Ion
[src]

Convert a string representation of an Ion into one

Convert a Molecule into an Ion

Calculate the charge of this Ion

Trait Implementations

impl Debug for Ion
[src]

Formats the value using the given formatter.

impl Eq for Ion
[src]

impl PartialEq for Ion
[src]

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

This method tests for !=.

impl Clone for Ion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Ion
[src]

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

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

impl Element for Ion
[src]

Get the charge of the current Element

Get the molecule associated with the current Element

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

Formats the value using the given formatter. Read more