mirror of
https://github.com/nushell/nushell
synced 2025-01-22 18:05:21 +00:00
16 lines
301 B
Rust
16 lines
301 B
Rust
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
|
pub struct Span {
|
|
pub start: usize,
|
|
pub end: usize,
|
|
pub file_id: usize,
|
|
}
|
|
|
|
impl Span {
|
|
pub fn new(start: usize, end: usize, file_id: usize) -> Span {
|
|
Span {
|
|
start,
|
|
end,
|
|
file_id,
|
|
}
|
|
}
|
|
}
|