Enum syn::Meta [−][src]
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)
Tuple Fields
0: Path
List(MetaList)
Tuple Fields
0: MetaList
A structured list within an attribute, like derive(Copy, Clone)
.
NameValue(MetaNameValue)
Tuple Fields
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