pub struct CustomFileCondition { /* private fields */ }Expand description
Executable rule that judges selected source files with a user-defined predicate.
Implementations§
Source§impl CustomFileCondition
impl CustomFileCondition
Sourcepub const fn condition(&self) -> &MatchPatternFileConditionBuilder
pub const fn condition(&self) -> &MatchPatternFileConditionBuilder
Returns the selected scope and mood carried into this terminal.
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 satisfying the predicate is forbidden rather than required.
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 predicate(&self) -> &FilePredicate
pub fn predicate(&self) -> &FilePredicate
Returns the stored predicate.
Trait Implementations§
Source§impl Checkable for CustomFileCondition
impl Checkable for CustomFileCondition
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 CustomFileCondition
impl Clone for CustomFileCondition
Source§fn clone(&self) -> CustomFileCondition
fn clone(&self) -> CustomFileCondition
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 CustomFileCondition
impl !RefUnwindSafe for CustomFileCondition
impl Send for CustomFileCondition
impl Sync for CustomFileCondition
impl Unpin for CustomFileCondition
impl !UnwindSafe for CustomFileCondition
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