pub struct ClosureGuard { /* private fields */ }Expand description
Closure-based adapter for GuardCondition.
Wraps an Fn(&Value) -> bool closure so it can be used as a guard.
Implementations§
Trait Implementations§
Source§impl Debug for ClosureGuard
impl Debug for ClosureGuard
Auto Trait Implementations§
impl Freeze for ClosureGuard
impl !RefUnwindSafe for ClosureGuard
impl Send for ClosureGuard
impl Sync for ClosureGuard
impl Unpin for ClosureGuard
impl UnsafeUnpin for ClosureGuard
impl !UnwindSafe for ClosureGuard
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