Type Definition permutator::KPermutationParams
source · [−]Expand description
A pair of parameter that allow Permutation
trait
to create k-permutation iterator from it.
This type is used exclusively in trait Permutation
Format
- First value in tuple is
&'a [T]
. It’s a source data to generate k-permutation. - Second value in tuple is
usize
. It’sk
size which shall be less thann
wheren
is a length of the first value.
Trait Implementations
type Permutator = KPermutationIterator<'a, T>
type Permutator = KPermutationIterator<'a, T>
A permutation generator for a collection of data. Read more
fn permutation(&'a mut self) -> KPermutationIterator<'a, T>ⓘNotable traits for KPermutationIterator<'a, T>impl<'a, T> Iterator for KPermutationIterator<'a, T> type Item = Vec<&'a T>;
fn permutation(&'a mut self) -> KPermutationIterator<'a, T>ⓘNotable traits for KPermutationIterator<'a, T>impl<'a, T> Iterator for KPermutationIterator<'a, T> type Item = Vec<&'a T>;
Notable traits for KPermutationIterator<'a, T>
impl<'a, T> Iterator for KPermutationIterator<'a, T> type Item = Vec<&'a T>;
Create a permutation based on Heap’s algorithm. It return HeapPermutation object. Read more