permut_lib

Crates.iopermut_lib
lib.rspermut_lib
version0.1.2
sourcesrc
created_at2020-06-03 11:19:35.141775
updated_at2020-06-04 04:16:44.773973
descriptionSimple function to generate permutations on a dictionry of a u8 chars set. I used it for generate unic Items into my proc macros.
homepage
repositoryhttps://github.com/Cergoo/permut_lib
max_upload_size
id249625
size6,808
(Cergoo)

documentation

https://docs.rs/permut_lib

README

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" ...  
Commit count: 5

cargo fmt