mirror of
https://github.com/nushell/nushell
synced 2025-01-06 18:29:02 +00:00
17 lines
301 B
Rust
17 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,
|
||
|
}
|
||
|
}
|
||
|
}
|