gear_combos 1.0.4

Attempts to make getting combinations of things easier with the use of gears and simple numeric states!
Documentation
  • Coverage
  • 91.67%
    11 out of 12 items documented4 out of 11 items with examples
  • Size
  • Source code size: 12.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.48 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dazza91

Attempts to make getting combinations of things easier with the use of gears and simple numeric states!

Example

use gear_combos::*;

let mut gears = vec![Gear::new(2),Gear::new(2)];
let combos = get_gears_combinations(&mut gears);
assert_eq!(vec![vec![0,0],vec![1,0],vec![0,1],vec![1,1]],combos);