pub enum Operand<Prov = AllocId>where
Prov: Provenance,{
Immediate(Immediate<Prov>),
Indirect(MemPlace<Prov>),
}
Expand description
An Operand
is the result of computing a mir::Operand
. It can be immediate,
or still in memory. The latter is an optimization, to delay reading that chunk of
memory and to avoid having to store arbitrary-sized data here.
Variants
Immediate(Immediate<Prov>)
Indirect(MemPlace<Prov>)
Auto Trait Implementations
impl<Prov> RefUnwindSafe for Operand<Prov>where
Prov: RefUnwindSafe,
impl<Prov> Send for Operand<Prov>where
Prov: Send,
impl<Prov> Sync for Operand<Prov>where
Prov: Sync,
impl<Prov> Unpin for Operand<Prov>where
Prov: Unpin,
impl<Prov> UnwindSafe for Operand<Prov>where
Prov: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.