Trait nalgebra::base::SliceRange[][src]

pub trait SliceRange<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 Size: Dim[src]

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

Loading content...

Required methods

fn begin(&self, shape: D) -> usize[src]

The start index of the range.

fn end(&self, shape: D) -> usize[src]

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

fn size(&self, shape: D) -> Self::Size[src]

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

Loading content...

Implementations on Foreign Types

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

type Size = U1

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

type Size = Dynamic

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

type Size = Dynamic

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

type Size = Dynamic

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

type Size = D

Loading content...

Implementors

Loading content...