pub enum ValueRef {
Instruction(InstrId),
Argument(ArgId),
Constant(ConstId),
Global(GlobalId),
}Expand description
A Copy reference to any SSA value.
Variants§
Instruction(InstrId)
Instruction variant.
Argument(ArgId)
Argument variant.
Constant(ConstId)
Constant variant.
Global(GlobalId)
Global variant.
Trait Implementations§
impl Copy for ValueRef
impl Eq for ValueRef
impl StructuralPartialEq for ValueRef
Auto Trait Implementations§
impl Freeze for ValueRef
impl RefUnwindSafe for ValueRef
impl Send for ValueRef
impl Sync for ValueRef
impl Unpin for ValueRef
impl UnsafeUnpin for ValueRef
impl UnwindSafe for ValueRef
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