pub fn upper_bound<T: OrdLogic>(item: T, hi: Bound<T>) -> bool
Comparison with an upper bound.
(open)
pearlite! { match hi { Bound::Included(hi) => item <= hi, Bound::Excluded(lo) => lo < item, Bound::Unbounded => true, } }