Element

Trait Element 

Source
pub trait Element {
    // Required method
    fn get_number(&self) -> u8;

    // Provided method
    fn get_symbol(&self) -> &'static str { ... }
}
Expand description

This is an element of the periodic table of chemical elements.

Required Methods§

Source

fn get_number(&self) -> u8

Provided Methods§

Source

fn get_symbol(&self) -> &'static str

Implementors§