Struct syn::TraitItem [] [src]

pub struct TraitItem {
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub node: TraitItemKind,
}

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

Fields

Trait Implementations

impl ToTokens for TraitItem
[src]

[src]

Write self to the given Tokens. Read more

impl Debug for TraitItem
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TraitItem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for TraitItem
[src]

impl PartialEq for TraitItem
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for TraitItem
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more