SelfCartesianProduct

Type Alias SelfCartesianProduct 

Source
pub type SelfCartesianProduct<'a, T> = (&'a [T], usize);
Expand description

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

§Format

  1. A slice of T.
  2. How many time to create a product on slice

Trait Implementations§

Source§

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

Source§

type Producer = SelfCartesianProductIterator<'b, T>

Source§

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

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