BoundPolarity in rustc_ast::ast - Rust (original) (raw)
Enum BoundPolarity
pub enum BoundPolarity {
Positive,
Negative(Span),
Maybe(Span),
}Expand description
The polarity of a trait bound.
Type: Trait
Type: !Trait
Type: ?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:
Positive: 0 bytesNegative: 8 bytesMaybe: 8 bytes