pub struct DependOnExternalModuleConditionBuilder { /* private fields */ }Expand description
Immutable object stage selecting external Cargo-visible crate names.
Implementations§
Source§impl DependOnExternalModuleConditionBuilder
impl DependOnExternalModuleConditionBuilder
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 crate 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 matching(
self,
pattern: impl Into<PatternSpec>,
) -> DependOnExternalModuleCondition
pub fn matching( self, pattern: impl Into<PatternSpec>, ) -> DependOnExternalModuleCondition
Selects external crate names matching pattern.
Trait Implementations§
Source§impl Clone for DependOnExternalModuleConditionBuilder
impl Clone for DependOnExternalModuleConditionBuilder
Source§fn clone(&self) -> DependOnExternalModuleConditionBuilder
fn clone(&self) -> DependOnExternalModuleConditionBuilder
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 DependOnExternalModuleConditionBuilder
impl RefUnwindSafe for DependOnExternalModuleConditionBuilder
impl Send for DependOnExternalModuleConditionBuilder
impl Sync for DependOnExternalModuleConditionBuilder
impl Unpin for DependOnExternalModuleConditionBuilder
impl UnwindSafe for DependOnExternalModuleConditionBuilder
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