Crate hsk

source ·
Expand description

About

Return HSK Level for Simplified Chinese Characters

Usage

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
}

Structs