Crates.io | idiom-solitaire |
lib.rs | idiom-solitaire |
version | 0.1.0 |
source | src |
created_at | 2020-11-28 09:34:46.138343 |
updated_at | 2020-11-28 09:34:46.138343 |
description | ... |
homepage | |
repository | https://github.com/GalAster/IdiomSolitaire |
max_upload_size | |
id | 317392 |
size | 11,591 |
pyo3 bind
wasm bind
pub enum SolitaireMode {
/// 同字模式, 需要字符完全相同, 允许多音字
Character = 0,
/// 同调模式, 需要发音以及音调相同
Tone = 1,
/// 同音模式, 允许音调不同
Sound = 2,
}
solver.solve_greedy(input: &str) -> Result<Idiom>
solver.solve_random(input: &str) -> Result<Idiom>
solver.solve_target(input: &str, target: &str) -> Result<Vec<Idiom>>