Struct rustc_span::Loc
source · pub struct Loc {
pub file: Lrc<SourceFile>,
pub line: usize,
pub col: CharPos,
pub col_display: usize,
}
Expand description
A source code location used for error reporting.
Fields§
§file: Lrc<SourceFile>
Information about the original source.
line: usize
The (1-based) line number.
col: CharPos
The (0-based) column offset.
col_display: usize
The (0-based) column offset when displayed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Loc
impl !Send for Loc
impl !Sync for Loc
impl Unpin for Loc
impl !UnwindSafe for Loc
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes