Enum x_lint::SkipReason
source · #[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 copy of the value. Read more
1.0.0 · 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>
source§impl<'l> PartialEq<SkipReason<'l>> for SkipReason<'l>
impl<'l> PartialEq<SkipReason<'l>> for SkipReason<'l>
source§fn eq(&self, other: &SkipReason<'l>) -> bool
fn eq(&self, other: &SkipReason<'l>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'l> Eq for SkipReason<'l>
impl<'l> StructuralEq for SkipReason<'l>
impl<'l> StructuralPartialEq for SkipReason<'l>
Auto Trait Implementations§
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> UnwindSafe for SkipReason<'l>
Blanket Implementations§
§impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for Twhere T: 'a + Send + Sync + Clone,
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more