Struct foundry_compilers::output::ErrorFilter
source · pub struct ErrorFilter<'a> {
pub error_codes: Cow<'a, [u64]>,
pub ignored_file_paths: Cow<'a, [PathBuf]>,
}
Expand description
How to filter errors/warnings
Fields§
§error_codes: Cow<'a, [u64]>
Ignore errors/warnings with these codes
ignored_file_paths: Cow<'a, [PathBuf]>
Ignore errors/warnings from these file paths
Implementations§
source§impl<'a> ErrorFilter<'a>
impl<'a> ErrorFilter<'a>
sourcepub fn new(error_codes: &'a [u64], ignored_file_paths: &'a [PathBuf]) -> Self
pub fn new(error_codes: &'a [u64], ignored_file_paths: &'a [PathBuf]) -> Self
Creates a new ErrorFilter
with the given error codes and ignored file paths
sourcepub fn is_code_ignored(&self, code: Option<u64>) -> bool
pub fn is_code_ignored(&self, code: Option<u64>) -> bool
Helper function to check if an error code is ignored
sourcepub fn is_file_ignored(&self, file_path: &Path) -> bool
pub fn is_file_ignored(&self, file_path: &Path) -> bool
Helper function to check if an error’s file path is ignored
Trait Implementations§
source§impl<'a> Clone for ErrorFilter<'a>
impl<'a> Clone for ErrorFilter<'a>
source§fn clone(&self) -> ErrorFilter<'a>
fn clone(&self) -> ErrorFilter<'a>
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<'a> Debug for ErrorFilter<'a>
impl<'a> Debug for ErrorFilter<'a>
source§impl<'a> From<&'a [u64]> for ErrorFilter<'a>
impl<'a> From<&'a [u64]> for ErrorFilter<'a>
source§impl<'a> PartialEq for ErrorFilter<'a>
impl<'a> PartialEq for ErrorFilter<'a>
source§fn eq(&self, other: &ErrorFilter<'a>) -> bool
fn eq(&self, other: &ErrorFilter<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for ErrorFilter<'a>
impl<'a> StructuralPartialEq for ErrorFilter<'a>
Auto Trait Implementations§
impl<'a> Freeze for ErrorFilter<'a>
impl<'a> RefUnwindSafe for ErrorFilter<'a>
impl<'a> Send for ErrorFilter<'a>
impl<'a> Sync for ErrorFilter<'a>
impl<'a> Unpin for ErrorFilter<'a>
impl<'a> UnwindSafe for ErrorFilter<'a>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.