trait IntTypeBounds: Sized {
type Output: PartialOrd;
// Required methods
fn min_max(self) -> Option<(Self::Output, Self::Output)>;
fn bits(self) -> Self::Output;
// Provided method
fn ensure_fits(self, val: Self::Output) -> Option<Self::Output> { ... }
}
Required Associated Types§
type Output: PartialOrd
Required Methods§
Provided Methods§
fn ensure_fits(self, val: Self::Output) -> Option<Self::Output>
Object Safety§
This trait is not object safe.