[][src]Crate to_kana

English lettering to Kana converter.

Example

use to_kana::{
    hira, // Hiragana
    kata, // Katakana
};

let e = hira("e").unwrap();
let ka = hira("ka").unwrap();
let no = kata("no").unwrap();
let tte = hira("tte").unwrap();

assert_eq!("え", e);
assert_eq!("か", ka);
assert_eq!("ノ", no);
assert_eq!("って", tte);

Functions

hira

Converts an English alphabet string to Hiragana

kata

Converts an English alphabet string to Katakana

Type Definitions

Error

The type inside Result::Err returned by this library's functions

Result

The Result type returned by this library's functions