Enum rustc::lint::Level
[−]
[src]
pub enum Level {
Allow,
Warn,
Deny,
Forbid,
}Unstable
Setting for how to handle a lint.
Variants
Allow | Unstable |
Warn | Unstable |
Deny | Unstable |
Forbid | Unstable |
Methods
impl Level
fn as_str(self) -> &'static str
Unstable
Convert a level to a lower-case string.
fn from_str(x: &str) -> Option<Level>
Unstable
Convert a lower-case string to a level.