pub struct UniqueArc<T: ?Sized + 'static>(/* private fields */);
Expand description
An Arc that is known to be uniquely owned
This lets us build arcs that we can mutate before freezing, without needing to change the allocation
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UniqueArc<T>where
T: ?Sized,
impl<T> RefUnwindSafe for UniqueArc<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for UniqueArc<T>
impl<T> Sync for UniqueArc<T>
impl<T> Unpin for UniqueArc<T>where
T: ?Sized,
impl<T> !UnwindSafe for UniqueArc<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