[][src]Crate hangul

Utilities to manipulate Hangul syllables.

HangulExt trait extends char with following methods:

  • Predicate checks whether given char is 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.2"

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.

ParseSyllableError

Error which can be returned when a given char is not in a Hangul syllables.

Traits

HangulExt

Extension trait to define additional methods on primitive type char.