#[non_exhaustive]pub enum SkipReason<'l> {
NonUtf8Content,
UnsupportedExtension(Option<&'l str>),
UnsupportedFile(&'l Utf8Path),
UnsupportedPackage(&'l PackageId),
GlobExemption(&'l str),
}Expand description
The reason for why this lint was skipped.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonUtf8Content
This file’s content was not valid UTF-8.
UnsupportedExtension(Option<&'l str>)
This extension was unsupported.
UnsupportedFile(&'l Utf8Path)
The given file was unsupported by this linter.
UnsupportedPackage(&'l PackageId)
The given package was unsupported by this linter.
GlobExemption(&'l str)
The given file was excepted by a glob rule
Trait Implementations§
Source§impl<'l> Clone for SkipReason<'l>
impl<'l> Clone for SkipReason<'l>
Source§fn clone(&self) -> SkipReason<'l>
fn clone(&self) -> SkipReason<'l>
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<'l> Debug for SkipReason<'l>
impl<'l> Debug for SkipReason<'l>
impl<'l> Eq for SkipReason<'l>
Source§impl<'l> PartialEq for SkipReason<'l>
impl<'l> PartialEq for SkipReason<'l>
impl<'l> StructuralPartialEq for SkipReason<'l>
Auto Trait Implementations§
impl<'l> Freeze for SkipReason<'l>
impl<'l> RefUnwindSafe for SkipReason<'l>
impl<'l> Send for SkipReason<'l>
impl<'l> Sync for SkipReason<'l>
impl<'l> Unpin for SkipReason<'l>
impl<'l> UnsafeUnpin for SkipReason<'l>
impl<'l> UnwindSafe for SkipReason<'l>
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.