Struct syn::TraitBound [−][src]
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: Path
The Foo<&'a T>
in for<'a> Foo<&'a T>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TraitBound
impl !Send for TraitBound
impl !Sync for TraitBound
impl Unpin for TraitBound
impl UnwindSafe for TraitBound
Blanket Implementations
Mutably borrows from an owned value. Read more