pub enum ValueDef {
Result(Inst, usize),
Param(Block, usize),
Union(Value, Value),
}
Expand description
Where did a value come from?
Variants§
Result(Inst, usize)
Value is the n’th result of an instruction.
Param(Block, usize)
Value is the n’th parameter to a block.
Union(Value, Value)
Value is a union of two other values.
Implementations§
Source§impl ValueDef
impl ValueDef
Sourcepub fn unwrap_inst(&self) -> Inst
pub fn unwrap_inst(&self) -> Inst
Unwrap the instruction where the value was defined, or panic.
Sourcepub fn unwrap_block(&self) -> Block
pub fn unwrap_block(&self) -> Block
Unwrap the block there the parameter is defined, or panic.
Trait Implementations§
impl Copy for ValueDef
impl Eq for ValueDef
impl StructuralPartialEq for ValueDef
Auto Trait Implementations§
impl Freeze for ValueDef
impl RefUnwindSafe for ValueDef
impl Send for ValueDef
impl Sync for ValueDef
impl Unpin for ValueDef
impl UnwindSafe for ValueDef
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.