Struct syntex_syntax::ast::MetaItem [] [src]

pub struct MetaItem {
    pub name: Name,
    pub node: MetaItemKind,
    pub span: Span,
}

A spanned compile-time attribute item.

E.g. #[test], #[derive(..)] or #[feature = "foo"]

Fields

Methods

impl MetaItem
[src]

Trait Implementations

impl Clone for MetaItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for MetaItem
[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 MetaItem
[src]

impl Encodable for MetaItem
[src]

Serialize a value using an Encoder.

impl Decodable for MetaItem
[src]

Deserialize a value using a Decoder.

impl Hash for MetaItem
[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 MetaItem
[src]

Formats the value using the given formatter.

impl ToTokens for MetaItem
[src]