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>
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.