pub struct AtomicUnit;Expand description
Atomic storage for (). Used as Payload::UnderlyingAtomic for the unit type.
Trait Implementations§
Source§impl AtomicPrimitive for AtomicUnit
impl AtomicPrimitive for AtomicUnit
Source§type InnerPrimitive = ()
type InnerPrimitive = ()
The primitive type that this atomic type is wrapping.
Source§fn load(&self) -> Self::InnerPrimitive
fn load(&self) -> Self::InnerPrimitive
Loads the value from the atomic wrapper.
Source§fn store(&self, _: Self::InnerPrimitive)
fn store(&self, _: Self::InnerPrimitive)
Stores the value into the atomic wrapper.
Source§fn new_default() -> Self
fn new_default() -> Self
Creates a new atomic wrapper with the default value of the primitive
type.
Source§impl Clone for AtomicUnit
impl Clone for AtomicUnit
Source§fn clone(&self) -> AtomicUnit
fn clone(&self) -> AtomicUnit
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 Debug for AtomicUnit
impl Debug for AtomicUnit
Source§impl Default for AtomicUnit
impl Default for AtomicUnit
Source§fn default() -> AtomicUnit
fn default() -> AtomicUnit
Returns the “default value” for a type. Read more
Source§impl Hash for AtomicUnit
impl Hash for AtomicUnit
Source§impl PartialEq for AtomicUnit
impl PartialEq for AtomicUnit
impl Copy for AtomicUnit
impl Eq for AtomicUnit
impl StructuralPartialEq for AtomicUnit
Auto Trait Implementations§
impl Freeze for AtomicUnit
impl RefUnwindSafe for AtomicUnit
impl Send for AtomicUnit
impl Sync for AtomicUnit
impl Unpin for AtomicUnit
impl UnsafeUnpin for AtomicUnit
impl UnwindSafe for AtomicUnit
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