pub trait Width: Ord + Clone {
type Output: Unsigned + Integer + Clone;
// Required methods
fn max_value() -> Self;
fn min_value() -> Self;
fn width(lower: &Self, upper: &Self) -> Self::Output;
}
Expand description
Limit 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§
Object Safety§
This trait is not object safe.