Struct syn::TraitItemMethod [−][src]
pub struct TraitItemMethod { pub attrs: Vec<Attribute>, pub sig: Signature, pub default: Option<Block>, pub semi_token: Option<Semi>, }
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]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]impl Parse for TraitItemMethod
[src]
impl Parse for TraitItemMethod
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TraitItemMethod> for TraitItemMethod
[src]
impl PartialEq<TraitItemMethod> for TraitItemMethod
[src]impl ToTokens for TraitItemMethod
[src]
impl ToTokens for TraitItemMethod
[src]