Enum syn::TypeParamBound
source · #[non_exhaustive]
pub enum TypeParamBound {
Trait(TraitBound),
Lifetime(Lifetime),
Verbatim(TokenStream),
}
Expand description
A trait or lifetime used as a bound on a type parameter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
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.