pub struct ModifyFn<T>(pub Box<dyn FnOnce(&mut T) + Send + Sync>);Expand description
Wrapper for modification functions with stubbed out debug impl
Tuple Fields§
§0: Box<dyn FnOnce(&mut T) + Send + Sync>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ModifyFn<T>
impl<T> !RefUnwindSafe for ModifyFn<T>
impl<T> Send for ModifyFn<T>
impl<T> Sync for ModifyFn<T>
impl<T> Unpin for ModifyFn<T>
impl<T> !UnwindSafe for ModifyFn<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