Struct syn::TraitBound
source · pub struct TraitBound {
pub paren_token: Option<Paren>,
pub modifier: TraitBoundModifier,
pub lifetimes: Option<BoundLifetimes>,
pub path: Path,
}Expand description
A trait used as a bound on a type parameter.
This type is available only if Syn is built with the "derive" or "full"
feature.
Fields§
§paren_token: Option<Paren>§modifier: TraitBoundModifier§lifetimes: Option<BoundLifetimes>The for<'a> in for<'a> Foo<&'a T>
path: PathThe Foo<&'a T> in for<'a> Foo<&'a T>
Trait Implementations§
source§impl Clone for TraitBound
impl Clone for TraitBound
source§impl Debug for TraitBound
impl Debug for TraitBound
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.