Struct syn::TraitItemMethod [−][src]
pub struct TraitItemMethod { pub attrs: Vec<Attribute>, pub sig: Signature, pub default: Option<Block>, pub semi_token: Option<Semi>, }
This is supported on crate feature
full
only.A trait method within the definition of a trait.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
sig: Signature
default: Option<Block>
semi_token: Option<Semi>
Trait Implementations
impl Clone for TraitItemMethod
[src]
impl Clone for TraitItemMethod
[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 TraitItemMethod
[src]
impl Debug for TraitItemMethod
[src]This is supported on crate feature
extra-traits
only.impl Eq for TraitItemMethod
[src]
impl Eq for TraitItemMethod
[src]This is supported on crate feature
extra-traits
only.impl From<TraitItemMethod> for TraitItem
[src]
impl From<TraitItemMethod> for TraitItem
[src]fn from(e: TraitItemMethod) -> TraitItem
[src]
impl Hash for TraitItemMethod
[src]
impl Hash for TraitItemMethod
[src]This is supported on crate feature
extra-traits
only.impl Parse for TraitItemMethod
[src]
impl Parse for TraitItemMethod
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TraitItemMethod> for TraitItemMethod
[src]
impl PartialEq<TraitItemMethod> for TraitItemMethod
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for TraitItemMethod
[src]
impl ToTokens for TraitItemMethod
[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 TraitItemMethod
impl RefUnwindSafe for TraitItemMethod
impl !Send for TraitItemMethod
impl !Send for TraitItemMethod
impl !Sync for TraitItemMethod
impl !Sync for TraitItemMethod
impl Unpin for TraitItemMethod
impl Unpin for TraitItemMethod
impl UnwindSafe for TraitItemMethod
impl UnwindSafe for TraitItemMethod