Enum miri::interpret::CtfeValidationMode
source · pub enum CtfeValidationMode {
Regular,
Const {
inner: bool,
allow_static_ptrs: bool,
},
}
Expand description
Extra things to check for during validation of CTFE results.
Variants§
Regular
Regular validation, nothing special happening.
Const
Validation of a const
.
inner
says if this is an inner, indirect allocation (as opposed to the top-level const
allocation). Being an inner allocation makes a difference because the top-level allocation
of a const
is copied for each use, but the inner allocations are implicitly shared.
allow_static_ptrs
says if pointers to statics are permitted (which is the case for promoteds in statics).
Auto Trait Implementations§
impl RefUnwindSafe for CtfeValidationMode
impl Send for CtfeValidationMode
impl Sync for CtfeValidationMode
impl Unpin for CtfeValidationMode
impl UnwindSafe for CtfeValidationMode
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
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: 2 bytes
Size for each variant:
Regular
: 0 bytesConst
: 2 bytes