Trait AtomicConstNew

Source
pub trait AtomicConstNew: Atomic {
    // Required method
    fn new(v: Self::Primitive) -> Self;
}
Available on crate feature const only.
Expand description

A trait representing atomic types that can be constructed in a “const” context.

Required Methods§

Source

fn new(v: Self::Primitive) -> Self

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 AtomicConstNew for AtomicBool

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicI8

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicI16

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicI32

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicI64

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicIsize

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicU8

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicU16

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicU32

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicU64

Source§

fn new(v: Self::Primitive) -> Self

Source§

impl AtomicConstNew for AtomicUsize

Source§

fn new(v: Self::Primitive) -> Self

Implementors§