Enum rustc::lint::LevelUnstable [-] [+] [src]

pub enum Level {
    Allow,
    Warn,
    Deny,
    Forbid,
}

Setting for how to handle a lint.

Variants

Allow
Warn
Deny
Forbid

Methods

impl Level

fn as_str(self) -> &'static str

Convert a level to a lower-case string.

fn from_str(x: &str) -> Option<Level>

Convert a lower-case string to a level.

Trait Implementations

Derived Implementations

impl Debug for Level

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

impl Ord for Level

fn cmp(&self, __arg_0: &Level) -> Ordering

impl Eq for Level

fn assert_receiver_is_total_eq(&self)

impl PartialOrd for Level

fn partial_cmp(&self, __arg_0: &Level) -> Option<Ordering>

fn lt(&self, __arg_0: &Level) -> bool

fn le(&self, __arg_0: &Level) -> bool

fn gt(&self, __arg_0: &Level) -> bool

fn ge(&self, __arg_0: &Level) -> bool

impl PartialEq for Level

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

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

impl Copy for Level

impl Clone for Level

fn clone(&self) -> Level

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