pub struct ArcMut<T: ?Sized> { /* private fields */ }
Implementations§
Source§impl<T> ArcMut<T>
impl<T> ArcMut<T>
pub fn new(value: T) -> Self
pub fn mut_from_ref(&self) -> &mut T
pub fn downgrade(this: &Self) -> WeakArcMut<T>
pub fn get_inner(&self) -> &Arc<SyncUnsafeCell<T>>
pub fn try_unwrap(self) -> Result<T, Self>
pub fn strong_count(&self) -> usize
pub fn weak_count(&self) -> usize
Trait Implementations§
impl<T: Eq + ?Sized> Eq for ArcMut<T>
Auto Trait Implementations§
impl<T> Freeze for ArcMut<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for ArcMut<T>
impl<T> Send for ArcMut<T>
impl<T> Sync for ArcMut<T>
impl<T> Unpin for ArcMut<T>where
T: ?Sized,
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