pub trait RangeUtil<T> { // Required methods fn length(&self) -> T; fn contains(&self, val: T) -> bool; }
The trait for utilities about range information.
The length from the minimum to maximum.
Whether the val is between the minimum and maximum.