pub struct LintConfig {
pub rules: HashMap<String, bool>,
}Expand description
Linter configuration.
Preferred shape is [lint.rules] rule-name = true/false.
Legacy [lint] rule-name = true/false is still supported (deprecated).
Fields§
§rules: HashMap<String, bool>Implementations§
Source§impl LintConfig
impl LintConfig
pub fn is_rule_enabled(&self, rule_name: &str) -> bool
Trait Implementations§
Source§impl Clone for LintConfig
impl Clone for LintConfig
Source§fn clone(&self) -> LintConfig
fn clone(&self) -> LintConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LintConfig
impl Debug for LintConfig
Source§impl Default for LintConfig
impl Default for LintConfig
Source§fn default() -> LintConfig
fn default() -> LintConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LintConfig
impl<'de> Deserialize<'de> for LintConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LintConfig
impl PartialEq for LintConfig
Source§impl Serialize for LintConfig
impl Serialize for LintConfig
impl StructuralPartialEq for LintConfig
Auto Trait Implementations§
impl Freeze for LintConfig
impl RefUnwindSafe for LintConfig
impl Send for LintConfig
impl Sync for LintConfig
impl Unpin for LintConfig
impl UnsafeUnpin for LintConfig
impl UnwindSafe for LintConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more