Enum syn::MetaItem [] [src]

pub enum MetaItem {

A compile-time attribute item.

E.g. #[test], #[derive(..)] or #[feature = "foo"]


Word meta item.

E.g. test as in #[test]

List meta item.

E.g. derive(..) as in #[derive(..)]

Name value meta item.

E.g. feature = "foo" as in #[feature = "foo"]

Trait Implementations

impl ToTokens for MetaItem

impl Debug for MetaItem

Formats the value using the given formatter.

impl Clone for MetaItem

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for MetaItem

impl PartialEq for MetaItem

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.