pub enum Tool {
Both,
Format,
Lint,
}Expand description
Which tool a directive addresses.
Variants§
Both
# arity … — both the formatter and the linter.
Format
# arity-format … — the formatter alone.
Lint
# arity-lint … — the linter alone.
Implementations§
Source§impl Tool
impl Tool
Sourcepub fn affects_lint(self) -> bool
pub fn affects_lint(self) -> bool
Whether a directive with this tool suppresses lint findings.
Sourcepub fn affects_format(self) -> bool
pub fn affects_format(self) -> bool
Whether a directive with this tool suppresses formatting.
Trait Implementations§
impl Copy for Tool
impl Eq for Tool
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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