pub trait AtomicImpl:
Sized
+ Send
+ Copy
+ Sealed {
type Delta;
}Expand description
A marker trait for types that implement atomic operations with C side primitives.
This trait is sealed, and only types that map directly to the C side atomics or can be implemented with lower-level C primitives are allowed to implement this:
i8andi16are implemented with lower-level C primitives.i32map toatomic_ti64map toatomic64_t
Required Associated Types§
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 AtomicImpl for i8
Available on CONFIG_ARCH_SUPPORTS_ATOMIC_RMW only.
impl AtomicImpl for i8
Available on
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW only.Source§impl AtomicImpl for i16
Available on CONFIG_ARCH_SUPPORTS_ATOMIC_RMW only.
impl AtomicImpl for i16
Available on
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW only.