pub open spec fn before_upper_bound<Key, Q: ?Sized>(key: Key, bound: Bound<&Q>) -> boolExpand description
{
match bound {
Bound::Included(bound_key) => !(borrowed_key_cmp(key, bound_key) is Greater),
Bound::Excluded(bound_key) => borrowed_key_cmp(key, bound_key) is Less,
Bound::Unbounded => true,
}
}Whether a key occurs before the gap returned by upper_bound_mut.