[][src]Trait atomig::impls::PrimitiveAtom

pub trait PrimitiveAtom: Sized + Copy + Sealed {
    type Impl: AtomicImpl<Inner = Self>;
}

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.

Associated Types

type Impl: AtomicImpl<Inner = Self>

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

Loading content...

Implementations on Foreign Types

impl<T> PrimitiveAtom for *mut T[src]

type Impl = AtomicPtr<T>

impl PrimitiveAtom for bool[src]

impl PrimitiveAtom for u8[src]

type Impl = AtomicU8

impl PrimitiveAtom for i8[src]

type Impl = AtomicI8

impl PrimitiveAtom for u16[src]

impl PrimitiveAtom for i16[src]

impl PrimitiveAtom for u32[src]

impl PrimitiveAtom for i32[src]

impl PrimitiveAtom for u64[src]

impl PrimitiveAtom for i64[src]

impl PrimitiveAtom for usize[src]

impl PrimitiveAtom for isize[src]

Loading content...

Implementors

Loading content...