Enum rustc_const_eval::interpret::memory::AllocCheck [−][src]
pub enum AllocCheck {
Dereferenceable,
Live,
MaybeDead,
}
Expand description
Used by get_size_and_align
to indicate whether the allocation needs to be live.
Variants
Allocation must be live and not a function pointer.
Allocations needs to be live, but may be a function pointer.
Allocation may be dead.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AllocCheck
impl Send for AllocCheck
impl Sync for AllocCheck
impl Unpin for AllocCheck
impl UnwindSafe for AllocCheck
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Dereferenceable
: 0 bytesLive
: 0 bytesMaybeDead
: 0 bytes