pub struct DependOnExternalModuleCondition { /* private fields */ }Expand description
Executable rule over dependencies from project files to external crates.
Implementations§
Source§impl DependOnExternalModuleCondition
impl DependOnExternalModuleCondition
Sourcepub const fn builder(&self) -> &DependOnExternalModuleConditionBuilder
pub const fn builder(&self) -> &DependOnExternalModuleConditionBuilder
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 module_filters(&self) -> &[Filter]
pub fn module_filters(&self) -> &[Filter]
Returns the external-crate filters in chain order.
These filters combine with OR semantics.
Sourcepub const fn is_negated(&self) -> bool
pub const fn is_negated(&self) -> bool
Returns whether matching crate 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 module selector in sentence order.
Sourcepub fn matching(self, pattern: impl Into<PatternSpec>) -> Self
pub fn matching(self, pattern: impl Into<PatternSpec>) -> Self
Adds another external crate pattern using OR semantics.
Trait Implementations§
Source§impl Checkable for DependOnExternalModuleCondition
impl Checkable for DependOnExternalModuleCondition
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 DependOnExternalModuleCondition
impl Clone for DependOnExternalModuleCondition
Source§fn clone(&self) -> DependOnExternalModuleCondition
fn clone(&self) -> DependOnExternalModuleCondition
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 DependOnExternalModuleCondition
impl RefUnwindSafe for DependOnExternalModuleCondition
impl Send for DependOnExternalModuleCondition
impl Sync for DependOnExternalModuleCondition
impl Unpin for DependOnExternalModuleCondition
impl UnwindSafe for DependOnExternalModuleCondition
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