Type Definition permutator::CombinationIntoRefParams
source · 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
- A mutable slice of slices. It’s a domains to of a cartesian product operation.
- A pointer to mutable slice of borrowed value. It’s a result container.
Trait Implementations
sourceimpl<'a, 'b: 'a, T> Combination<'a> for CombinationIntoRefParams<'b, T>
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.
type Combinator = LargeCombinationRefIter<'b, T>
sourcefn combination(&'a self, k: usize) -> LargeCombinationRefIter<'b, T>ⓘNotable traits for LargeCombinationRefIter<'a, T>impl<'a, T> Iterator for LargeCombinationRefIter<'a, T> type Item = ();
fn combination(&'a self, k: usize) -> LargeCombinationRefIter<'b, T>ⓘNotable traits for LargeCombinationRefIter<'a, T>impl<'a, T> Iterator for LargeCombinationRefIter<'a, T> type Item = ();
Create a family of LargeCombinationIterator
of
k
size out of self
.
See LargeCombinationIterator for
how to use LargeCombinationIterator Read more