pub struct TypeParam {
pub attrs: Vec<Attribute>,
pub ident: Ident,
pub colon_token: Option<Colon>,
pub bounds: Punctuated<TypeParamBound, Plus>,
pub eq_token: Option<Eq>,
pub default: Option<Type>,
}
Expand description
A generic type parameter: T: Into<String>
.
Fields§
§attrs: Vec<Attribute>
§ident: Ident
§colon_token: Option<Colon>
§bounds: Punctuated<TypeParamBound, Plus>
§eq_token: Option<Eq>
§default: Option<Type>
Trait Implementations§
source§impl From<TypeParam> for GenericParam
impl From<TypeParam> for GenericParam
source§fn from(e: TypeParam) -> GenericParam
fn from(e: TypeParam) -> GenericParam
Converts to this type from the input type.