pub enum AssignmentRhs {
Var,
Block(Block),
Phi(Phi),
ReservedInst,
ReservedConst,
Instruction(Instruction),
}
Expand description
Any value that can be assigned to a name.
Variants§
Var
An input variable.
Block(Block)
A basic block.
Phi(Phi)
A phi node.
ReservedInst
A hole reserved for an as-of-yet-unknown instruction.
ReservedConst
A hole reserved for an as-of-yet-unknown constant.
Instruction(Instruction)
An instruction and its operands.
Trait Implementations§
Source§impl Clone for AssignmentRhs
impl Clone for AssignmentRhs
Source§fn clone(&self) -> AssignmentRhs
fn clone(&self) -> AssignmentRhs
Returns a copy 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 AssignmentRhs
impl Debug for AssignmentRhs
Source§impl From<Block> for AssignmentRhs
impl From<Block> for AssignmentRhs
Source§impl From<Instruction> for AssignmentRhs
impl From<Instruction> for AssignmentRhs
Source§fn from(i: Instruction) -> Self
fn from(i: Instruction) -> Self
Converts to this type from the input type.
Source§impl From<Phi> for AssignmentRhs
impl From<Phi> for AssignmentRhs
Auto Trait Implementations§
impl Freeze for AssignmentRhs
impl RefUnwindSafe for AssignmentRhs
impl Send for AssignmentRhs
impl Sync for AssignmentRhs
impl Unpin for AssignmentRhs
impl UnwindSafe for AssignmentRhs
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)