3个版本
0.1.2 | 2020年6月4日 |
---|---|
0.1.1 | 2020年6月3日 |
0.1.0 | 2020年6月3日 |
#2351 in 算法
5KB
89 行
permut_lib
这个crate提供生成u8字符集字典排列的简单函数。我将其用于在我的proc宏中生成unic项目。
函数
pub fn create_permut(chars: &[u8], count: usize) -> Vec<Vec<u8>>
生成u8字符unic序列的通用函数,如"A"、"B"、"C"、...、"AA"、"AB"、...、"AAAAAB"、...
示例
use permut_lib::permut::*;
create_permut(CHARS_CAPS_LATIN, 195); // result: "A", "B", "C", ... , "AA", "AB" ...
lib.rs
:
这个crate提供生成u8字符集字典排列的简单函数,我将其用于在我的proc宏中生成unic项目。