Trait eytzinger::permutation::Permutation[][src]

pub trait Permutation {
    type Iter: Iterator<Item = usize>;
    fn iterable(&self) -> Self::Iter;
fn index(&self, i: usize) -> usize; }

A generic permutation.

Associated Types

type Iter: Iterator<Item = usize>[src]

An iterator through the permutation. This may be more efficient than indexing a counter.

Loading content...

Required methods

fn iterable(&self) -> Self::Iter[src]

Get an iterator.

fn index(&self, i: usize) -> usize[src]

Index into this permutation.

Loading content...

Implementations on Foreign Types

impl<'a> Permutation for &'a [usize][src]

type Iter = Cloned<Iter<'a, usize>>

Loading content...

Implementors

Loading content...