[][src]Trait rin::math::core::SliceRange

pub trait SliceRange<D> where
    D: Dim
{ type Size: Dim; fn begin(&self, shape: D) -> usize;
fn end(&self, shape: D) -> usize;
fn size(&self, shape: D) -> Self::Size; }

A range with a size that may be known at compile-time.

This may be:

Associated Types

Type of the range size. May be a type-level integer.

Required Methods

The start index of the range.

The index immediately after the last index inside of the range.

The number of elements of the range, i.e., self.end - self.begin.

Implementations on Foreign Types

impl<D> SliceRange<D> for Range<usize> where
    D: Dim
[src]

impl<D> SliceRange<D> for RangeFrom<usize> where
    D: Dim
[src]

impl<D> SliceRange<D> for usize where
    D: Dim
[src]

impl<D> SliceRange<D> for RangeFull where
    D: Dim
[src]

impl<D> SliceRange<D> for RangeTo<usize> where
    D: Dim
[src]

Implementors