Skip to main content

Module block

Module block 

Source
Expand description

A module for working with Hangul syllable blocks.

Structs§

BlockComposer
A composer for a single Hangul syllable block. Used to build a block by pushing and popping Jamo letters.
HangulBlock
A struct representing a composed Hangul syllable block, consisting of an initial Jamo, a vowel Jamo, and an optional final Jamo.
HangulBlockDecompositionOptions
Options for decomposing a HangulBlock into its constituent Jamo characters.

Enums§

BlockCompletionStatus
The status of attempting to complete a Hangul syllable block.
BlockError
Errors that can occur when working with Hangul syllable blocks.
BlockPopStatus
The status of popping a Jamo letter from a Hangul syllable block composer.
BlockPushResult
Result of pushing a Jamo letter into a Hangul syllable block composer.

Functions§

hangul_blocks_vec_to_string
Converts a vector of HangulBlock structs into a composed Hangul string. Returns an Err if any block cannot be converted into a valid Hangul syllable.

Type Aliases§

DecomposedTuple
A tuple representing the decomposed Jamo characters of a HangulBlock. The tuple contains six Option<Jamo> values representing: