[−][src]Enum rustc_hir::def::NonMacroAttrKind

pub enum NonMacroAttrKind {
    Builtin,
    Tool,
    DeriveHelper,
    DeriveHelperCompat,
    Registered,
}

Variants

Builtin

Single-segment attribute defined by the language (#[inline])

Tool

Multi-segment custom attribute living in a "tool module" (#[rustfmt::skip]).

DeriveHelper

Single-segment custom attribute registered by a derive macro (#[serde(default)]).

DeriveHelperCompat

Single-segment custom attribute registered by a derive macro but used before that derive macro was expanded (deprecated).

Registered

Single-segment custom attribute registered with #[register_attr].

Implementations

impl NonMacroAttrKind[src]

pub fn descr(self) -> &'static str[src]

pub fn article(self) -> &'static str[src]

pub fn is_used(self) -> bool[src]

Users of some attributes cannot mark them as used, so they are considered always used.

Trait Implementations

impl Clone for NonMacroAttrKind[src]

impl Copy for NonMacroAttrKind[src]

impl Debug for NonMacroAttrKind[src]

impl<__D: Decoder> Decodable<__D> for NonMacroAttrKind[src]

impl<__E: Encoder> Encodable<__E> for NonMacroAttrKind[src]

impl Eq for NonMacroAttrKind[src]

impl Hash for NonMacroAttrKind[src]

impl<__CTX> HashStable<__CTX> for NonMacroAttrKind where
    __CTX: HashStableContext, 
[src]

impl PartialEq<NonMacroAttrKind> for NonMacroAttrKind[src]

impl StructuralEq for NonMacroAttrKind[src]

impl StructuralPartialEq for NonMacroAttrKind[src]

Auto Trait Implementations

impl RefUnwindSafe for NonMacroAttrKind

impl Send for NonMacroAttrKind

impl Sync for NonMacroAttrKind

impl Unpin for NonMacroAttrKind

impl UnwindSafe for NonMacroAttrKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.