pub struct Span {
pub offset: usize,
pub line: u32,
pub column: usize,
pub len: usize,
}Expand description
Source location: byte offset, line, column, and length in the source file.
Line and column are 1-based. Use Span::to_lsp_range for 0-based LSP ranges.
Fields§
§offset: usize§line: u32§column: usize§len: usizeImplementations§
Trait Implementations§
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more