【文件属性】:
文件名称:anagram:懒洋洋的时代
文件大小:5KB
文件格式:ZIP
更新时间:2021-03-18 02:00:05
Rust
字谜
字谜实用程序功能的集合
安装
您可以通过将其添加到Cargo.toml文件中来安装此板条箱
anagram = "0.3.0"
例子
use anagram :: {count, get_next, is_anagram, occurences};
fn main () {
// count how many anagrams can be formed from a given word
let anagram_count = count ( "ordeals" );
assert_eq! (anagram_count, 5040 );
// count the number of occurences of an anagram in a given word
let occur = occurences ( "helloworldhello" , "ll"
【文件预览】:
anagram-master
----rustfmt.toml(756B)
----.github()
--------workflows()
----src()
--------lib.rs(7KB)
----Cargo.toml(394B)
----.gitignore(19B)
----justfile(50B)
----README.md(1KB)
----.editorconfig(178B)