Enum rustc_ast::ast::TraitBoundModifier [−][src]
pub enum TraitBoundModifier {
None,
Maybe,
MaybeConst,
MaybeConstMaybe,
}
Expand description
A modifier on a bound, e.g., ?Sized
or ~const Trait
.
Negative bounds should also be handled here.
Variants
No modifiers
?Trait
~const Trait
~const ?Trait
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TraitBoundModifier
impl Send for TraitBoundModifier
impl Sync for TraitBoundModifier
impl Unpin for TraitBoundModifier
impl UnwindSafe for TraitBoundModifier
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:
None
: 0 bytesMaybe
: 0 bytesMaybeConst
: 0 bytesMaybeConstMaybe
: 0 bytes