pub enum Bound<T> {
Included(T),
Excluded(T),
Unbounded,
}
🔬This is a nightly-only experimental API. (
new_range_api
)Expand description
An endpoint of a range of keys.
§Examples
Bound
s are range endpoints:
use std::ops::Bound::*;
use std::ops::RangeBounds;
assert_eq!((..100).start_bound(), Unbounded);
assert_eq!((1..