Type Definition permutator::CombinationIntoCellParams
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
- First value in tuple is a
&'a [T]- It’s a source data to generate a combination. - Second value in tuple is an Rc<RefCell<&’a mut[&’a T]>>` - It’s a sink to temporary store each combination.
Trait Implementations
sourceimpl<'a, 'b: 'a, T> Combination<'a> for CombinationIntoCellParams<'b, T>
impl<'a, 'b: 'a, T> Combination<'a> for CombinationIntoCellParams<'b, T>
An implementation for convenient use of LargeCombinationCellIter
type Combinator = LargeCombinationCellIter<'b, T>
sourcefn combination(&'a self, k: usize) -> LargeCombinationCellIter<'b, T>ⓘNotable traits for LargeCombinationCellIter<'a, T>impl<'a, T> Iterator for LargeCombinationCellIter<'a, T> type Item = ();
fn combination(&'a self, k: usize) -> LargeCombinationCellIter<'b, T>ⓘNotable traits for LargeCombinationCellIter<'a, T>impl<'a, T> Iterator for LargeCombinationCellIter<'a, T> type Item = ();
Create a family of LargeCombinationIterator
of
k size out of self.
See LargeCombinationIterator for
how to use LargeCombinationIterator Read more