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 Debug for NestedMeta[src]
impl Debug for NestedMetafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for NestedMeta[src]
impl Eq for NestedMetaimpl PartialEq for NestedMeta[src]
impl PartialEq for NestedMetafn eq(&self, other: &NestedMeta) -> bool[src]
fn eq(&self, other: &NestedMeta) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &NestedMeta) -> bool[src]
fn ne(&self, other: &NestedMeta) -> boolThis method tests for !=.
impl Hash for NestedMeta[src]
impl Hash for NestedMetafn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
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)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