Enum syn::NestedMetaItem [] [src]

pub enum NestedMetaItem {
    MetaItem(MetaItem),
    Literal(Lit),
}

Possible values inside of compile-time attribute lists.

E.g. the '..' in #[name(..)].

Variants

A full MetaItem.

E.g. Copy in #[derive(Copy)] would be a MetaItem::Word(Ident::from("Copy")).

A Rust literal.

E.g. "name" in #[rename("name")].

Trait Implementations

impl ToTokens for NestedMetaItem
[src]

Write self to the given Tokens. Read more

impl Debug for NestedMetaItem
[src]

Formats the value using the given formatter.

impl Clone for NestedMetaItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for NestedMetaItem
[src]

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

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

Feeds a slice of this type into the state provided.