pub struct SegRefMut<'a, T: ?Sized> { /* private fields */ }Expand description
Exclusive typed segment guard.
Mirror of SegRef for the mutable path. Derefs mutably to T.
Implementations§
Source§impl<'a, T: ?Sized> SegRefMut<'a, T>
impl<'a, T: ?Sized> SegRefMut<'a, T>
Sourcepub fn into_parts(self) -> (RefMut<'a, T>, SegmentLease<'a>)
pub fn into_parts(self) -> (RefMut<'a, T>, SegmentLease<'a>)
Consume the guard and return its parts.
pub fn as_ptr(&self) -> *const T
pub fn as_mut_ptr(&mut self) -> *mut T
Trait Implementations§
impl<T: ?Sized> HopperRefOnly for SegRefMut<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for SegRefMut<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for SegRefMut<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> !Send for SegRefMut<'a, T>
impl<'a, T> !Sync for SegRefMut<'a, T>
impl<'a, T> Unpin for SegRefMut<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for SegRefMut<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for SegRefMut<'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