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 |