Struct syntex_syntax::ast::Item [] [src]

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

An item

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

Fields

Trait Implementations

impl Clone for Item
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Item
[src]

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

This method tests for !=.

impl Eq for Item
[src]

impl Encodable for Item
[src]

Serialize a value using an Encoder.

impl Decodable for Item
[src]

Deserialize a value using a Decoder.

impl Hash for Item
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Item
[src]

Formats the value using the given formatter.

impl HasAttrs for Item
[src]