use-oxidation-state
Small oxidation-state primitives for RustUse chemistry crates.
use-oxidation-state represents oxidation-state values, signs, magnitudes,
Roman numeral labels, element assignments, formula-context assignments, and
small assignment sets. It stays structural and intentionally avoids redox
solving, reaction modeling, electrochemistry simulation, compound naming,
oxidation-state inference, and common oxidation-state databases.
What this crate provides
| Item | Purpose |
|---|---|
OxidationState |
Validated signed oxidation-state value |
OxidationSign |
Positive, negative, or zero sign |
OxidationMagnitude |
Bounded oxidation-state magnitude |
RomanOxidationState |
Roman numeral display for common magnitudes |
ElementOxidationState |
Element-symbol oxidation-state assignment |
FormulaOxidationState |
Formula/context assignment group |
OxidationStateAssignment |
Label plus oxidation-state entry |
OxidationStateSet |
Small insertion-order assignment collection |
OxidationStateValidationError |
Structured construction and validation error |
Installation
[]
= "0.1.0"
Quick Examples
Create oxidation states
use OxidationState;
#
Display element oxidation states
use ;
#
Store formula-context entries
use ;
#
Scope
- Represents oxidation-state signs, magnitudes, zero states, positive states, negative states, Roman numeral labels, element assignments, formula-context assignments, and stable display formatting.
- Keeps all chemistry knowledge caller-provided. Callers choose symbols, labels, formulas, and state assignments.
- Uses no runtime network access and no external chemistry data.
- No redox balancing.
- No reaction logic.
- No oxidation-state inference from formulas.
- No compound naming.
- No electrochemical potentials.
- No hardcoded common oxidation-state table.
- No full chemistry toolkit behavior.
Relationship to use-chemistry
use-oxidation-state is a focused child crate for oxidation-state primitives.
The use-chemistry umbrella crate reexports it alongside element, formula,
bond, ion, compound, molecule, isotope, periodic-table, atomic-number,
atomic-mass, and electron-shell helpers.