pub struct VirtualReg {
pub id: u32,
pub ty: LcnfType,
pub hint: Option<PhysReg>,
}Expand description
A virtual register (pre-allocation).
Fields§
§id: u32Unique ID matching the corresponding LcnfVarId.
ty: LcnfTypeThe LCNF type of this register’s value.
hint: Option<PhysReg>An optional hint towards a preferred physical register.
Implementations§
Trait Implementations§
Source§impl Clone for VirtualReg
impl Clone for VirtualReg
Source§fn clone(&self) -> VirtualReg
fn clone(&self) -> VirtualReg
Returns a duplicate 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 VirtualReg
impl Debug for VirtualReg
Source§impl Hash for VirtualReg
impl Hash for VirtualReg
Source§impl PartialEq for VirtualReg
impl PartialEq for VirtualReg
impl Eq for VirtualReg
impl StructuralPartialEq for VirtualReg
Auto Trait Implementations§
impl Freeze for VirtualReg
impl RefUnwindSafe for VirtualReg
impl Send for VirtualReg
impl Sync for VirtualReg
impl Unpin for VirtualReg
impl UnsafeUnpin for VirtualReg
impl UnwindSafe for VirtualReg
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