Enum futures_await_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::Term(Ident::from("Copy")).

A Rust literal.

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

Trait Implementations

impl Clone for NestedMetaItem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<MetaItem> for NestedMetaItem
[src]

[src]

Performs the conversion.

impl From<Lit> for NestedMetaItem
[src]

[src]

Performs the conversion.

impl ToTokens for NestedMetaItem
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more