pub struct RwCellGuard<'a, M: Mutability, T: 'a + ?Sized> { /* private fields */ }Expand description
A resource guard that dynamically controls the lifetime of a mutable read-write cell borrow.
Implementations§
Source§impl<'a, M: Mutability, T: 'a + ?Sized> RwCellGuard<'a, M, T>
impl<'a, M: Mutability, T: 'a + ?Sized> RwCellGuard<'a, M, T>
Sourcepub unsafe fn detach(self) -> RwCellGuard<'static, M, T>
pub unsafe fn detach(self) -> RwCellGuard<'static, M, T>
Removes the lifetime from a guard, allowing it to be freely used in other parts of the program.
§Safety
For this function to be sound, the underlying cell must not be moved or destroyed while this guard exists.
Source§impl<'a, T: 'a + ?Sized> RwCellGuard<'a, Const, T>
impl<'a, T: 'a + ?Sized> RwCellGuard<'a, Const, T>
Trait Implementations§
Source§impl<'a, M: Debug + Mutability, T: Debug + 'a + ?Sized> Debug for RwCellGuard<'a, M, T>
impl<'a, M: Debug + Mutability, T: Debug + 'a + ?Sized> Debug for RwCellGuard<'a, M, T>
Source§impl<'a, M: Mutability, T: 'a + ?Sized> Deref for RwCellGuard<'a, M, T>
impl<'a, M: Mutability, T: 'a + ?Sized> Deref for RwCellGuard<'a, M, T>
Source§impl<'a, M: Mutability, T: 'a + ?Sized> Drop for RwCellGuard<'a, M, T>
impl<'a, M: Mutability, T: 'a + ?Sized> Drop for RwCellGuard<'a, M, T>
Auto Trait Implementations§
impl<'a, M, T> Freeze for RwCellGuard<'a, M, T>
impl<'a, M, T> RefUnwindSafe for RwCellGuard<'a, M, T>
impl<'a, M, T> Send for RwCellGuard<'a, M, T>
impl<'a, M, T> Sync for RwCellGuard<'a, M, T>
impl<'a, M, T> Unpin for RwCellGuard<'a, M, T>
impl<'a, M, T> UnwindSafe for RwCellGuard<'a, M, 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