Enum syn::NestedMeta
[−]
[src]
Element of a compile-time attribute list.
This type is available if Syn is built with the "derive"
or "full"
feature.
Variants
Meta(Meta)
A structured meta item, like the Copy
in #[derive(Copy)]
which
would be a nested Meta::Word
.
Literal(Lit)
A Rust literal, like the "new_name"
in #[rename("new_name")]
.
Trait Implementations
impl Clone for NestedMeta
[src]
impl Clone for NestedMeta
fn clone(&self) -> NestedMeta
[src]
fn clone(&self) -> NestedMeta
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<Meta> for NestedMeta
[src]
impl From<Meta> for NestedMeta
fn from(e: Meta) -> NestedMeta
[src]
fn from(e: Meta) -> NestedMeta
Performs the conversion.
impl From<Lit> for NestedMeta
[src]
impl From<Lit> for NestedMeta
fn from(e: Lit) -> NestedMeta
[src]
fn from(e: Lit) -> NestedMeta
Performs the conversion.
impl ToTokens for NestedMeta
[src]
impl ToTokens for NestedMeta
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
Auto Trait Implementations
impl !Send for NestedMeta
impl !Send for NestedMeta
impl !Sync for NestedMeta
impl !Sync for NestedMeta