pub struct ArcMut<T> { /* private fields */ }Expand description
A reference counted smart pointer with unrestricted mutability.
Implementations§
Source§impl<T> ArcMut<T>
impl<T> ArcMut<T>
Sourcepub unsafe fn as_arc_mut(&mut self) -> &mut Arc<T>
pub unsafe fn as_arc_mut(&mut self) -> &mut Arc<T>
Retrieve the inner Rc as a mutable reference.
Sourcepub unsafe fn borrow_mut(&mut self) -> &mut T
pub unsafe fn borrow_mut(&mut self) -> &mut T
Get a mutable reference to the value.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ArcMut<T>
impl<T> !RefUnwindSafe for ArcMut<T>
impl<T> !Send for ArcMut<T>
impl<T> !Sync for ArcMut<T>
impl<T> Unpin for ArcMut<T>
impl<T> !UnwindSafe for ArcMut<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