#[repr(C)]pub struct SrcLoc {
pub file: u32,
pub line: u32,
pub col: u32,
}Expand description
One source-location row of the codegen-emitted @plg_srcmap side-table
(SPANS.md Layer 3). A raising call site passes its index (site_id) and
the error path resolves it to file:line:col. Layout mirrors the IR’s
{i32, i32, i32}.
Fields§
§file: u32§line: u32§col: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for SrcLoc
impl RefUnwindSafe for SrcLoc
impl Send for SrcLoc
impl Sync for SrcLoc
impl Unpin for SrcLoc
impl UnsafeUnpin for SrcLoc
impl UnwindSafe for SrcLoc
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