jp-prefecture
jp-prefecture is an useful crate for using Japanese prefectures
Getting Started
Crate has to be added as dependency to Cargo.toml
[]
= "1.0.4"
and imported to the scope of a block where it's begin called
use prefectures;
Examples
use prefectures;
let tokyo = find_by_kanji;
println!; // => Some(Prefecture::Tokyo)
println!; // => "東京都"
println!; // => "東京"
println!; // => "tokyo"
let tokyo = find_by_kanji; // uhmmmm...
println!; // => None