Function group_elements
pub fn group_elements(group: u8) -> Vec<Element>Expand description
Returns all elements in a group.
ยงExamples
use use_periodic_table::group_elements;
let noble_gases = group_elements(18);
assert!(noble_gases.iter().any(|element| element.symbol == "He"));
assert!(noble_gases.iter().any(|element| element.symbol == "Og"));