Extra things to check for during validation of CTFE results.
Regular validation, nothing special happening.
Validation of a
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
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
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 bytes
Const: 2 bytes