1 2 3 4 5 6 7 8 9 10 11
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub struct Symbol { pub name: &'static str, pub codepoint: char, } impl Symbol { pub const fn new(name: &'static str, codepoint: char) -> Self { Self { name, codepoint } } }