Atomic

Trait Atomic 

Source
pub trait Atomic: AtomicSealed {
    type Value: Copy + FromBytes + IntoBytes;
}

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Atomic for AtomicI8

Available on target_has_atomic=8 only.
Source§

type Value = i8

Source§

impl Atomic for AtomicI16

Available on target_has_atomic=16 only.
Source§

type Value = i16

Source§

impl Atomic for AtomicI32

Available on target_has_atomic=32 only.
Source§

type Value = i32

Source§

impl Atomic for AtomicIsize

Available on target_has_atomic=32 only.
Source§

type Value = isize

Source§

impl Atomic for AtomicU8

Available on target_has_atomic=8 only.
Source§

type Value = u8

Source§

impl Atomic for AtomicU16

Available on target_has_atomic=16 only.
Source§

type Value = u16

Source§

impl Atomic for AtomicU32

Available on target_has_atomic=32 only.
Source§

type Value = u32

Source§

impl Atomic for AtomicUsize

Available on target_has_atomic=32 only.
Source§

type Value = usize

Source§

impl Atomic for i8

Available on target_has_atomic=8 and target_has_atomic_equal_alignment=8 only.
Source§

type Value = i8

Source§

impl Atomic for i16

Available on target_has_atomic=16 and target_has_atomic_equal_alignment=16 only.
Source§

type Value = i16

Source§

impl Atomic for i32

Available on target_has_atomic=32 and target_has_atomic_equal_alignment=32 only.
Source§

type Value = i32

Source§

impl Atomic for isize

Available on target_has_atomic=32 and target_has_atomic_equal_alignment=32 only.
Source§

type Value = isize

Source§

impl Atomic for u8

Available on target_has_atomic=8 and target_has_atomic_equal_alignment=8 only.
Source§

type Value = u8

Source§

impl Atomic for u16

Available on target_has_atomic=16 and target_has_atomic_equal_alignment=16 only.
Source§

type Value = u16

Source§

impl Atomic for u32

Available on target_has_atomic=32 and target_has_atomic_equal_alignment=32 only.
Source§

type Value = u32

Source§

impl Atomic for usize

Available on target_has_atomic=32 and target_has_atomic_equal_alignment=32 only.
Source§

type Value = usize

Source§

impl<A: Atomic> Atomic for Aligned<A, A::Value>

Source§

type Value = <A as Atomic>::Value

Implementors§