pub struct IgnoreManager { /* private fields */ }Expand description
Manages loading, saving, and querying ignore entries
Implementations§
Source§impl IgnoreManager
impl IgnoreManager
Sourcepub fn is_ignored(&self, duplicate_id: &str) -> bool
pub fn is_ignored(&self, duplicate_id: &str) -> bool
Check if a duplicate with the given ID should be ignored
Sourcepub fn add_ignore(&mut self, entry: IgnoreEntry)
pub fn add_ignore(&mut self, entry: IgnoreEntry)
Add a new ignore entry
Sourcepub fn remove_ignore(&mut self, duplicate_id: &str) -> bool
pub fn remove_ignore(&mut self, duplicate_id: &str) -> bool
Remove an ignore entry by ID
Sourcepub fn list_ignores(&self) -> &[IgnoreEntry]
pub fn list_ignores(&self) -> &[IgnoreEntry]
Get all ignore entries
Auto Trait Implementations§
impl Freeze for IgnoreManager
impl RefUnwindSafe for IgnoreManager
impl Send for IgnoreManager
impl Sync for IgnoreManager
impl Unpin for IgnoreManager
impl UnwindSafe for IgnoreManager
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more