pub struct Filter<T: ?Sized>(pub(crate) Arc<dyn Fn(&T) -> bool + Send + Sync>);Expand description
Function that returns true if the specific item matches the filter.
Tuple Fields§
§0: Arc<dyn Fn(&T) -> bool + Send + Sync>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Filter<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for Filter<T>
impl<T> Send for Filter<T>where
T: ?Sized,
impl<T> Sync for Filter<T>where
T: ?Sized,
impl<T> Unpin for Filter<T>where
T: ?Sized,
impl<T> UnsafeUnpin for Filter<T>where
T: ?Sized,
impl<T> !UnwindSafe for Filter<T>
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