pub trait Atomic:
Send
+ Sync
+ Debug {
type Inner: Copy;
// Required methods
fn new(initial_value: Self::Inner) -> Self;
fn next(&self, step: Self::Inner) -> Self::Inner;
fn current(&self) -> Self::Inner;
}
Expand description
Only for type-safe purposes. You don’t need to use this trait.
Required Associated Types§
Required Methods§
fn new(initial_value: Self::Inner) -> Self
fn next(&self, step: Self::Inner) -> Self::Inner
fn current(&self) -> Self::Inner
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.