pub struct LocalVarId(pub u32);Expand description
Integer identifier for a local p-code variable. Strings are never stored; uniqueness is guaranteed by allocation order within each macro/constructor scope.
Tuple Fields§
§0: u32Allocation index within the scope this variable belongs to. Unique within one decoded instruction, since each spliced body — a macro expansion, a sub-table, a delay slot — is given its own base offset.
Trait Implementations§
Source§impl Clone for LocalVarId
impl Clone for LocalVarId
Source§fn clone(&self) -> LocalVarId
fn clone(&self) -> LocalVarId
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 LocalVarId
Source§impl Debug for LocalVarId
impl Debug for LocalVarId
Source§impl<'de> Deserialize<'de> for LocalVarId
impl<'de> Deserialize<'de> for LocalVarId
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
impl Eq for LocalVarId
Source§impl Hash for LocalVarId
impl Hash for LocalVarId
Source§impl PartialEq for LocalVarId
impl PartialEq for LocalVarId
Source§impl Serialize for LocalVarId
impl Serialize for LocalVarId
impl StructuralPartialEq for LocalVarId
Auto Trait Implementations§
impl Freeze for LocalVarId
impl RefUnwindSafe for LocalVarId
impl Send for LocalVarId
impl Sync for LocalVarId
impl Unpin for LocalVarId
impl UnsafeUnpin for LocalVarId
impl UnwindSafe for LocalVarId
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