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 NestedMetafn clone(&self) -> NestedMeta[src]
fn clone(&self) -> NestedMetaReturns 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 NestedMetafn from(e: Meta) -> NestedMeta[src]
fn from(e: Meta) -> NestedMetaPerforms the conversion.
impl From<Lit> for NestedMeta[src]
impl From<Lit> for NestedMetafn from(e: Lit) -> NestedMeta[src]
fn from(e: Lit) -> NestedMetaPerforms the conversion.
impl ToTokens for NestedMeta[src]
impl ToTokens for NestedMetafn 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) -> TokenStreamConvert self directly into a TokenStream object. Read more
Auto Trait Implementations
impl !Send for NestedMeta
impl !Send for NestedMetaimpl !Sync for NestedMeta
impl !Sync for NestedMeta