pub struct AtomicBox<T: Sized> { /* private fields */ }Expand description
AtomicBox
Implementations
sourceimpl<T: Sized> AtomicBox<T>
impl<T: Sized> AtomicBox<T>
sourcepub fn extract_mut_ptr(&mut self) -> *mut T
pub fn extract_mut_ptr(&mut self) -> *mut T
Extract mutable pointer of the contained value
sourcepub fn replace_with<F>(&self, f: F) where
F: Fn(Arc<T>) -> T,
pub fn replace_with<F>(&self, f: F) where
F: Fn(Arc<T>) -> T,
Atomically replace the inner value with the result of applying the given closure to the current value
Trait Implementations
impl<T: Sized + Send> Send for AtomicBox<T>
impl<T: Sized + Sync> Sync for AtomicBox<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for AtomicBox<T>
impl<T> Unpin for AtomicBox<T>
impl<T> UnwindSafe for AtomicBox<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more