pub struct SourceLocation {
pub file: PathBuf,
pub start_line: usize,
pub end_line: usize,
}Expand description
Source location for error reporting and tooling
Fields§
§file: PathBuf§start_line: usizeStart line (0-indexed for LSP compatibility)
end_line: usizeEnd line (0-indexed, inclusive)
Implementations§
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
Source§impl Debug for SourceLocation
impl Debug for SourceLocation
Source§impl Display for SourceLocation
impl Display for SourceLocation
Source§impl PartialEq for SourceLocation
impl PartialEq for SourceLocation
impl StructuralPartialEq for SourceLocation
Auto Trait Implementations§
impl Forget for SourceLocation
impl Freeze for SourceLocation
impl Move 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