Enum syn::MetaItem [] [src]

pub enum MetaItem {
    Word(Ident),
    List(IdentVec<NestedMetaItem>),
    NameValue(IdentLit),
}

A compile-time attribute item.

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

Variants

Word meta item.

E.g. test as in #[test]

List meta item.

E.g. derive(..) as in #[derive(..)]

Name-value meta item.

E.g. feature = "foo" as in #[feature = "foo"]

Methods

impl MetaItem
[src]

Name of the item.

E.g. test as in #[test], derive as in #[derive(..)], and feature as in #[feature = "foo"].

Trait Implementations

impl ToTokens for MetaItem
[src]

Write self to the given Tokens. Read more

impl Debug for MetaItem
[src]

Formats the value using the given formatter.

impl Clone for MetaItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for MetaItem
[src]

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 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.