Struct feroxide::ContainerCompound [] [src]

pub struct ContainerCompound<E: Element> {
    pub element: E,
    pub moles: Moles,
}

A compound for containers

Fields

The element it contains

The amount of moles of this element

Trait Implementations

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

[src]

Formats the value using the given formatter.

impl<E: Clone + Element> Clone for ContainerCompound<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> Eq for ContainerCompound<E>
[src]

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

[src]

Two container compounds are equal when their elements are equal

1.0.0
[src]

This method tests for !=.

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

[src]

Get the charge of the current Element

[src]

Get the molecule associated with the current Element

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

[src]

Formats the value using the given formatter. Read more