Struct syntax::ast::MetaItem[][src]

pub struct MetaItem {
    pub ident: Path,
    pub node: MetaItemKind,
    pub span: Span,
}

A spanned compile-time attribute item.

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

Fields

Methods

impl MetaItem
[src]

Trait Implementations

impl Clone for MetaItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for MetaItem
[src]

impl Decodable for MetaItem
[src]

impl Debug for MetaItem
[src]

Formats the value using the given formatter. Read more

impl ToTokens for MetaItem
[src]

Important traits for Vec<u8>

Auto Trait Implementations

impl !Send for MetaItem

impl !Sync for MetaItem