Type Definition permutator::CombinationIntoRefParams

source ·
pub type CombinationIntoRefParams<'a, T> = (&'a [T], *mut [&'a T]);
Expand description

A pair of source and sink to get a sharable combination.

It’s tuple contains a source data to generate a combination and a sink to temporary store each combination.

This type is use exclusively with trait Combination

Format

  1. A mutable slice of slices. It’s a domains to of a cartesian product operation.
  2. A pointer to mutable slice of borrowed value. It’s a result container.

Trait Implementations

An implementation for convenient use of LargeCombinationRefIter

Warning

It hid unsafe object instantiation of LargeCombinationRefIter from user but all unsafe conditions are still applied as long as the life of object itself.

Create a family of LargeCombinationIterator of k size out of self. See LargeCombinationIterator for how to use LargeCombinationIterator Read more