Trait radium::marker::Atomic

source ·
pub trait Atomic: Copy {
    type Atom: Radium<Item = Self> + Send + Sync;
}
Expand description

Relates a primitive type to its corresponding atomic type.

This is only implemented when the corresponding atomic type exists.

Required Associated Types§

source

type Atom: Radium<Item = Self> + Send + Sync

The AtomicT type corresponding to Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Atomic for bool

source§

impl Atomic for i8

source§

impl Atomic for i16

source§

impl Atomic for i32

source§

impl Atomic for i64

source§

impl Atomic for isize

source§

impl Atomic for u8

source§

impl Atomic for u16

source§

impl Atomic for u32

source§

impl Atomic for u64

source§

impl Atomic for usize

source§

impl<T> Atomic for *mut T

§

type Atom = AtomicPtr<T>

Implementors§