#[non_exhaustive]pub struct FileDependencyViolation {
pub dependency: ProjectedEdge,
pub is_negated: bool,
}Expand description
One internal file dependency that disagrees with a relational 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 target rather than missing an allowed target.
Implementations§
Source§impl FileDependencyViolation
impl FileDependencyViolation
Sourcepub const fn new(dependency: ProjectedEdge, is_negated: bool) -> Self
pub const fn new(dependency: ProjectedEdge, is_negated: bool) -> Self
Creates data for one dependency that failed a file rule.
Trait Implementations§
Source§impl Clone for FileDependencyViolation
impl Clone for FileDependencyViolation
Source§fn clone(&self) -> FileDependencyViolation
fn clone(&self) -> FileDependencyViolation
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 Debug for FileDependencyViolation
impl Debug for FileDependencyViolation
Source§impl From<FileDependencyViolation> for Violation
impl From<FileDependencyViolation> for Violation
Source§fn from(violation: FileDependencyViolation) -> Self
fn from(violation: FileDependencyViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FileDependencyViolation
impl PartialEq for FileDependencyViolation
impl Eq for FileDependencyViolation
impl StructuralPartialEq for FileDependencyViolation
Auto Trait Implementations§
impl Freeze for FileDependencyViolation
impl RefUnwindSafe for FileDependencyViolation
impl Send for FileDependencyViolation
impl Sync for FileDependencyViolation
impl Unpin for FileDependencyViolation
impl UnwindSafe for FileDependencyViolation
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.