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>
An iterator through the permutation. This may be more efficient than indexing a counter.
Required Methods
fn iterable(&self) -> Self::Iter
Get an iterator.
fn index(&self, i: usize) -> usize
Index into this permutation.
Implementations on Foreign Types
impl<'a> Permutation for &'a [usize]
[src]
Implementors
impl Permutation for PermutationGenerator type Iter = PermutationGenerator;