CombinationIntoRefParams

Type Alias 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§

Source§

impl<'a, 'b: 'a, T> Combination<'a> for CombinationIntoRefParams<'b, T>

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.