Crates.io | hsk |
lib.rs | hsk |
version | 0.1.1 |
source | src |
created_at | 2020-10-08 15:46:55.471198 |
updated_at | 2023-11-10 23:23:57.975362 |
description | Return HSK Level for Simplified Chinese Characters |
homepage | |
repository | https://github.com/sotch-pr35mac/hsk |
max_upload_size | |
id | 297309 |
size | 79,564 |
Return HSK Level for Simplified Chinese Characters
extern crate hsk;
use hsk::Hsk;
fn main() {
let hsk_list = Hsk::new();
let character: &str = "成为";
let result: u8 = hsk_list.get_hsk(character);
println!("{:?}", result); // --> 4
}