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