Enum rustc_const_eval::interpret::Operand
source · [−]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>)
Indirect(MemPlace<Tag>)
Trait Implementations
sourceimpl<Tag: Clone + Provenance> Clone for Operand<Tag>
impl<Tag: Clone + Provenance> Clone for Operand<Tag>
sourceimpl<Tag: Debug + Provenance> Debug for Operand<Tag>
impl<Tag: Debug + Provenance> Debug for Operand<Tag>
sourceimpl<Tag: Hash + Provenance> Hash for Operand<Tag>
impl<Tag: Hash + Provenance> Hash for Operand<Tag>
sourceimpl<'__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>>,
fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
impl<Tag: Copy + Provenance> Copy for Operand<Tag>
impl<Tag: Eq + Provenance> Eq for Operand<Tag>
impl<Tag: Provenance> StructuralEq for Operand<Tag>
impl<Tag: Provenance> StructuralPartialEq for Operand<Tag>
Auto Trait Implementations
impl<Tag> RefUnwindSafe for Operand<Tag> where
Tag: RefUnwindSafe,
impl<Tag> Send for Operand<Tag> where
Tag: Send,
impl<Tag> Sync for Operand<Tag> where
Tag: Sync,
impl<Tag> Unpin for Operand<Tag> where
Tag: Unpin,
impl<Tag> UnwindSafe for Operand<Tag> where
Tag: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. 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.