enum InheritConstStability {
Yes,
No,
}
Expand description
Whether to inherit const stability flags for nested items. In most cases, we do not want to
inherit const stability: just because an enclosing fn
is const-stable does not mean
all extern
imports declared in it should be const-stable! However, trait methods
inherit const stability attributes from their parent and do not have their own.
Variants§
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InheritConstStability
impl Send for InheritConstStability
impl Sync for InheritConstStability
impl Unpin for InheritConstStability
impl UnwindSafe for InheritConstStability
Blanket Implementations§
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:
Yes
: 0 bytesNo
: 0 bytes