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