Enum syntax::feature_gate::AttributeType [−] [src]

pub enum AttributeType {
    Normal,
    Whitelisted,
    Gated(&'static str, &'static str),
    CrateLevel,
}
Unstable

Variants

Normal
Unstable

Normal, builtin attribute that is consumed by the compiler before the unused_attribute check

Whitelisted
Unstable

Builtin attribute that may not be consumed by the compiler before the unused_attribute check. These attributes will be ignored by the unused_attribute lint

Gated
Unstable

Is gated by a given feature gate and reason These get whitelisted too

CrateLevel
Unstable

Builtin attribute that is only allowed at the crate level

Trait Implementations

Derived Implementations

impl Debug for AttributeType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for AttributeType

fn clone(&self) -> AttributeType

fn clone_from(&mut self, source: &Self)

impl Copy for AttributeType

impl PartialEq for AttributeType

fn eq(&self, __arg_0: &AttributeType) -> bool

fn ne(&self, __arg_0: &AttributeType) -> bool