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§
Trait Implementations§
source§impl VisitTags for Operand<Provenance>
impl VisitTags for Operand<Provenance>
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§
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.