#[non_exhaustive]pub struct FilePatternViolation {
pub check_filter: Filter,
pub projected_node: ProjectedNode,
pub is_negated: bool,
}Expand description
One selected file that disagrees with a name or location predicate.
The compiled filter records both the original pattern and the part of the file identifier that was judged. The mood remains data so reporting can describe the rule without reconstructing it.
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.check_filter: FilterThe filename, folder, or path requirement that the file disagreed with.
projected_node: ProjectedNodeThe offending file and its dependency evidence.
is_negated: boolWhether matching the filter was forbidden rather than required.
Implementations§
Source§impl FilePatternViolation
impl FilePatternViolation
Sourcepub const fn new(
check_filter: Filter,
projected_node: ProjectedNode,
is_negated: bool,
) -> Self
pub const fn new( check_filter: Filter, projected_node: ProjectedNode, is_negated: bool, ) -> Self
Creates data for one file that failed a pattern predicate.
Trait Implementations§
Source§impl Clone for FilePatternViolation
impl Clone for FilePatternViolation
Source§fn clone(&self) -> FilePatternViolation
fn clone(&self) -> FilePatternViolation
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 FilePatternViolation
impl Debug for FilePatternViolation
Source§impl From<FilePatternViolation> for Violation
impl From<FilePatternViolation> for Violation
Source§fn from(violation: FilePatternViolation) -> Self
fn from(violation: FilePatternViolation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FilePatternViolation
impl RefUnwindSafe for FilePatternViolation
impl Send for FilePatternViolation
impl Sync for FilePatternViolation
impl Unpin for FilePatternViolation
impl UnwindSafe for FilePatternViolation
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