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 NestedMeta
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for NestedMeta
[src]
impl Eq for NestedMeta
impl PartialEq for NestedMeta
[src]
impl PartialEq for NestedMeta
fn eq(&self, other: &NestedMeta) -> bool
[src]
fn eq(&self, other: &NestedMeta) -> bool
This 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) -> bool
This method tests for !=
.
impl Hash for NestedMeta
[src]
impl Hash for NestedMeta
fn 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 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)
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