SelfCartesianProductIntoCellParams

Type Alias SelfCartesianProductIntoCellParams 

Source
pub type SelfCartesianProductIntoCellParams<'a, T> = (&'a [T], usize, Rc<RefCell<&'a mut [&'a T]>>);
Expand description

A type that used exclusively for trait CartesianProduct. It return SelfCartesianProductCellIter.

§Format

  1. A slice of T.
  2. How many time to create a product on slice
  3. An Rc<RefCell<&mut [T]>> to store each product on each iteration.

Trait Implementations§

Source§

impl<'a, 'b: 'a, T> CartesianProduct<'a> for SelfCartesianProductIntoCellParams<'b, T>
where T: 'b,

Source§

type Producer = SelfCartesianProductCellIter<'b, T>

Source§

fn cart_prod(&'a self) -> Self::Producer

Create a cartesian product producer which can be used to iterate over each product.