pub enum DirectiveUsed {
Yes,
No,
Checked,
}Expand description
When a directive is set to “ignore”, it means a normally-active tidy lint is now ignored. This can be bad, if it’s ignored for no reason, so we track whether the ignore is actualy ignoring something.
Variants§
Yes
A lint is ignored, and something used that fact. i.e. A lint would’ve been emitted if it wasn’t ignored.
No
A lint is ignored but nothing yet used this ignore.
Checked
For drop-bomb behavior: a directive is ignored, and we’ve checked whether it was used or not. Directives panic on drop if they aren’t checked, to ensure we always emit a lint when a directive is uselessly ignored
Trait Implementations§
Source§impl Clone for DirectiveUsed
impl Clone for DirectiveUsed
Source§fn clone(&self) -> DirectiveUsed
fn clone(&self) -> DirectiveUsed
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DirectiveUsed
Auto Trait Implementations§
impl Freeze for DirectiveUsed
impl RefUnwindSafe for DirectiveUsed
impl Send for DirectiveUsed
impl Sync for DirectiveUsed
impl Unpin for DirectiveUsed
impl UnsafeUnpin for DirectiveUsed
impl UnwindSafe for DirectiveUsed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Yes: 0 bytesNo: 0 bytesChecked: 0 bytes