pub trait Bounds: PartialOrd {
type Size: Copy + Sized + Display;
const MIN: Self::Size;
const MAX: Self::Size;
// Required method
fn validate_bounds(
&self,
lower_bound: Self::Size,
upper_bound: Self::Size,
) -> Result<(), OutOfBounds>;
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn validate_bounds( &self, lower_bound: Self::Size, upper_bound: Self::Size, ) -> Result<(), OutOfBounds>
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.