pub struct AtomicCell<T: AtomicCellStorable> { /* private fields */ }
Expand description
An atomic-based cell designed for holding Arc-style pointers.
Implementations§
Source§impl<T: AtomicCellStorable> AtomicCell<T>
impl<T: AtomicCellStorable> AtomicCell<T>
Source§impl<T: AtomicCellStorable + Clone> AtomicCell<T>
impl<T: AtomicCellStorable + Clone> AtomicCell<T>
Source§impl<T: AtomicCellStorable + Default> AtomicCell<T>
impl<T: AtomicCellStorable + Default> AtomicCell<T>
Source§impl<T> AtomicCell<Weak<T>>
impl<T> AtomicCell<Weak<T>>
Trait Implementations§
Source§impl<T: AtomicCellStorable + Clone> Clone for AtomicCell<T>
impl<T: AtomicCellStorable + Clone> Clone for AtomicCell<T>
Source§fn clone(&self) -> AtomicCell<T>
fn clone(&self) -> AtomicCell<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: AtomicCellStorable + Clone + Debug> Debug for AtomicCell<T>
impl<T: AtomicCellStorable + Clone + Debug> Debug for AtomicCell<T>
Source§impl<T: AtomicCellStorable + Default> Default for AtomicCell<T>
impl<T: AtomicCellStorable + Default> Default for AtomicCell<T>
Source§impl<T: AtomicCellStorable> Drop for AtomicCell<T>
impl<T: AtomicCellStorable> Drop for AtomicCell<T>
Auto Trait Implementations§
impl<T> !Freeze for AtomicCell<T>
impl<T> RefUnwindSafe for AtomicCell<T>where
T: RefUnwindSafe,
impl<T> Send for AtomicCell<T>where
T: Send,
impl<T> Sync for AtomicCell<T>where
T: Sync,
impl<T> Unpin for AtomicCell<T>where
T: Unpin,
impl<T> UnwindSafe for AtomicCell<T>where
T: UnwindSafe,
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