| 1 | use superrust-analyzer cargo mendeleev 0.8.1 properties/::Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#; |
| 2 | |
| 3 | impl Grouprust-analyzer cargo mendeleev 0.8.1 group/Group# { |
| 4 | /// Returns the group's trivial name, if any. |
| 5 | /// |
| 6 | /// ``` |
| 7 | /// use mendeleev::Group; |
| 8 | /// assert_eq!(Group::IA.group_name(), Some("Alkali metals")); |
| 9 | /// assert_eq!(Group::VIIIA.group_name(), Some("Noble gases")); |
| 10 | /// assert_eq!(Group::VIIIB8.group_name(), None); |
| 11 | /// ``` |
| 12 | pub const fn group_namerust-analyzer cargo mendeleev 0.8.1 properties/group_name/impl#[Group]group_name().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&'static str> { |
| 13 | match self { |
| 14 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IArust-analyzer cargo mendeleev 0.8.1 group/Group#IA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Alkali metals"), |
| 15 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIArust-analyzer cargo mendeleev 0.8.1 group/Group#IIA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Alkaline earths"), |
| 16 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIIBrust-analyzer cargo mendeleev 0.8.1 group/Group#IIIB# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 17 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IVBrust-analyzer cargo mendeleev 0.8.1 group/Group#IVB# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 18 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VBrust-analyzer cargo mendeleev 0.8.1 group/Group#VB# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 19 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIBrust-analyzer cargo mendeleev 0.8.1 group/Group#VIB# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 20 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIBrust-analyzer cargo mendeleev 0.8.1 group/Group#VIIB# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 21 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIB8rust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIB8# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 22 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIB9rust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIB9# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 23 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIB10rust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIB10# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 24 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IBrust-analyzer cargo mendeleev 0.8.1 group/Group#IB# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Coinage metals"), |
| 25 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIBrust-analyzer cargo mendeleev 0.8.1 group/Group#IIB# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 26 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIIArust-analyzer cargo mendeleev 0.8.1 group/Group#IIIA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Boron group"), |
| 27 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IVArust-analyzer cargo mendeleev 0.8.1 group/Group#IVA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Carbon group"), |
| 28 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VArust-analyzer cargo mendeleev 0.8.1 group/Group#VA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Pnictogens"), |
| 29 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIArust-analyzer cargo mendeleev 0.8.1 group/Group#VIA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Chalcogens"), |
| 30 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIArust-analyzer cargo mendeleev 0.8.1 group/Group#VIIA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Halogens"), |
| 31 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIArust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIA# => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Noble gases"), |
| 32 | } |
| 33 | } |
| 34 | } |