1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! This is a chemsistry library for Rust.
//!
//! For now, it only contains constants for each of the elements of the periodic table,
//! but in the future, I'd like it to be able to do calculations on molecules such as
//! determining if they're bonded ionically, covalently, or metalically and finding their
//! molecular masses.
//!
//! Here's a quick example to get you up and running.
//!
//! ```rust
//! /* Note: These snippets are untested */
//!
//! use periodic_table_rs::HYDROGEN;
//!
//! fn main() {
//! println!("{}", HYDROGEN.atomic_mass);
//! println!("{}", HYDROGEN.boiling_point);
//! println!("{}", HYDROGEN.density);
//! }
//! ```
//! ```rust
//! /* Or, you can do this. */
//!
//! use periodic_table_rs::{Element, PERIODIC_TABLE};
//!
//! fn main() {
//! const HYDROGEN: Element = PERIODIC_TABLE[0];
//!
//! println!("{}", HYDROGEN.atomic_mass);
//! println!("{}", HYDROGEN.boiling_point);
//! println!("{}", HYDROGEN.density);
//! }
//! ```
pub use ;
pub use PERIODIC_TABLE;
pub use *;