pub type AtomicU64 = Atomic<u64>;

Aliased Type§

struct AtomicU64(Cell<u64>);

Fields§

§0: Cell<u64>

Implementations§

source§

impl<T: Copy> Atomic<T>

source

pub fn new(v: T) -> Self

source

pub fn into_inner(self) -> T

source

pub fn load(&self, _: Ordering) -> T

source

pub fn store(&self, val: T, _: Ordering)

source

pub fn swap(&self, val: T, _: Ordering) -> T

source§

impl<T: Copy + PartialEq> Atomic<T>

source

pub fn compare_exchange( &self, current: T, new: T, _: Ordering, _: Ordering ) -> Result<T, T>

source§

impl<T: Add<Output = T> + Copy> Atomic<T>

source

pub fn fetch_add(&self, val: T, _: Ordering) -> T

Trait Implementations§

source§

impl<T: Debug + Copy> Debug for Atomic<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default + Copy> Default for Atomic<T>

source§

fn default() -> Atomic<T>

Returns the “default value” for a type. Read more

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes