pub enum Axis {
Format,
Lint,
Both,
}Expand description
Which subsystem a directive turns off.
Variants§
Format
% badness-format … — layout only. Lint findings are still reported.
Lint
% badness-lint … — linting only, for one rule or all of them.
Both
% badness … — layout and every lint rule.
Implementations§
Source§impl Axis
impl Axis
Sourcepub fn covers_format(self) -> bool
pub fn covers_format(self) -> bool
Whether a directive on this axis turns off layout.
Sourcepub fn covers_lint(self) -> bool
pub fn covers_lint(self) -> bool
Whether a directive on this axis turns off linting.
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnsafeUnpin for Axis
impl UnwindSafe for Axis
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