pub trait Bounds: PartialOrd<Self> + Display {
const MIN: Self;
const MAX: Self;
// Required method
fn validate_bounds(
&self,
lower_bound: &Self,
upper_bound: &Self
) -> Result<(), OutOfBounds>;
}pub trait Bounds: PartialOrd<Self> + Display {
const MIN: Self;
const MAX: Self;
// Required method
fn validate_bounds(
&self,
lower_bound: &Self,
upper_bound: &Self
) -> Result<(), OutOfBounds>;
}