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 PartialEq for MetaItem
[src]

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

This method tests for !=.

impl Eq for MetaItem
[src]

impl Encodable for MetaItem
[src]

impl Decodable for MetaItem
[src]

impl Hash for MetaItem
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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