Enum syn::TypeParamBound [−][src]
pub enum TypeParamBound {
Trait(TraitBound),
Lifetime(Lifetime),
}
Expand description
A trait or lifetime used as a bound on a type parameter.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Variants
Trait(TraitBound)
Tuple Fields
0: TraitBound
Lifetime(Lifetime)
Tuple Fields
0: Lifetime
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TypeParamBound
impl !Send for TypeParamBound
impl !Sync for TypeParamBound
impl Unpin for TypeParamBound
impl UnwindSafe for TypeParamBound
Blanket Implementations
Mutably borrows from an owned value. Read more