Struct syn::Item [] [src]

pub struct Item {
    pub ident: Ident,
    pub vis: Visibility,
    pub attrs: Vec<Attribute>,
    pub node: ItemKind,
}

An item

The name might be a dummy name in case of anonymous items

Fields

Trait Implementations

impl ToTokens for Item
[src]

[src]

Write self to the given Tokens. Read more

impl Debug for Item
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Item
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Item
[src]

impl PartialEq for Item
[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 Item
[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

impl From<DeriveInput> for Item
[src]

[src]

Performs the conversion.