0.1.0 |
|
---|
#30 in #physical
6.5MB
75K
SLoC
periodictable
periodictable
is a library that contains information for the elements such as their mass, density and xray/neutron scattering information.
In its core this crate is a port of the Python library (periodictable of P. Kienzle)https://github.com/pkienzle/periodictable.
Basic usage is achieved by initializing the periodic table. Getting the element of interest either by it's atomic number or using the symbol() or name() functions of PeriodicTable. Then the various properties of the element can be accessed. Refer to docs.rs for more details.
use periodictable::PeriodicTable;
let table = PeriodicTable::new();
let iron = &table.elements[26];
let oxygen = &table.symbol("O");