pub struct ValueWriteAccess<'a, T>where
T: 'a + ?Sized,{ /* private fields */ }
Implementations§
source§impl<'a, T> ValueWriteAccess<'a, T>where
T: ?Sized,
impl<'a, T> ValueWriteAccess<'a, T>where
T: ?Sized,
sourcepub unsafe fn new_raw(
data: &'a mut T,
lifetime: LifetimeState,
) -> ValueWriteAccess<'a, T>
pub unsafe fn new_raw( data: &'a mut T, lifetime: LifetimeState, ) -> ValueWriteAccess<'a, T>
§Safety
source§impl<'a, T> ValueWriteAccess<'a, T>where
T: ?Sized,
impl<'a, T> ValueWriteAccess<'a, T>where
T: ?Sized,
pub fn remap<U>( self, f: impl FnOnce(&mut T) -> Option<&mut U>, ) -> Result<ValueWriteAccess<'a, U>, ValueWriteAccess<'a, T>>
Trait Implementations§
source§impl<'a, T> Deref for ValueWriteAccess<'a, T>where
T: ?Sized,
impl<'a, T> Deref for ValueWriteAccess<'a, T>where
T: ?Sized,
source§impl<'a, T> DerefMut for ValueWriteAccess<'a, T>where
T: ?Sized,
impl<'a, T> DerefMut for ValueWriteAccess<'a, T>where
T: ?Sized,
Auto Trait Implementations§
impl<'a, T> Freeze for ValueWriteAccess<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for ValueWriteAccess<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for ValueWriteAccess<'a, T>
impl<'a, T> Sync for ValueWriteAccess<'a, T>
impl<'a, T> Unpin for ValueWriteAccess<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for ValueWriteAccess<'a, 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