| 1 | use mendeleevrust-analyzer cargo mendeleev 0.8.1 crate/::Elementrust-analyzer cargo mendeleev 0.8.1 element/Element#; |
| 2 | |
| 3 | /// Prints the electronic configuration for each element in the standard notation. |
| 4 | fn mainrust-analyzer cargo mendeleev 0.8.1 main().() { |
| 5 | for element in Elementrust-analyzer cargo mendeleev 0.8.1 element/Element#::listrust-analyzer cargo mendeleev 0.8.1 element/array/impl#[Element]list().() { |
| 6 | printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!( |
| 7 | "{}:\t{}", |
| 8 | element.symbolrust-analyzer cargo mendeleev 0.8.1 properties/symbol/impl#[Element]symbol().(), |
| 9 | element.electronic_configurationrust-analyzer cargo mendeleev 0.8.1 properties/electronic_configuration/impl#[Element]electronic_configuration().() |
| 10 | ); |
| 11 | } |
| 12 | } |