Enum rustc_ap_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 GenericBound
impl !Send for GenericBound
impl !Sync for GenericBound
impl Unpin for GenericBound
impl !UnwindSafe for GenericBound
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V