pub struct DependOnFileCondition { /* private fields */ }Expand description
Executable rule over dependencies between project files.
Implementations§
Source§impl DependOnFileCondition
impl DependOnFileCondition
Sourcepub const fn builder(&self) -> &DependOnFileConditionBuilder
pub const fn builder(&self) -> &DependOnFileConditionBuilder
Returns the object-stage builder that owns the subject scope and mood.
Sourcepub const fn project_locator(&self) -> &ProjectLocator
pub const fn project_locator(&self) -> &ProjectLocator
Returns where Cargo project discovery begins.
Sourcepub fn subject_filters(&self) -> &[Filter]
pub fn subject_filters(&self) -> &[Filter]
Returns the subject-file filters in chain order.
Sourcepub fn object_filters(&self) -> &[Filter]
pub fn object_filters(&self) -> &[Filter]
Returns the dependency-target filters in chain order.
Sourcepub const fn is_negated(&self) -> bool
pub const fn is_negated(&self) -> bool
Returns whether matching object dependencies are forbidden rather than allowed.
Sourcepub fn selector_error(&self) -> Option<&PatternError>
pub fn selector_error(&self) -> Option<&PatternError>
Returns the first invalid subject or object selector in sentence order.
Sourcepub fn with_name(self, pattern: impl Into<PatternSpec>) -> Self
pub fn with_name(self, pattern: impl Into<PatternSpec>) -> Self
Further restricts dependency targets by filename using AND semantics.
Sourcepub fn in_folder(self, pattern: impl Into<PatternSpec>) -> Self
pub fn in_folder(self, pattern: impl Into<PatternSpec>) -> Self
Further restricts dependency targets by containing folder using AND semantics.
Sourcepub fn in_path(self, pattern: impl Into<PatternSpec>) -> Self
pub fn in_path(self, pattern: impl Into<PatternSpec>) -> Self
Further restricts dependency targets by complete path using AND semantics.
Trait Implementations§
Source§impl Checkable for DependOnFileCondition
impl Checkable for DependOnFileCondition
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 DependOnFileCondition
impl Clone for DependOnFileCondition
Source§fn clone(&self) -> DependOnFileCondition
fn clone(&self) -> DependOnFileCondition
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 DependOnFileCondition
impl RefUnwindSafe for DependOnFileCondition
impl Send for DependOnFileCondition
impl Sync for DependOnFileCondition
impl Unpin for DependOnFileCondition
impl UnwindSafe for DependOnFileCondition
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