pub struct SourceVarId(pub u32);Expand description
Frontend-local identity of a source variable within one module.
This is deliberately distinct from every parser or analyzer’s variable ID. A frontend projects its native IDs into this namespace before constructing source lookup metadata retained by the runtime.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for SourceVarId
impl Clone for SourceVarId
Source§fn clone(&self) -> SourceVarId
fn clone(&self) -> SourceVarId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceVarId
Source§impl Debug for SourceVarId
impl Debug for SourceVarId
Source§impl Default for SourceVarId
impl Default for SourceVarId
Source§fn default() -> SourceVarId
fn default() -> SourceVarId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SourceVarId
impl<'de> Deserialize<'de> for SourceVarId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SourceVarId
impl Display for SourceVarId
impl Eq for SourceVarId
Source§impl Hash for SourceVarId
impl Hash for SourceVarId
Source§impl Ord for SourceVarId
impl Ord for SourceVarId
Source§fn cmp(&self, other: &SourceVarId) -> Ordering
fn cmp(&self, other: &SourceVarId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SourceVarId
impl PartialEq for SourceVarId
Source§impl PartialOrd for SourceVarId
impl PartialOrd for SourceVarId
Source§impl Serialize for SourceVarId
impl Serialize for SourceVarId
impl StructuralPartialEq for SourceVarId
Auto Trait Implementations§
impl Freeze for SourceVarId
impl RefUnwindSafe for SourceVarId
impl Send for SourceVarId
impl Sync for SourceVarId
impl Unpin for SourceVarId
impl UnsafeUnpin for SourceVarId
impl UnwindSafe for SourceVarId
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