pub trait Word: PrimitiveUnsigned {
const ZERO: Self;
const ONE: Self;
}Expand description
A trait for primitive types that can be used in backends.
This trait is equivalent to PrimitiveUnsigned, but it has a shorter
name and provides constants ZERO and ONE, which avoid a dependency
on the num-traits crate.
Required Associated Constants§
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.