Crate chem_eq

Crate chem_eq 

Source
Expand description

§chem-eq

chem-eq parses chemical equations into elements, mol ratio, direction of reaction and more.

The main type is Equation

Modules§

balancebalance
Balance a chemical equation
error
Error types for chem-eq

Structs§

Compound
An inidiviual compound. Containing some elements and a coefficient.
Element
An individual element. Containing an element from the periodic table and the count of how many there are.
Equation
A Chemical Equation. Containing a left and right side. Also keeps track of the mol ratio.

Enums§

Direction
Direction a reaction is heading in.
ReactionQuotient
The result of Equation::reaction_quotient.
State
The state of matter of a Compound. Including:

Constants§

AVAGADRO_CONSTANT
Avagadro’s number, approximately equal to 6.02 * 10^23