kabel/libkabel/src/diagnostics/span.rs

11 lines
205 B
Rust

#[derive(Debug, Clone, PartialEq, Eq, Copy)]
pub struct Span {
pub start: usize,
pub end: usize
}
impl Span {
pub fn new(start: usize, end: usize) -> Self {
Self { start, end }
}
}