pub struct MatchPatternFileConditionBuilder { /* private fields */ }Expand description
Shared immutable state for positive and negated file-predicate builders.
The mood is one boolean consumed later by a shared assertion path. Public positive and negated wrappers make the fluent stages distinct without duplicating rule evaluation.
Implementations§
Source§impl MatchPatternFileConditionBuilder
impl MatchPatternFileConditionBuilder
Sourcepub const fn scope(&self) -> &FileConditionBuilder
pub const fn scope(&self) -> &FileConditionBuilder
Returns the selected file scope carried into this mood.
Sourcepub const fn is_negated(&self) -> bool
pub const fn is_negated(&self) -> bool
Returns whether the following predicate is negated.
Sourcepub const fn project_locator(&self) -> &ProjectLocator
pub const fn project_locator(&self) -> &ProjectLocator
Returns where Cargo project discovery will begin.
Sourcepub const fn selector_error(&self) -> Option<&PatternError>
pub const fn selector_error(&self) -> Option<&PatternError>
Returns the first invalid selector retained by the scope.
Sourcepub fn have_name(
self,
pattern: impl Into<PatternSpec>,
) -> MatchPatternFileCondition
pub fn have_name( self, pattern: impl Into<PatternSpec>, ) -> MatchPatternFileCondition
Requires every selected file’s final path segment to match pattern.
Sourcepub fn be_in_folder(
self,
pattern: impl Into<PatternSpec>,
) -> MatchPatternFileCondition
pub fn be_in_folder( self, pattern: impl Into<PatternSpec>, ) -> MatchPatternFileCondition
Requires every selected file’s containing folder to match pattern.
Sourcepub fn be_in_path(
self,
pattern: impl Into<PatternSpec>,
) -> MatchPatternFileCondition
pub fn be_in_path( self, pattern: impl Into<PatternSpec>, ) -> MatchPatternFileCondition
Requires every selected file’s complete normalized path to match pattern.
Sourcepub fn depend_on_files(self) -> DependOnFileConditionBuilder
pub fn depend_on_files(self) -> DependOnFileConditionBuilder
Starts an internal file-dependency rule and enters its object-selector stage.
Sourcepub fn depend_on_external_modules(
self,
) -> DependOnExternalModuleConditionBuilder
pub fn depend_on_external_modules( self, ) -> DependOnExternalModuleConditionBuilder
Starts an external crate-dependency rule and enters its module-selector stage.
Trait Implementations§
Source§impl Clone for MatchPatternFileConditionBuilder
impl Clone for MatchPatternFileConditionBuilder
Source§fn clone(&self) -> MatchPatternFileConditionBuilder
fn clone(&self) -> MatchPatternFileConditionBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more