Type Definition permutator::KPermutationIntoRefParams
source · Expand description
A tuple of 3 parameters that allow Permutation trait
to create k-permutation ref 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’sksize which shall be less thannwherenis a length of the first value. - Third value in tule i
*mut [&T]It’s a sink that store a ref to each permutation.
Trait Implementations
sourceimpl<'a, 'b: 'a, T> Permutation<'a> for KPermutationIntoRefParams<'b, T>
impl<'a, 'b: 'a, T> Permutation<'a> for KPermutationIntoRefParams<'b, T>
type Permutator = KPermutationRefIter<'b, T>
type Permutator = KPermutationRefIter<'b, T>
A permutation generator for a collection of data. Read more
sourcefn permutation(&'a mut self) -> Self::Permutator
fn permutation(&'a mut self) -> Self::Permutator
Create a permutation based on Heap’s algorithm.
It return HeapPermutation object. Read more