pub trait ConstOne: Sized {
const ONE: Self;
}Expand description
Defines an associated constant representing the multiplicative identity
element for Self.
A pure constant-carrier, decoupled from One (and hence
Mul) for the same reason as ConstZero: a type can
supply the compile-time 1 that PrimBits needs without
implementing multiplication. Numeric types still implement both.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".