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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more