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 of Path
0: Path
List(MetaList)
A structured list within an attribute, like derive(Copy, Clone)
.
Tuple Fields of List
0: MetaList
NameValue(MetaNameValue)
A name-value pair within an attribute, like feature = "nightly"
.
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