idb/range
Types
Values
pub fn bound(
lower: @internal Key,
upper: @internal Key,
exclude_lower_endpoint: Bool,
exclude_upper_endpoint: Bool,
) -> KeyRange
Creates a KeyRange with both lower and upper bound.
The third and fourth argument determines whether or not
the lower and upper endpoint value is excluded from the range
respectively.
pub fn exclusive_lower_bound(key: @internal Key) -> KeyRange
Creates a KeyRange with only a lower bound.
The lower endpoint value is excluded from the range.
pub fn exclusive_upper_bound(key: @internal Key) -> KeyRange
Creates a KeyRange with only an upper bound.
The upper endpoint value is excluded from the range.
pub fn is_in_range(
key: @internal Key,
of range: KeyRange,
) -> Bool
Determines whether or not a Key is inside a KeyRange.
pub fn lower_bound(key: @internal Key) -> KeyRange
Creates a KeyRange with only a lower bound.
The lower endpoint value is included in the range.
pub fn upper_bound(key: @internal Key) -> KeyRange
Creates a KeyRange with only an upper bound.
The upper endpoint value is included in the range.