Enum rustc_lint::lint::Level
[−]
[src]
pub enum Level {
Allow,
Warn,
Deny,
Forbid,
}Unstable (
rustc_private)Setting for how to handle a lint.
Variants
AllowUnstable (
rustc_private)WarnUnstable (
rustc_private)DenyUnstable (
rustc_private)ForbidUnstable (
rustc_private)Methods
impl Level
fn as_str(self) -> &'static str
Unstable (
rustc_private)Convert a level to a lower-case string.
fn from_str(x: &str) -> Option<Level>
Unstable (
rustc_private)Convert a lower-case string to a level.
Trait Implementations
Derived Implementations
impl Debug for Level
impl Ord for Level
impl Eq for Level
impl PartialOrd<Level> for Level
fn partial_cmp(&self, __arg_0: &Level) -> Option<Ordering>
impl PartialEq<Level> for Level
fn eq(&self, __arg_0: &Level) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Copy for Level
impl Clone for Level
fn clone(&self) -> Level
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more