Enum rustc_ast::ast::AssocTyConstraintKind [−][src]
pub enum AssocTyConstraintKind {
Equality {
ty: P<Ty>,
},
Bound {
bounds: GenericBounds,
},
}
Expand description
The kinds of an AssocTyConstraint
.
Variants
E.g., A = Bar
in Foo<A = Bar>
.
E.g. A: TraitA + TraitB
in Foo<A: TraitA + TraitB>
.
Fields of Bound
bounds: GenericBounds
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AssocTyConstraintKind
impl !Send for AssocTyConstraintKind
impl !Sync for AssocTyConstraintKind
impl Unpin for AssocTyConstraintKind
impl !UnwindSafe for AssocTyConstraintKind
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
: 8 bytesBound
: 24 bytes