Enum rustc_ast::ast::GenericBound [−][src]
pub enum GenericBound {
Trait(PolyTraitRef, TraitBoundModifier),
Outlives(Lifetime),
}Expand description
The AST represents all type param bounds as types.
typeck::collect::compute_bounds matches these against
the “special” built-in traits (see middle::lang_items) and
detects Copy, Send and Sync.
Variants
Trait(PolyTraitRef, TraitBoundModifier)Outlives(Lifetime)Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GenericBoundimpl !Send for GenericBoundimpl !Sync for GenericBoundimpl Unpin for GenericBoundimpl !UnwindSafe for GenericBoundBlanket 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: 88 bytes