pub enum Meta {
Path(Path),
List(MetaList),
NameValue(MetaNameValue),
}
Expand description
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
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