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: GenericBoundsTrait 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 be different between compiler versions and platforms. 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