pub trait Atomize<T>: TryFrom<T> + Into<T> { }
Expand description
The trait must be implemented for enumerations which shall be used with an AtomicEnum
.
Additionally the traits Into<u16>
and TryFrom<u16>
have to be implemented.
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.