Enum rustc_const_eval::interpret::operand::Operand [−][src]
pub enum Operand<Tag: Provenance = AllocId> {
Immediate(Immediate<Tag>),
Indirect(MemPlace<Tag>),
}
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<Tag>)
Tuple Fields of Immediate
0: Immediate<Tag>
Indirect(MemPlace<Tag>)
Tuple Fields of Indirect
0: MemPlace<Tag>
Trait Implementations
impl<'__ctx, Tag: Provenance> HashStable<StableHashingContext<'__ctx>> for Operand<Tag> where
Tag: HashStable<StableHashingContext<'__ctx>>,
impl<'__ctx, Tag: Provenance> HashStable<StableHashingContext<'__ctx>> for Operand<Tag> where
Tag: HashStable<StableHashingContext<'__ctx>>,
Auto Trait Implementations
impl<Tag> RefUnwindSafe for Operand<Tag> where
Tag: RefUnwindSafe,
impl<Tag> UnwindSafe for Operand<Tag> where
Tag: UnwindSafe,
Blanket Implementations
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.