Struct syn::TraitBound [−][src]
pub struct TraitBound {
    pub paren_token: Option<Paren>,
    pub modifier: TraitBoundModifier,
    pub lifetimes: Option<BoundLifetimes>,
    pub path: Path,
}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
impl Clone for TraitBound[src]
impl Clone for TraitBound[src]fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<TraitBound> for TypeParamBound[src]
impl From<TraitBound> for TypeParamBound[src]fn from(e: TraitBound) -> TypeParamBound[src]
impl Parse for TraitBound[src]
impl Parse for TraitBound[src]fn parse(input: ParseStream<'_>) -> Result<Self>[src]
impl ToTokens for TraitBound[src]
impl ToTokens for TraitBound[src]