Enum syn::NestedMetaItem [−][src]
Possible values inside of compile-time attribute lists.
E.g. the '..' in #[name(..)].
Variants
MetaItem(MetaItem)A full MetaItem.
E.g. Copy in #[derive(Copy)] would be a MetaItem::Word(Ident::from("Copy")).
Literal(Lit)A Rust literal.
E.g. "name" in #[rename("name")].
Trait Implementations
impl ToTokens for NestedMetaItem[src]
impl ToTokens for NestedMetaItemimpl Debug for NestedMetaItem[src]
impl Debug for NestedMetaItemfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for NestedMetaItem[src]
impl Clone for NestedMetaItemfn clone(&self) -> NestedMetaItem[src]
fn clone(&self) -> NestedMetaItemReturns 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 Eq for NestedMetaItem[src]
impl Eq for NestedMetaItemimpl PartialEq for NestedMetaItem[src]
impl PartialEq for NestedMetaItemfn eq(&self, other: &NestedMetaItem) -> bool[src]
fn eq(&self, other: &NestedMetaItem) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &NestedMetaItem) -> bool[src]
fn ne(&self, other: &NestedMetaItem) -> boolThis method tests for !=.
impl Hash for NestedMetaItem[src]
impl Hash for NestedMetaItemAuto Trait Implementations
impl Send for NestedMetaItem
impl Send for NestedMetaItemimpl Sync for NestedMetaItem
impl Sync for NestedMetaItem