Enum rustc_ast::ast::AssocConstraintKind
source · [−]pub enum AssocConstraintKind {
Equality {
term: Term,
},
Bound {
bounds: GenericBounds,
},
}Expand description
The kinds of an AssocConstraint.
Variants
Equality
Fields
term: TermE.g., A = Bar, A = 3 in Foo<A = Bar> where A is an associated type.
Bound
Fields
bounds: GenericBoundsE.g. A: TraitA + TraitB in Foo<A: TraitA + TraitB>.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AssocConstraintKind
impl !Send for AssocConstraintKind
impl !Sync for AssocConstraintKind
impl Unpin for AssocConstraintKind
impl !UnwindSafe for AssocConstraintKind
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: 32 bytes
Size for each variant:
Equality: 24 bytesBound: 24 bytes