pub struct Hook<A>(/* private fields */);Expand description
An optional callback taking &A. Clones share the same underlying callback.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> !RefUnwindSafe for Hook<A>
impl<A> !UnwindSafe for Hook<A>
impl<A> Freeze for Hook<A>
impl<A> Send for Hook<A>
impl<A> Sync for Hook<A>
impl<A> Unpin for Hook<A>
impl<A> UnsafeUnpin for Hook<A>
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