pub trait Width: Ord + Clone {
type Output: Unsigned + Integer + Clone;
// Required methods
fn min_value() -> Self;
fn max_value() -> Self;
fn width(lower: &Self, upper: &Self) -> Self::Output;
}Expand description
Limits of a bound for which the distance between min_value() and max_value() can be represented in the type Output.
Required Associated Types§
Required Methods§
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.