Enum rustc_lint::lint::Level
[−]
[src]
pub enum Level { Allow, Warn, Deny, Forbid, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Setting for how to handle a lint.
Variants
Allow
🔬 This is a nightly-only experimental API. (
rustc_private
)Warn
🔬 This is a nightly-only experimental API. (
rustc_private
)Deny
🔬 This is a nightly-only experimental API. (
rustc_private
)Forbid
🔬 This is a nightly-only experimental API. (
rustc_private
)Methods
impl Level
[src]
fn as_str(self) -> &'static str
🔬 This is a nightly-only experimental API. (
rustc_private
)Convert a level to a lower-case string.
fn from_str(x: &str) -> Option<Level>
🔬 This is a nightly-only experimental API. (
rustc_private
)Convert a lower-case string to a level.
Trait Implementations
impl PartialOrd<Level> for Level
[src]
fn partial_cmp(&self, __arg_0: &Level) -> Option<Ordering>
🔬 This is a nightly-only experimental API. (
rustc_private
)impl PartialEq<Level> for Level
[src]
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) -> bool
1.0.0
This method tests for !=
.
impl Hash for Level
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
🔬 This is a nightly-only experimental API. (
rustc_private
)impl Clone for Level
[src]
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
impl Eq for Level
[src]
impl Debug for Level
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
🔬 This is a nightly-only experimental API. (
rustc_private
)