pub struct UA<T> { /* private fields */ }Expand description
轻量级共享可变容器。
内部使用 Cell<*mut T> + Arc 原始指针 API 管理生命周期,
无 RefCell 运行时开销,无原子操作开销,无嵌套。
Implementations§
Trait Implementations§
impl<T> Send for UA<T>
impl<T> Sync for UA<T>
Auto Trait Implementations§
impl<T> !Freeze for UA<T>
impl<T> !RefUnwindSafe for UA<T>
impl<T> Unpin for UA<T>
impl<T> UnsafeUnpin for UA<T>
impl<T> UnwindSafe for UA<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