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.