RangeUtil

Trait RangeUtil 

Source
pub trait RangeUtil<T> {
    // Required methods
    fn length(&self) -> T;
    fn contains(&self, val: T) -> bool;
}
Expand description

The trait for utilities about range information.

Required Methods§

Source

fn length(&self) -> T

The length from the minimum to maximum.

Source

fn contains(&self, val: T) -> bool

Whether the val is between the minimum and maximum.

Implementors§