permut_lib 0.1.2

Simple function to generate permutations on a dictionry of a u8 chars set. I used it for generate unic Items into my proc macros.
Documentation
  • Coverage
  • 40%
    2 out of 5 items documented1 out of 1 items with examples
  • Size
  • Source code size: 6.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Cergoo/permut_lib
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Cergoo

permut_lib

This crate provide simple function to generate permutations on a dictionry of a u8 chars set. I used it for generate unic Items into my proc macros

Functions

pub fn create_permut(chars: &[u8], count: usize) -> Vec<Vec<u8>>

Universal function for generate unic sequences of u8 chars, like "A", "B", "C", ... , "AA", "AB", ..., "AAAAAB",...

Examples

use permut_lib::permut::*;
create_permut(CHARS_CAPS_LATIN, 195); // result: "A", "B", "C", ... , "AA", "AB" ...