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§
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.