pub struct SourceSpan {
pub start: usize,
pub end: usize,
pub line: usize,
pub column: usize,
}Expand description
A source span reported by the parser.
Fields§
§start: usizeZero-based starting byte offset.
end: usizeExclusive ending byte offset.
line: usizeOne-based line number.
column: usizeOne-based column number.
Trait Implementations§
Source§impl Clone for SourceSpan
impl Clone for SourceSpan
impl Copy for SourceSpan
Source§impl Debug for SourceSpan
impl Debug for SourceSpan
impl Eq for SourceSpan
Source§impl Hash for SourceSpan
impl Hash for SourceSpan
Source§impl PartialEq for SourceSpan
impl PartialEq for SourceSpan
impl StructuralPartialEq for SourceSpan
Auto Trait Implementations§
impl Freeze for SourceSpan
impl RefUnwindSafe for SourceSpan
impl Send for SourceSpan
impl Sync for SourceSpan
impl Unpin for SourceSpan
impl UnsafeUnpin for SourceSpan
impl UnwindSafe for SourceSpan
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