Enum devise::syn::Meta [−][src]
pub enum Meta {
Word(Ident),
List(MetaList),
NameValue(MetaNameValue),
}
Expand description
Content of a compile-time structured attribute.
This type is available if Syn is built with the "derive"
or "full"
feature.
Word
A meta word 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
Word(Ident)
Tuple Fields of Word
0: Ident
List(MetaList)
A structured list within an attribute, like derive(Copy, Clone)
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Tuple Fields of List
0: MetaList
NameValue(MetaNameValue)
A name-value pair within an attribute, like feature = "nightly"
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Tuple Fields of NameValue
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Meta
impl UnwindSafe for Meta
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more