1 2 3 4 5 6 7 8 9 10 11
#[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct Span { pub line: usize, pub column: usize, } impl Span { pub const fn new(line: usize, column: usize) -> Self { Self { line, column } } }