Enum rustc_const_eval::interpret::Operand
source · [−]pub enum Operand<Prov: Provenance = AllocId> {
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>)
Trait Implementations
sourceimpl<Prov: Clone + Provenance> Clone for Operand<Prov>
impl<Prov: Clone + Provenance> Clone for Operand<Prov>
sourceimpl<Prov: Debug + Provenance> Debug for Operand<Prov>
impl<Prov: Debug + Provenance> Debug for Operand<Prov>
impl<Prov: Copy + Provenance> Copy for Operand<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
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.