Enum rustc_const_eval::interpret::MemPlaceMeta
source · pub enum MemPlaceMeta<Prov: Provenance = AllocId> {
Meta(Scalar<Prov>),
None,
}
Expand description
Information required for the sound usage of a MemPlace
.
Variants§
Meta(Scalar<Prov>)
The unsized payload (e.g. length for slices or vtable pointer for trait objects).
None
Sized
types or unsized extern type
Implementations§
source§impl<Prov: Provenance> MemPlaceMeta<Prov>
impl<Prov: Provenance> MemPlaceMeta<Prov>
Trait Implementations§
source§impl<Prov: Clone + Provenance> Clone for MemPlaceMeta<Prov>
impl<Prov: Clone + Provenance> Clone for MemPlaceMeta<Prov>
source§fn clone(&self) -> MemPlaceMeta<Prov>
fn clone(&self) -> MemPlaceMeta<Prov>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Prov: Debug + Provenance> Debug for MemPlaceMeta<Prov>
impl<Prov: Debug + Provenance> Debug for MemPlaceMeta<Prov>
source§impl<Prov: Hash + Provenance> Hash for MemPlaceMeta<Prov>
impl<Prov: Hash + Provenance> Hash for MemPlaceMeta<Prov>
source§impl<Prov: PartialEq + Provenance> PartialEq<MemPlaceMeta<Prov>> for MemPlaceMeta<Prov>
impl<Prov: PartialEq + Provenance> PartialEq<MemPlaceMeta<Prov>> for MemPlaceMeta<Prov>
source§fn eq(&self, other: &MemPlaceMeta<Prov>) -> bool
fn eq(&self, other: &MemPlaceMeta<Prov>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Prov: Copy + Provenance> Copy for MemPlaceMeta<Prov>
impl<Prov: Eq + Provenance> Eq for MemPlaceMeta<Prov>
impl<Prov: Provenance> StructuralEq for MemPlaceMeta<Prov>
impl<Prov: Provenance> StructuralPartialEq for MemPlaceMeta<Prov>
Auto Trait Implementations§
impl<Prov> RefUnwindSafe for MemPlaceMeta<Prov>where Prov: RefUnwindSafe,
impl<Prov> Send for MemPlaceMeta<Prov>where Prov: Send,
impl<Prov> Sync for MemPlaceMeta<Prov>where Prov: Sync,
impl<Prov> Unpin for MemPlaceMeta<Prov>where Prov: Unpin,
impl<Prov> UnwindSafe for MemPlaceMeta<Prov>where Prov: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn 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.