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: TraitBoundModifierlifetimes: Option<BoundLifetimes>The for<'a> in for<'a> Foo<&'a T>
path: PathThe Foo<&'a T> in for<'a> Foo<&'a T>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TraitBoundimpl !Send for TraitBoundimpl !Sync for TraitBoundimpl Unpin for TraitBoundimpl UnwindSafe for TraitBoundBlanket Implementations
Mutably borrows from an owned value. Read more