pub struct MutexRefMut<'m, T: 'm, R, M: for<'g> Fn(&'g mut T) -> &'g mut R> { /* private fields */ }Implementations§
Source§impl<'m, T: 'm, R, M: for<'g> Fn(&'g mut T) -> &'g mut R> MutexRefMut<'m, T, R, M>
impl<'m, T: 'm, R, M: for<'g> Fn(&'g mut T) -> &'g mut R> MutexRefMut<'m, T, R, M>
pub fn map(guard: MutexGuard<'m, T>, mapper: M) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'m, T, R, M> Freeze for MutexRefMut<'m, T, R, M>where
M: Freeze,
impl<'m, T, R, M> RefUnwindSafe for MutexRefMut<'m, T, R, M>where
M: RefUnwindSafe,
impl<'m, T, R, M> !Send for MutexRefMut<'m, T, R, M>
impl<'m, T, R, M> Sync for MutexRefMut<'m, T, R, M>
impl<'m, T, R, M> Unpin for MutexRefMut<'m, T, R, M>where
M: Unpin,
impl<'m, T, R, M> UnwindSafe for MutexRefMut<'m, T, R, M>where
M: UnwindSafe,
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