Struct syntex_syntax::ast::TraitItem [] [src]

pub struct TraitItem {
    pub id: NodeId,
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub node: TraitItem_,
    pub span: Span,
}

Represents a method declaration in a trait declaration, possibly including a default implementation A trait method is either required (meaning it doesn't have an implementation, just a signature) or provided (meaning it has a default implementation).

Fields

id
ident
attrs
node
span

Trait Implementations

Derived Implementations

impl Debug for TraitItem

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for TraitItem

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for TraitItem

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TraitItem, __D::Error>

impl Encodable for TraitItem

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for TraitItem

impl PartialEq for TraitItem

fn eq(&self, __arg_0: &TraitItem) -> bool

fn ne(&self, __arg_0: &TraitItem) -> bool

impl Clone for TraitItem

fn clone(&self) -> TraitItem

fn clone_from(&mut self, source: &Self)