Enum syn::TypeParamBound
source · [−]pub enum TypeParamBound {
Trait(TraitBound),
Lifetime(Lifetime),
}
This is supported on crate features
full
or derive
only.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)
Lifetime(Lifetime)
Trait Implementations
Performs the conversion.
Performs the conversion.
impl PartialEq<TypeParamBound> for TypeParamBound
This is supported on crate feature extra-traits
only.
impl PartialEq<TypeParamBound> for TypeParamBound
This is supported on crate feature
extra-traits
only.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