Enum syn::TypeParamBound
source · 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)
Lifetime(Lifetime)
Trait Implementations§
source§impl Clone for TypeParamBound
impl Clone for TypeParamBound
source§impl Debug for TypeParamBound
impl Debug for TypeParamBound
source§impl From<Lifetime> for TypeParamBound
impl From<Lifetime> for TypeParamBound
source§fn from(e: Lifetime) -> TypeParamBound
fn from(e: Lifetime) -> TypeParamBound
Converts to this type from the input type.
source§impl From<TraitBound> for TypeParamBound
impl From<TraitBound> for TypeParamBound
source§fn from(e: TraitBound) -> TypeParamBound
fn from(e: TraitBound) -> TypeParamBound
Converts to this type from the input type.