pub struct CycleFreeFileCondition { /* private fields */ }Expand description
Executable positive rule requiring the selected file graph to be acyclic.
Implementations§
Source§impl CycleFreeFileCondition
impl CycleFreeFileCondition
Sourcepub fn excluding_dependency_kinds(
self,
kinds: impl IntoIterator<Item = ImportKind>,
) -> Self
pub fn excluding_dependency_kinds( self, kinds: impl IntoIterator<Item = ImportKind>, ) -> Self
Excludes Rust dependency syntax kinds from this cycle rule.
When one source-target pair has both excluded and retained kinds, the dependency remains in
the cycle graph with only its retained evidence. This is useful for separating structural
mod and pub use ownership from executable use and path dependencies.
Sourcepub const fn project_locator(&self) -> &ProjectLocator
pub const fn project_locator(&self) -> &ProjectLocator
Returns where Cargo project discovery begins.
Sourcepub const fn selector_error(&self) -> Option<&PatternError>
pub const fn selector_error(&self) -> Option<&PatternError>
Returns the first invalid selector retained by the fluent scope.
Sourcepub fn excluded_dependency_kinds(&self) -> &[ImportKind]
pub fn excluded_dependency_kinds(&self) -> &[ImportKind]
Returns excluded syntax kinds in stable declaration order.
Trait Implementations§
Source§impl Checkable for CycleFreeFileCondition
impl Checkable for CycleFreeFileCondition
Source§fn check_with(&self, options: &CheckOptions) -> CheckResult
fn check_with(&self, options: &CheckOptions) -> CheckResult
Runs the rule with an explicit immutable options bag.
Source§fn check(&self) -> CheckResult
fn check(&self) -> CheckResult
Runs the rule with the strict, quiet defaults from
CheckOptions.Source§impl Clone for CycleFreeFileCondition
impl Clone for CycleFreeFileCondition
Source§fn clone(&self) -> CycleFreeFileCondition
fn clone(&self) -> CycleFreeFileCondition
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 moreAuto Trait Implementations§
impl Freeze for CycleFreeFileCondition
impl RefUnwindSafe for CycleFreeFileCondition
impl Send for CycleFreeFileCondition
impl Sync for CycleFreeFileCondition
impl Unpin for CycleFreeFileCondition
impl UnwindSafe for CycleFreeFileCondition
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