pub struct LightArc<T> { /* private fields */ }Expand description
A light-weight reference-counted pointer to a value.
This is similar to Arc, but is more lightweight because it contains only a strong count.
Therefore, it can’t provide weak references.
Implementations§
Trait Implementations§
impl<T: Send + Sync> Send for LightArc<T>
impl<T: Send + Sync> Sync for LightArc<T>
Auto Trait Implementations§
impl<T> Freeze for LightArc<T>
impl<T> RefUnwindSafe for LightArc<T>where
T: RefUnwindSafe,
impl<T> Unpin for LightArc<T>
impl<T> UnwindSafe for LightArc<T>where
T: RefUnwindSafe,
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