BoundConstness in rustc_ast::ast - Rust (original) (raw)
Enum BoundConstness
pub enum BoundConstness {
Never,
Always(Span),
Maybe(Span),
}
Expand description
The constness of a trait bound.
Type: Trait
Type: const Trait
Type: ~const Trait
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: 12 bytes
Size for each variant:
Never
: 0 bytesAlways
: 8 bytesMaybe
: 8 bytes