pub struct CircularDependenciesConfig {
pub ignore_lazy_imports: bool,
}Expand description
Options for the circular-dependencies rule.
The default leaves the rule unchanged: every runtime import edge takes part in cycle detection, and only type-only edges are skipped.
Fields§
§ignore_lazy_imports: boolSkip import edges that load their target on demand or on another
thread when fallow looks for cycles. A literal import() inside a
function, a template import(), a lazy import.meta.glob, a worker
URL and a webpack worker loader request (worker-loader!./work.js)
are lazy edges. A top-level await import(), require() and an
eager import.meta.glob load before the module finishes, so they stay.
An edge that also carries a static import stays. Default false.
Implementations§
Source§impl CircularDependenciesConfig
impl CircularDependenciesConfig
Sourcepub const fn is_default(&self) -> bool
pub const fn is_default(&self) -> bool
True when no option is set, so serialization can omit the section.
Trait Implementations§
Source§impl Clone for CircularDependenciesConfig
impl Clone for CircularDependenciesConfig
impl Copy for CircularDependenciesConfig
Source§impl Debug for CircularDependenciesConfig
impl Debug for CircularDependenciesConfig
Source§impl Default for CircularDependenciesConfig
impl Default for CircularDependenciesConfig
Source§impl<'de> Deserialize<'de> for CircularDependenciesConfigwhere
CircularDependenciesConfig: Default,
impl<'de> Deserialize<'de> for CircularDependenciesConfigwhere
CircularDependenciesConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CircularDependenciesConfig
Source§impl JsonSchema for CircularDependenciesConfig
impl JsonSchema for CircularDependenciesConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CircularDependenciesConfig
Auto Trait Implementations§
impl Freeze for CircularDependenciesConfig
impl RefUnwindSafe for CircularDependenciesConfig
impl Send for CircularDependenciesConfig
impl Sync for CircularDependenciesConfig
impl Unpin for CircularDependenciesConfig
impl UnsafeUnpin for CircularDependenciesConfig
impl UnwindSafe for CircularDependenciesConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.