pub struct FnSpec<F>(pub F);Expand description
Convenience: lift any Fn(&T) -> bool into a Specification.
Tuple Fields§
§0: FTrait Implementations§
Auto Trait Implementations§
impl<F> Freeze for FnSpec<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnSpec<F>where
F: RefUnwindSafe,
impl<F> Send for FnSpec<F>where
F: Send,
impl<F> Sync for FnSpec<F>where
F: Sync,
impl<F> Unpin for FnSpec<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnSpec<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnSpec<F>where
F: 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