#[repr(u8)]pub enum Element {
Show 118 variants
H = 1,
He = 2,
Li = 3,
Be = 4,
B = 5,
C = 6,
N = 7,
O = 8,
F = 9,
Ne = 10,
Na = 11,
Mg = 12,
Al = 13,
Si = 14,
P = 15,
S = 16,
Cl = 17,
Ar = 18,
K = 19,
Ca = 20,
Sc = 21,
Ti = 22,
V = 23,
Cr = 24,
Mn = 25,
Fe = 26,
Co = 27,
Ni = 28,
Cu = 29,
Zn = 30,
Ga = 31,
Ge = 32,
As = 33,
Se = 34,
Br = 35,
Kr = 36,
Rb = 37,
Sr = 38,
Y = 39,
Zr = 40,
Nb = 41,
Mo = 42,
Tc = 43,
Ru = 44,
Rh = 45,
Pd = 46,
Ag = 47,
Cd = 48,
In = 49,
Sn = 50,
Sb = 51,
Te = 52,
I = 53,
Xe = 54,
Cs = 55,
Ba = 56,
La = 57,
Ce = 58,
Pr = 59,
Nd = 60,
Pm = 61,
Sm = 62,
Eu = 63,
Gd = 64,
Tb = 65,
Dy = 66,
Ho = 67,
Er = 68,
Tm = 69,
Yb = 70,
Lu = 71,
Hf = 72,
Ta = 73,
W = 74,
Re = 75,
Os = 76,
Ir = 77,
Pt = 78,
Au = 79,
Hg = 80,
Tl = 81,
Pb = 82,
Bi = 83,
Po = 84,
At = 85,
Rn = 86,
Fr = 87,
Ra = 88,
Ac = 89,
Th = 90,
Pa = 91,
U = 92,
Np = 93,
Pu = 94,
Am = 95,
Cm = 96,
Bk = 97,
Cf = 98,
Es = 99,
Fm = 100,
Md = 101,
No = 102,
Lr = 103,
Rf = 104,
Db = 105,
Sg = 106,
Bh = 107,
Hs = 108,
Mt = 109,
Ds = 110,
Rg = 111,
Cn = 112,
Nh = 113,
Fl = 114,
Mc = 115,
Lv = 116,
Ts = 117,
Og = 118,
}Expand description
Enum for general chemical element properties
use ::Nuclide::{Element,ChemElement};
let lithium = Element::Li;
let am = lithium.am();
let ionization_lvl2 = lithium.ionization_energies(2).unwrap();Variants§
H = 1
He = 2
Li = 3
Be = 4
B = 5
C = 6
N = 7
O = 8
F = 9
Ne = 10
Na = 11
Mg = 12
Al = 13
Si = 14
P = 15
S = 16
Cl = 17
Ar = 18
K = 19
Ca = 20
Sc = 21
Ti = 22
V = 23
Cr = 24
Mn = 25
Fe = 26
Co = 27
Ni = 28
Cu = 29
Zn = 30
Ga = 31
Ge = 32
As = 33
Se = 34
Br = 35
Kr = 36
Rb = 37
Sr = 38
Y = 39
Zr = 40
Nb = 41
Mo = 42
Tc = 43
Ru = 44
Rh = 45
Pd = 46
Ag = 47
Cd = 48
In = 49
Sn = 50
Sb = 51
Te = 52
I = 53
Xe = 54
Cs = 55
Ba = 56
La = 57
Ce = 58
Pr = 59
Nd = 60
Pm = 61
Sm = 62
Eu = 63
Gd = 64
Tb = 65
Dy = 66
Ho = 67
Er = 68
Tm = 69
Yb = 70
Lu = 71
Hf = 72
Ta = 73
W = 74
Re = 75
Os = 76
Ir = 77
Pt = 78
Au = 79
Hg = 80
Tl = 81
Pb = 82
Bi = 83
Po = 84
At = 85
Rn = 86
Fr = 87
Ra = 88
Ac = 89
Th = 90
Pa = 91
U = 92
Np = 93
Pu = 94
Am = 95
Cm = 96
Bk = 97
Cf = 98
Es = 99
Fm = 100
Md = 101
No = 102
Lr = 103
Rf = 104
Db = 105
Sg = 106
Bh = 107
Hs = 108
Mt = 109
Ds = 110
Rg = 111
Cn = 112
Nh = 113
Fl = 114
Mc = 115
Lv = 116
Ts = 117
Og = 118
Implementations§
Source§impl Element
impl Element
pub const fn protons(&self) -> u8
pub const fn from_protons(protons: u8) -> Element
pub const fn symbol(&self) -> &'static str
Sourcepub fn abundant_nuclides(&self) -> NuclideFraction
pub fn abundant_nuclides(&self) -> NuclideFraction
Fraction as measured from samples on Earth. For non-abundant elements, returns only the most stable isotope.
Trait Implementations§
Source§impl ChemElement for Element
impl ChemElement for Element
Source§fn atomic_num(&self) -> u64
fn atomic_num(&self) -> u64
Atomic number
Source§fn electron_affinity(&self) -> f64
fn electron_affinity(&self) -> f64
Electron affinity in kj/mol
Source§fn ionization_energies(&self, level: usize) -> Option<f64>
fn ionization_energies(&self, level: usize) -> Option<f64>
Returns the ionization energies for all known levels. Values are in kj/mol
Source§fn electronegativity(&self) -> f64
fn electronegativity(&self) -> f64
Returns Oganov-Tantardini values, the current best evaluation
Source§fn mullikan_en(&self) -> f64
fn mullikan_en(&self) -> f64
Mullikan electronegativity
Source§fn pauling_en(&self) -> f64
fn pauling_en(&self) -> f64
Pauling electronegativity
Source§fn ionic_radii(&self) -> f64
fn ionic_radii(&self) -> f64
Ionic radii
Source§fn vdr_crystal(&self) -> f64
fn vdr_crystal(&self) -> f64
Van der Waal radius in crystalline structure
Source§fn vdr_isolated(&self) -> f64
fn vdr_isolated(&self) -> f64
Van der Waal radius in isolated atoms
Source§impl From<Element> for NuclideFraction
Fraction as measured from samples on Earth. For non-abundant elements,
returns only the most stable isotope.
impl From<Element> for NuclideFraction
Fraction as measured from samples on Earth. For non-abundant elements, returns only the most stable isotope.
impl Copy for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more