[][src]Type Definition permutator::KPermutationIntoRefParams

type KPermutationIntoRefParams<'a, T> = (&'a [T], usize, *mut [&'a T]);

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

  1. First value in tuple is &'a [T]. It's a source data to generate k-permutation.
  2. Second value in tuple is usize. It's k size which shall be less than n where n is a length of the first value.
  3. Third value in tule i *mut [&T] It's a sink that store a ref to each permutation.

Trait Implementations

impl<'a, 'b: 'a, T> Permutation<'a> for KPermutationIntoRefParams<'b, T>[src]

type Permutator = KPermutationRefIter<'b, T>

A permutation generator for a collection of data. # See - Foreign implementation for an example different return type Read more