pub struct SourceLocation {
pub line: usize,
pub column: usize,
pub file: Option<String>,
}Expand description
Source location for error reporting
Fields§
§line: usizeLine number (1-based)
column: usizeColumn number (1-based)
file: Option<String>Source file (if known)
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
Source§impl Debug for SourceLocation
impl Debug for SourceLocation
Source§impl Default for SourceLocation
impl Default for SourceLocation
Auto Trait Implementations§
impl Freeze for SourceLocation
impl RefUnwindSafe for SourceLocation
impl Send for SourceLocation
impl Sync for SourceLocation
impl Unpin for SourceLocation
impl UnsafeUnpin for SourceLocation
impl UnwindSafe for SourceLocation
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