pub struct LintOptions {
pub disabled: HashSet<String>,
}Expand description
Linter options: rules in disabled do not run.
Fields§
§disabled: HashSet<String>Implementations§
Source§impl LintOptions
impl LintOptions
Sourcepub fn with_disabled(names: &[String]) -> Result<Self, String>
pub fn with_disabled(names: &[String]) -> Result<Self, String>
Fails on the first unknown rule name, listing the valid ones.
Trait Implementations§
Source§impl Clone for LintOptions
impl Clone for LintOptions
Source§impl Debug for LintOptions
impl Debug for LintOptions
Auto Trait Implementations§
impl Freeze for LintOptions
impl RefUnwindSafe for LintOptions
impl Send for LintOptions
impl Sync for LintOptions
impl Unpin for LintOptions
impl UnsafeUnpin for LintOptions
impl UnwindSafe for LintOptions
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