pub struct ArcMut<T: ?Sized> { /* private fields */ }Expand description
A reference counted smart pointer with unrestricted mutability.
Implementations§
Source§impl<T: ?Sized> ArcMut<T>
impl<T: ?Sized> 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>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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more