Enum syn::NestedMeta [−][src]
Element of a compile-time attribute list.
This type is available only 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::Path
.
Lit(Lit)
A Rust literal, like the "new_name"
in #[rename("new_name")]
.
Trait Implementations
impl Clone for NestedMeta
[src]
impl Clone for NestedMeta
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<Lit> for NestedMeta
[src]
impl From<Lit> for NestedMeta
[src]fn from(e: Lit) -> NestedMeta
[src]
impl From<Meta> for NestedMeta
[src]
impl From<Meta> for NestedMeta
[src]fn from(e: Meta) -> NestedMeta
[src]
impl Hash for NestedMeta
[src]
impl Hash for NestedMeta
[src]impl Parse for NestedMeta
[src]
impl Parse for NestedMeta
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<NestedMeta> for NestedMeta
[src]
impl PartialEq<NestedMeta> for NestedMeta
[src]impl ToTokens for NestedMeta
[src]
impl ToTokens for NestedMeta
[src]