pub struct DependOnFileConditionBuilder { /* private fields */ }Expand description
Immutable object stage selecting internal dependency targets.
Implementations§
Source§impl DependOnFileConditionBuilder
impl DependOnFileConditionBuilder
Sourcepub const fn condition(&self) -> &MatchPatternFileConditionBuilder
pub const fn condition(&self) -> &MatchPatternFileConditionBuilder
Returns the subject scope and mood carried into this object stage.
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 const fn is_negated(&self) -> bool
pub const fn is_negated(&self) -> bool
Returns whether matching object dependencies are forbidden rather than allowed.
Sourcepub const fn selector_error(&self) -> Option<&PatternError>
pub const fn selector_error(&self) -> Option<&PatternError>
Returns the first invalid subject-scope selector.
Sourcepub fn with_name(self, pattern: impl Into<PatternSpec>) -> DependOnFileCondition
pub fn with_name(self, pattern: impl Into<PatternSpec>) -> DependOnFileCondition
Selects dependency targets whose final path segment matches pattern.
Sourcepub fn in_folder(self, pattern: impl Into<PatternSpec>) -> DependOnFileCondition
pub fn in_folder(self, pattern: impl Into<PatternSpec>) -> DependOnFileCondition
Selects dependency targets whose containing folder matches pattern.
Sourcepub fn in_path(self, pattern: impl Into<PatternSpec>) -> DependOnFileCondition
pub fn in_path(self, pattern: impl Into<PatternSpec>) -> DependOnFileCondition
Selects dependency targets whose complete normalized path matches pattern.
Trait Implementations§
Source§impl Clone for DependOnFileConditionBuilder
impl Clone for DependOnFileConditionBuilder
Source§fn clone(&self) -> DependOnFileConditionBuilder
fn clone(&self) -> DependOnFileConditionBuilder
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 DependOnFileConditionBuilder
impl RefUnwindSafe for DependOnFileConditionBuilder
impl Send for DependOnFileConditionBuilder
impl Sync for DependOnFileConditionBuilder
impl Unpin for DependOnFileConditionBuilder
impl UnwindSafe for DependOnFileConditionBuilder
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