pub struct MirSourcePos {
pub file_id: u32,
pub line: u32,
pub column: u32,
}Expand description
Source position metadata captured for MIR instructions.
Fields§
§file_id: u32Source file identifier assigned during parsing.
line: u321-based source line number.
column: u321-based source column number.
Trait Implementations§
Source§impl Clone for MirSourcePos
impl Clone for MirSourcePos
Source§fn clone(&self) -> MirSourcePos
fn clone(&self) -> MirSourcePos
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MirSourcePos
impl Debug for MirSourcePos
Source§impl PartialEq for MirSourcePos
impl PartialEq for MirSourcePos
impl Copy for MirSourcePos
impl Eq for MirSourcePos
impl StructuralPartialEq for MirSourcePos
Auto Trait Implementations§
impl Freeze for MirSourcePos
impl RefUnwindSafe for MirSourcePos
impl Send for MirSourcePos
impl Sync for MirSourcePos
impl Unpin for MirSourcePos
impl UnwindSafe for MirSourcePos
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