pub struct DisableSite {
pub line: usize,
pub span: Range<usize>,
pub kind: &'static str,
pub rules: Vec<String>,
pub scope: DisableScope,
}Expand description
An inline comment that disables rules, and the lines it can act on.
Fields§
§line: usize1-indexed line the comment opens on
span: Range<usize>Byte range of the comment within that line, clipped to the line’s end
kind: &'static strThe directive as written, e.g. disable-line
rules: Vec<String>The rule names the comment carries, as written; empty means every rule
scope: DisableScopeThe lines the comment can suppress a finding on
Trait Implementations§
Source§impl Clone for DisableSite
impl Clone for DisableSite
Source§fn clone(&self) -> DisableSite
fn clone(&self) -> DisableSite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DisableSite
impl Debug for DisableSite
impl Eq for DisableSite
Source§impl PartialEq for DisableSite
impl PartialEq for DisableSite
impl StructuralPartialEq for DisableSite
Auto Trait Implementations§
impl Freeze for DisableSite
impl RefUnwindSafe for DisableSite
impl Send for DisableSite
impl Sync for DisableSite
impl Unpin for DisableSite
impl UnsafeUnpin for DisableSite
impl UnwindSafe for DisableSite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.