| 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 number in the periodic table. |
| 5 | /// |
| 6 | /// ``` |
| 7 | /// use mendeleev::Group; |
| 8 | /// assert_eq!(Group::IA.group_number(), 1); |
| 9 | /// assert_eq!(Group::VIIIA.group_number(), 18); |
| 10 | /// ``` |
| 11 | pub const fn group_numberrust-analyzer cargo mendeleev 0.8.1 properties/group_number/impl#[Group]group_number().(&self) -> u32 { |
| 12 | match self { |
| 13 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IArust-analyzer cargo mendeleev 0.8.1 group/Group#IA# => 1, |
| 14 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIArust-analyzer cargo mendeleev 0.8.1 group/Group#IIA# => 2, |
| 15 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIIBrust-analyzer cargo mendeleev 0.8.1 group/Group#IIIB# => 3, |
| 16 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IVBrust-analyzer cargo mendeleev 0.8.1 group/Group#IVB# => 4, |
| 17 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VBrust-analyzer cargo mendeleev 0.8.1 group/Group#VB# => 5, |
| 18 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIBrust-analyzer cargo mendeleev 0.8.1 group/Group#VIB# => 6, |
| 19 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIBrust-analyzer cargo mendeleev 0.8.1 group/Group#VIIB# => 7, |
| 20 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIB8rust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIB8# => 8, |
| 21 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIB9rust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIB9# => 9, |
| 22 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIB10rust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIB10# => 10, |
| 23 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IBrust-analyzer cargo mendeleev 0.8.1 group/Group#IB# => 11, |
| 24 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIBrust-analyzer cargo mendeleev 0.8.1 group/Group#IIB# => 12, |
| 25 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IIIArust-analyzer cargo mendeleev 0.8.1 group/Group#IIIA# => 13, |
| 26 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::IVArust-analyzer cargo mendeleev 0.8.1 group/Group#IVA# => 14, |
| 27 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VArust-analyzer cargo mendeleev 0.8.1 group/Group#VA# => 15, |
| 28 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIArust-analyzer cargo mendeleev 0.8.1 group/Group#VIA# => 16, |
| 29 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIArust-analyzer cargo mendeleev 0.8.1 group/Group#VIIA# => 17, |
| 30 | Grouprust-analyzer cargo mendeleev 0.8.1 group/Group#::VIIIArust-analyzer cargo mendeleev 0.8.1 group/Group#VIIIA# => 18, |
| 31 | } |
| 32 | } |
| 33 | } |