zuzu_rust/span.rs
1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2pub struct Span {
3 pub start: usize,
4 pub end: usize,
5 pub line: usize,
6 pub column: usize,
7}
8
9impl Span {
10 pub fn new(start: usize, end: usize, line: usize, column: usize) -> Self {
11 Self {
12 start,
13 end,
14 line,
15 column,
16 }
17 }
18}