[][src]Enum rustc_ast::ast::MetaItemKind

pub enum MetaItemKind {

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"].


impl MetaItemKind[src]

pub fn mac_args(&self, span: Span) -> MacArgs[src]

fn token_trees_and_joints(&self, span: Span) -> Vec<TreeAndJoint>[src]

fn list_from_tokens(tokens: TokenStream) -> Option<MetaItemKind>[src]

fn name_value_from_tokens(
    tokens: &mut impl Iterator<Item = TokenTree>
) -> Option<MetaItemKind>

fn from_mac_args(args: &MacArgs) -> Option<MetaItemKind>[src]

fn from_tokens(
    tokens: &mut Peekable<impl Iterator<Item = TokenTree>>
) -> Option<MetaItemKind>

Trait Implementations

impl Clone for MetaItemKind[src]

impl Debug for MetaItemKind[src]

impl Decodable for MetaItemKind[src]

impl Encodable for MetaItemKind[src]

impl<__CTX> HashStable<__CTX> for MetaItemKind where
    __CTX: HashStableContext

Auto Trait Implementations

impl !RefUnwindSafe for MetaItemKind

impl !Send for MetaItemKind

impl !Sync for MetaItemKind

impl Unpin for MetaItemKind

impl !UnwindSafe for MetaItemKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Decodable for T where
    T: UseSpecializedDecodable

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.