pub struct MatchPatternFileCondition { /* private fields */ }Expand description
Executable filename, folder, or path predicate for selected files.
Implementations§
Source§impl MatchPatternFileCondition
impl MatchPatternFileCondition
Sourcepub const fn condition(&self) -> &MatchPatternFileConditionBuilder
pub const fn condition(&self) -> &MatchPatternFileConditionBuilder
Returns the selected scope and mood carried into this terminal.
Sourcepub fn check_filter(&self) -> Option<&Filter>
pub fn check_filter(&self) -> Option<&Filter>
Returns the compiled predicate filter, if its pattern was valid.
Sourcepub const fn project_locator(&self) -> &ProjectLocator
pub const fn project_locator(&self) -> &ProjectLocator
Returns where Cargo project discovery begins.
Sourcepub const fn is_negated(&self) -> bool
pub const fn is_negated(&self) -> bool
Returns whether matching the predicate is forbidden rather than required.
Sourcepub fn selector_error(&self) -> Option<&PatternError>
pub fn selector_error(&self) -> Option<&PatternError>
Returns the first invalid pattern in sentence order.
Trait Implementations§
Source§impl Checkable for MatchPatternFileCondition
impl Checkable for MatchPatternFileCondition
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 MatchPatternFileCondition
impl Clone for MatchPatternFileCondition
Source§fn clone(&self) -> MatchPatternFileCondition
fn clone(&self) -> MatchPatternFileCondition
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 MatchPatternFileCondition
impl RefUnwindSafe for MatchPatternFileCondition
impl Send for MatchPatternFileCondition
impl Sync for MatchPatternFileCondition
impl Unpin for MatchPatternFileCondition
impl UnwindSafe for MatchPatternFileCondition
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