pub struct ForbiddenSliceDependencyCondition { /* private fields */ }Expand description
Executable slices should not contain dependency rule.
Implementations§
Source§impl ForbiddenSliceDependencyCondition
impl ForbiddenSliceDependencyCondition
Sourcepub fn source_slice(&self) -> &str
pub fn source_slice(&self) -> &str
Returns the directed source slice named by the rule.
Sourcepub fn target_slice(&self) -> &str
pub fn target_slice(&self) -> &str
Returns the directed target slice named by the rule.
Sourcepub const fn project_locator(&self) -> &ProjectLocator
pub const fn project_locator(&self) -> &ProjectLocator
Returns where Cargo project discovery begins.
Sourcepub const fn projection(&self) -> &SliceProjection
pub const fn projection(&self) -> &SliceProjection
Returns the immutable file-to-slice projection.
Sourcepub const fn is_negated(&self) -> bool
pub const fn is_negated(&self) -> bool
Returns whether the fluent mood is negated.
Trait Implementations§
Source§impl Checkable for ForbiddenSliceDependencyCondition
impl Checkable for ForbiddenSliceDependencyCondition
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 ForbiddenSliceDependencyCondition
impl Clone for ForbiddenSliceDependencyCondition
Source§fn clone(&self) -> ForbiddenSliceDependencyCondition
fn clone(&self) -> ForbiddenSliceDependencyCondition
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 ForbiddenSliceDependencyCondition
impl RefUnwindSafe for ForbiddenSliceDependencyCondition
impl Send for ForbiddenSliceDependencyCondition
impl Sync for ForbiddenSliceDependencyCondition
impl Unpin for ForbiddenSliceDependencyCondition
impl UnwindSafe for ForbiddenSliceDependencyCondition
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