Enum syn::Meta [−][src]
pub enum Meta {
    Path(Path),
    List(MetaList),
    NameValue(MetaNameValue),
}Content of a compile-time structured attribute.
This type is available only if Syn is built with the "derive" or "full"
feature.
Path
A meta path is like the test in #[test].
List
A meta list is like the derive(Copy) in #[derive(Copy)].
NameValue
A name-value meta is like the path = "..." in #[path = "sys/windows.rs"].
Syntax tree enum
This type is a syntax tree enum.
Variants
Path(Path)List(MetaList)A structured list within an attribute, like derive(Copy, Clone).
NameValue(MetaNameValue)A name-value pair within an attribute, like feature = "nightly".
Implementations
impl Meta[src]
impl Meta[src]Trait Implementations
impl Clone for Meta[src]
impl Clone for Meta[src]fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<Meta> for NestedMeta[src]
impl From<Meta> for NestedMeta[src]fn from(e: Meta) -> NestedMeta[src]
impl From<MetaNameValue> for Meta[src]
impl From<MetaNameValue> for Meta[src]fn from(e: MetaNameValue) -> Meta[src]
impl ToTokens for Meta[src]
impl ToTokens for Meta[src]