Enum syn::Meta [−][src]
pub enum Meta { Path(Path), List(MetaList), NameValue(MetaNameValue), }
This is supported on crate features
full
or derive
only.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
impl Clone for Meta
[src]
impl Clone for Meta
[src]This is supported on crate feature
clone-impls
only.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 Parse for Meta
[src]
impl Parse for Meta
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl ToTokens for Meta
[src]
impl ToTokens for Meta
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for Meta
impl RefUnwindSafe for Meta
impl UnwindSafe for Meta
impl UnwindSafe for Meta