[][src]Trait typed_index_collections::TiRangeBounds

pub trait TiRangeBounds<K> {
    type Range: RangeBounds<usize>;
    fn into_range(self) -> Self::Range;
}

A helper trait used to convert typed index ranges to usize ranges. The trait is implemented for Rust's built-in range types with K where usize: From<K> used as bound endpoints.

See core::ops::RangeBounds for more details.

Associated Types

type Range: RangeBounds<usize>

Appropriate usize range

Loading content...

Required methods

fn into_range(self) -> Self::Range

Converts the TiRangeBounds into an appropriate usize range.

Loading content...

Implementations on Foreign Types

impl<K> TiRangeBounds<K> for Range<K> where
    usize: From<K>, 
[src]

type Range = Range<usize>

impl<K> TiRangeBounds<K> for RangeFrom<K> where
    usize: From<K>, 
[src]

type Range = RangeFrom<usize>

impl<K> TiRangeBounds<K> for RangeFull where
    usize: From<K>, 
[src]

type Range = RangeFull

impl<K> TiRangeBounds<K> for RangeInclusive<K> where
    usize: From<K>, 
[src]

impl<K> TiRangeBounds<K> for RangeTo<K> where
    usize: From<K>, 
[src]

type Range = RangeTo<usize>

impl<K> TiRangeBounds<K> for RangeToInclusive<K> where
    usize: From<K>, 
[src]

Loading content...

Implementors

Loading content...