kabel/libkabel/src/diagnostics/span.rs

11 lines
197 B
Rust
Raw Normal View History

2024-01-16 22:59:34 +00:00
#[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 }
}
}