pub open spec fn before_upper_bound<Key: Borrow<Q>, Q: Ord + ?Sized>(
key: Key,
bound: Bound<&Q>,
) -> boolExpand description
{
let borrowed_key = <Key as BorrowSpec<Q>>::borrow_spec(&key);
match bound {
Bound::Included(bound_key) => !(borrowed_key.cmp_spec(bound_key) is Greater),
Bound::Excluded(bound_key) => borrowed_key.cmp_spec(bound_key) is Less,
Bound::Unbounded => true,
}
}Whether a key occurs before the gap returned by BTreeMap::upper_bound_mut.