pub struct HandlerMut<'a, U: ?Sized> { /* private fields */ }Expand description
A mutable reference to a handler.
Implementations§
Source§impl<'a, T: ?Sized> HandlerMut<'a, T>
impl<'a, T: ?Sized> HandlerMut<'a, T>
Sourcepub fn map<U: ?Sized, F>(orig: Self, f: F) -> HandlerMut<'a, U>
pub fn map<U: ?Sized, F>(orig: Self, f: F) -> HandlerMut<'a, U>
Makes a new HandlerMut for a component of the borrowed data.
This is an associated function that needs to be used as HandlerMut::map(...).
A method would interfere with methods of the same name on the contents
of a handler used through Deref.
Trait Implementations§
Source§impl<T> Debug for HandlerMut<'_, T>
impl<T> Debug for HandlerMut<'_, T>
Source§impl<T: ?Sized> Deref for HandlerMut<'_, T>
impl<T: ?Sized> Deref for HandlerMut<'_, T>
Source§impl<T: ?Sized> DerefMut for HandlerMut<'_, T>
impl<T: ?Sized> DerefMut for HandlerMut<'_, T>
Auto Trait Implementations§
impl<'a, U> Freeze for HandlerMut<'a, U>where
U: ?Sized,
impl<'a, U> !RefUnwindSafe for HandlerMut<'a, U>
impl<'a, U> !Send for HandlerMut<'a, U>
impl<'a, U> !Sync for HandlerMut<'a, U>
impl<'a, U> Unpin for HandlerMut<'a, U>where
U: ?Sized,
impl<'a, U> !UnwindSafe for HandlerMut<'a, U>
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