pub trait IntoIndex {
// Required method
fn into_index(self, size: usize) -> (usize, usize);
}
Expand description
Into inclusive start and exclusive end indices.
Used for range query and range update in SegTree
and LazySegTree
.
Required Methods§
Sourcefn into_index(self, size: usize) -> (usize, usize)
fn into_index(self, size: usize) -> (usize, usize)
Computes index from RangeBounds
. The parameter size
is the size of the full range.