pub struct LintConfiguration {
pub select: Vec<RuleSelector>,
pub ignore: Vec<RuleSelector>,
pub per_file_ignores: Vec<PerFileIgnore>,
pub function_name_case: NameCase,
}Fields§
§select: Vec<RuleSelector>§ignore: Vec<RuleSelector>§per_file_ignores: Vec<PerFileIgnore>§function_name_case: NameCaseImplementations§
Source§impl LintConfiguration
impl LintConfiguration
pub fn is_rule_enabled(&self, code: &str) -> bool
pub fn is_rule_enabled_for_path(&self, path: &Path, code: &str) -> bool
Trait Implementations§
Source§impl Clone for LintConfiguration
impl Clone for LintConfiguration
Source§fn clone(&self) -> LintConfiguration
fn clone(&self) -> LintConfiguration
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 LintConfiguration
impl Debug for LintConfiguration
Source§impl Default for LintConfiguration
impl Default for LintConfiguration
Source§impl PartialEq for LintConfiguration
impl PartialEq for LintConfiguration
impl Eq for LintConfiguration
impl StructuralPartialEq for LintConfiguration
Auto Trait Implementations§
impl Freeze for LintConfiguration
impl RefUnwindSafe for LintConfiguration
impl Send for LintConfiguration
impl Sync for LintConfiguration
impl Unpin for LintConfiguration
impl UnsafeUnpin for LintConfiguration
impl UnwindSafe for LintConfiguration
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