Struct syn::TraitBound [−][src]
pub struct TraitBound { pub paren_token: Option<Paren>, pub modifier: TraitBoundModifier, pub lifetimes: Option<BoundLifetimes>, pub path: Path, }
This is supported on crate features
full
or derive
only.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
impl Clone for TraitBound
[src]
impl Clone for TraitBound
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TraitBound
[src]
impl Debug for TraitBound
[src]This is supported on crate feature
extra-traits
only.impl Eq for TraitBound
[src]
impl Eq for TraitBound
[src]This is supported on crate feature
extra-traits
only.impl From<TraitBound> for TypeParamBound
[src]
impl From<TraitBound> for TypeParamBound
[src]fn from(e: TraitBound) -> TypeParamBound
[src]
impl Hash for TraitBound
[src]
impl Hash for TraitBound
[src]This is supported on crate feature
extra-traits
only.impl Parse for TraitBound
[src]
impl Parse for TraitBound
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TraitBound> for TraitBound
[src]
impl PartialEq<TraitBound> for TraitBound
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for TraitBound
[src]
impl ToTokens for TraitBound
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for TraitBound
impl RefUnwindSafe for TraitBound
impl !Send for TraitBound
impl !Send for TraitBound
impl !Sync for TraitBound
impl !Sync for TraitBound
impl Unpin for TraitBound
impl Unpin for TraitBound
impl UnwindSafe for TraitBound
impl UnwindSafe for TraitBound