Skip to main content

PathOverride

Struct PathOverride 

Source
pub struct PathOverride {
Show 23 fields pub enabled: Option<bool>, pub max_depth: Option<usize>, pub forbid_attributes: Option<PatternOverride>, pub forbid_types: Option<PatternOverride>, pub forbid_calls: Option<PatternOverride>, pub forbid_macros: Option<PatternOverride>, pub check_naming: Option<NamingOverride>, pub check_nested_if: Option<bool>, pub check_if_in_match: Option<bool>, pub check_nested_match: Option<bool>, pub check_match_in_if: Option<bool>, pub check_else_chain: Option<bool>, pub forbid_else: Option<bool>, pub forbid_unsafe: Option<bool>, pub check_dyn_return: Option<bool>, pub check_dyn_param: Option<bool>, pub check_vec_box_dyn: Option<bool>, pub check_dyn_field: Option<bool>, pub check_clone_in_loop: Option<bool>, pub check_default_hasher: Option<bool>, pub check_mixed_concerns: Option<bool>, pub check_inline_tests: Option<bool>, pub check_let_underscore_result: Option<bool>,
}
Expand description

Per-path overrides (e.g., for tests/**). None inherits from base config.

Fields§

§enabled: Option<bool>

Some(false) disables all checks for matched paths.

§max_depth: Option<usize>

Replace nesting depth limit.

§forbid_attributes: Option<PatternOverride>

Replace forbidden attribute patterns.

§forbid_types: Option<PatternOverride>

Replace forbidden type patterns.

§forbid_calls: Option<PatternOverride>

Replace forbidden call patterns.

§forbid_macros: Option<PatternOverride>

Replace forbidden macro patterns.

§check_naming: Option<NamingOverride>

Replace generic naming thresholds.

§check_nested_if: Option<bool>

Replace nested-if check state.

§check_if_in_match: Option<bool>

Replace if-in-match check state.

§check_nested_match: Option<bool>

Replace nested-match check state.

§check_match_in_if: Option<bool>

Replace match-in-if check state.

§check_else_chain: Option<bool>

Replace else-chain check state.

§forbid_else: Option<bool>

Replace else keyword ban state.

§forbid_unsafe: Option<bool>

Replace unsafe block ban state.

§check_dyn_return: Option<bool>

Replace dyn-return check state.

§check_dyn_param: Option<bool>

Replace dyn-param check state.

§check_vec_box_dyn: Option<bool>

Replace Vec<Box<dyn T>> check state.

§check_dyn_field: Option<bool>

Replace dyn-field check state.

§check_clone_in_loop: Option<bool>

Replace clone-in-loop check state.

§check_default_hasher: Option<bool>

Replace default-hasher check state.

§check_mixed_concerns: Option<bool>

Replace mixed-concerns check state.

§check_inline_tests: Option<bool>

Replace inline-tests check state.

§check_let_underscore_result: Option<bool>

Replace let-underscore-result check state.

Trait Implementations§

Source§

impl Debug for PathOverride

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PathOverride

Source§

fn default() -> PathOverride

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PathOverride

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, R> CollectAndApply<T, R> for T

Source§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

Source§

type Output = R

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoBox<dyn Any> for T
where T: Any,

Source§

fn into_box(self) -> Box<dyn Any>

Convert self into the appropriate boxed form.
Source§

impl<T> IntoBox<dyn Any + Send> for T
where T: Any + Send,

Source§

fn into_box(self) -> Box<dyn Any + Send>

Convert self into the appropriate boxed form.
Source§

impl<T> IntoBox<dyn Any + Sync + Send> for T
where T: Any + Send + Sync,

Source§

fn into_box(self) -> Box<dyn Any + Sync + Send>

Convert self into the appropriate boxed form.
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

Source§

fn upcast(self, interner: I) -> U

Source§

impl<I, T> UpcastFrom<I, T> for T

Source§

fn upcast_from(from: T, _tcx: I) -> T

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<'a, T> Captures<'a> for T
where T: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,