#[non_exhaustive]pub struct ExternalModuleDependencyViolation {
pub dependency: ProjectedEdge,
pub is_negated: bool,
}Expand description
One external crate dependency that disagrees with a file rule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dependency: ProjectedEdgeThe projected dependency together with every raw Rust reference that produced it.
is_negated: boolWhether this dependency matched a forbidden crate rather than missing an allowed crate.
Implementations§
Source§impl ExternalModuleDependencyViolation
impl ExternalModuleDependencyViolation
Sourcepub const fn new(dependency: ProjectedEdge, is_negated: bool) -> Self
pub const fn new(dependency: ProjectedEdge, is_negated: bool) -> Self
Creates data for one external dependency that failed a rule.
Trait Implementations§
Source§impl Clone for ExternalModuleDependencyViolation
impl Clone for ExternalModuleDependencyViolation
Source§fn clone(&self) -> ExternalModuleDependencyViolation
fn clone(&self) -> ExternalModuleDependencyViolation
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 moreSource§impl From<ExternalModuleDependencyViolation> for Violation
impl From<ExternalModuleDependencyViolation> for Violation
Source§fn from(violation: ExternalModuleDependencyViolation) -> Self
fn from(violation: ExternalModuleDependencyViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExternalModuleDependencyViolation
impl PartialEq for ExternalModuleDependencyViolation
Source§fn eq(&self, other: &ExternalModuleDependencyViolation) -> bool
fn eq(&self, other: &ExternalModuleDependencyViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExternalModuleDependencyViolation
impl StructuralPartialEq for ExternalModuleDependencyViolation
Auto Trait Implementations§
impl Freeze for ExternalModuleDependencyViolation
impl RefUnwindSafe for ExternalModuleDependencyViolation
impl Send for ExternalModuleDependencyViolation
impl Sync for ExternalModuleDependencyViolation
impl Unpin for ExternalModuleDependencyViolation
impl UnwindSafe for ExternalModuleDependencyViolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.