use-electron-shell
use-electron-shell is intentionally simple. It does not model full electron configurations, orbital ordering nuance, or transition-metal valence chemistry.
Surface
| Item | Purpose |
|---|---|
electron_shells() |
Shell population list for an atomic number |
shell_count() |
Number of occupied shells in the static distribution |
outer_shell_electrons() |
Electrons in the outermost occupied shell |
valence_electrons_main_group() |
Conservative valence helper for main-group elements only |
Example
use ;
assert_eq!;
assert_eq!;
assert_eq!;