[][src]Trait libpuri::IntoIndex

pub trait IntoIndex {
    pub fn into_index(self, size: usize) -> (usize, usize);
}

Into inclusive start and exclusive end indices.

Used for range query and range update in SegTree and LazySegTree.

Required methods

pub fn into_index(self, size: usize) -> (usize, usize)[src]

Computes index from RangeBounds. The parameter size is the size of the full range.

Loading content...

Implementations on Foreign Types

impl IntoIndex for Range<usize>[src]

impl IntoIndex for RangeFrom<usize>[src]

impl IntoIndex for RangeInclusive<usize>[src]

impl IntoIndex for RangeToInclusive<usize>[src]

impl IntoIndex for RangeTo<usize>[src]

impl IntoIndex for RangeFull[src]

impl IntoIndex for usize[src]

Loading content...

Implementors

Loading content...