Expand description
Utilities to manipulate Hangul syllables.
HangulExt trait extends char with following methods:
- Predicate checks whether given
charis a Hangul syllable - Predicate indicates whether the syllable has a jongseong — in other words, closed
- Getters for choseong, jungseong, jongseong, and jamo
- Iterator iterates over jamos consisting a syllable
To use these methods, add this to your Cargo.toml:
[dependencies]
hangul = "0.1.3"then import HangulExt trait:
use hangul::HangulExt;Now you can use the methods.
use hangul::HangulExt;
assert_eq!('京'.is_syllable(), false);
assert_eq!('설'.to_jamo(), Ok(( 'ㅅ', 'ㅓ', Some('ㄹ'))));Structs§
- Jamos
- Iterator over the jamo
chars of the syllable. - Parse
Syllable Error - Error which can be returned when a given
charis not in a Hangul syllables.
Traits§
- Hangul
Ext - Extension trait to define additional methods on primitive type
char.