pub struct Directive {
pub axis: Axis,
pub verb: Verb,
pub rule: Option<String>,
pub deprecated: bool,
}Expand description
One directive, as written. Resolution against the tree happens in
Suppressions::build.
Fields§
§axis: Axis§verb: Verb§rule: Option<String>The rule the directive selects; None means every rule. Only ever Some
on Axis::Lint — the other two axes have nothing to select.
deprecated: boolWritten in the retired % badness-ignore spelling. Behaves identically —
this exists so a lint rule can report the retired spelling and offer the
rewrite, without having to re-parse the comment.
Trait Implementations§
impl Eq for Directive
impl StructuralPartialEq for Directive
Auto Trait Implementations§
impl Freeze for Directive
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnsafeUnpin for Directive
impl UnwindSafe for Directive
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