upper_bound

Function upper_bound 

Source
pub fn upper_bound<T: OrdLogic>(item: T, hi: Bound<T>) -> bool
Expand description

Comparison with an upper bound.

(open)

pearlite! {
    match hi {
        Bound::Included(hi) => item <= hi,
        Bound::Excluded(lo) => lo < item,
        Bound::Unbounded => true,
    }
}