[][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 Index used as bound endpoints.

See core::ops::RangeBounds.

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: Index> TiRangeBounds<K> for Range<K>[src]

type Range = Range<usize>

impl<K: Index> TiRangeBounds<K> for RangeFrom<K>[src]

type Range = RangeFrom<usize>

impl<K: Index> TiRangeBounds<K> for RangeFull[src]

type Range = RangeFull

impl<K: Index> TiRangeBounds<K> for RangeInclusive<K>[src]

impl<K: Index> TiRangeBounds<K> for RangeTo<K>[src]

type Range = RangeTo<usize>

impl<K: Index> TiRangeBounds<K> for RangeToInclusive<K>[src]

Loading content...

Implementors

Loading content...