pub enum Filter<T: PartialEq + Eq + Hash> {
All,
Allow(HashSet<T>),
Deny(HashSet<T>),
}
Expand description
Declarative representation of a limited filter function.
Variants§
All
Everything.
Allow(HashSet<T>)
Only the specified values.
Deny(HashSet<T>)
Everything except the specified values.
Implementations§
Trait Implementations§
impl<T: Eq + PartialEq + Eq + Hash> Eq for Filter<T>
impl<T: PartialEq + Eq + Hash> StructuralPartialEq for Filter<T>
Auto Trait Implementations§
impl<T> Freeze for Filter<T>
impl<T> RefUnwindSafe for Filter<T>where
T: RefUnwindSafe,
impl<T> Send for Filter<T>where
T: Send,
impl<T> Sync for Filter<T>where
T: Sync,
impl<T> Unpin for Filter<T>where
T: Unpin,
impl<T> UnwindSafe for Filter<T>where
T: UnwindSafe,
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