Enum syn::NestedMeta[][src]

pub enum NestedMeta {

Element of a compile-time attribute list.

This type is available if Syn is built with the "derive" or "full" feature.


A structured meta item, like the Copy in #[derive(Copy)] which would be a nested Meta::Word.

A Rust literal, like the "new_name" in #[rename("new_name")].

Trait Implementations

impl Debug for NestedMeta

Formats the value using the given formatter. Read more

impl Eq for NestedMeta

impl PartialEq for NestedMeta

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

This method tests for !=.

impl Hash for NestedMeta

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for NestedMeta

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Meta> for NestedMeta

Performs the conversion.

impl From<Lit> for NestedMeta

Performs the conversion.

impl ToTokens for NestedMeta

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

impl !Send for NestedMeta

impl !Sync for NestedMeta