kabel/libkabel/src/diagnostics/span.rs

11 lines
197 B
Rust

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