1 2 3 4 5 6 7 8
// Import hodgepodge. Be sure to import all if you want to use iters. use hodgepodge::{Element, IntoEnumIterator}; fn main() { // How many elements are there? let element_count = Element::iter().count(); println!("There are {element_count} elements"); }