pub trait PrimitiveAtom: Sized + Copy + Sealed {
    type Impl;
}
Expand description

Primitive types that can directly be used in an atomic way.

This trait is implemented exactly for every type that has a corresponding atomic type in std::sync::atomic. You cannot implement this trait for your own types; see Atom instead. This trait’s items are not part of the public API – see the module docs.

Required Associated Types§

source

type Impl

The standard library type that is the atomic version of Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PrimitiveAtom for bool

source§

impl PrimitiveAtom for i8

source§

impl PrimitiveAtom for i16

source§

impl PrimitiveAtom for i32

source§

impl PrimitiveAtom for i64

source§

impl PrimitiveAtom for isize

source§

impl PrimitiveAtom for u8

source§

impl PrimitiveAtom for u16

source§

impl PrimitiveAtom for u32

source§

impl PrimitiveAtom for u64

source§

impl PrimitiveAtom for usize

source§

impl<T> PrimitiveAtom for *mut T

§

type Impl = AtomicPtr<T>

Implementors§