pub struct Span {
pub line: usize,
pub column: usize,
pub start: usize,
pub end: usize,
}Expand description
A source range with line, column, and byte offsets.
Fields§
§line: usizeThe line number of the start position (0-based).
column: usizeThe column number of the start position (0-based).
start: usizeThe byte offset of the start of the span within the source.
end: usizeThe byte offset one past the end of the span within the source.
Trait Implementations§
impl Copy for Span
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