[]Enum gokien::syntax::Vowel

#[repr(u8)]
pub enum Vowel { A, A6, A8, E, E6, I, O, O6, O7, U, U7, Y, Ai, Ao, Au, A6u, Ay, A6y, Eo, E6u, Ia, Ie6, Ye6, Iu, Oa, Oa8, Oe, Oi, O6i, O7i, Oo, O6o6, Ua, Ua8, Ua6, U7a, Ue6, Ui, U7i, Uo, Uo6, Uo7, U7o7, U7u, Uy, Ie6u, Ye6u, Oai, Oao, Oay, Oeo, Uao, Ua6y, Uo6i, U7o7i, U7o7u, Uya, Uye6, Uyu, }

Lists all vowels (nguyên âm) in Vietnamese.

In terms of writing, there are 3 kinds of vowel:

There are 12 vowels: ă, â, iê, oă, oo, ôô, uâ, uă, uô, ươ, uyê, yê, must be followed by another vowel or consonant based on this rule:

There are 4 diphthongs that are free. They can be freestanding, be followed by initial, final or both consonant kinds: oa, oe, uê, uy.

Hence, there are only 31 composite vowels without final consonant:

Variants

Methods

impl Vowel

Check if vowel must be followed by another vowel or a consonant.

Examples

assert!(Vowel::A6.must_or_with_vowel());
assert!(!Vowel::Oai.must_or_with_vowel());Run

Check if vowel must be only followed by a consonant.

Examples

assert!(!Vowel::A6.must_with_final_consonant());
assert!(Vowel::Oa8.must_with_final_consonant());Run

Check if vowel is without final consonant.

Examples

assert!(!Vowel::A6.must_without_final_consonant());
assert!(Vowel::Ai.must_without_final_consonant());Run

Check if diphthong is free. Those diphthongs are: oa, oe, uê, uy.

Examples

assert!(!Vowel::A6.is_free_diphthong());
assert!(Vowel::Oa.is_free_diphthong());Run

Trait Implementations

impl VowelKindExt for Vowel

Check if vowel is elemental (or primary, basic).

Examples

assert!(Vowel::Y.is_elemental());
assert!(!Vowel::Ai.is_elemental());
assert!(!Vowel::Oai.is_elemental());Run

Check if vowel is a diphthong.

Examples

assert!(!Vowel::Y.is_dipthong());
assert!(Vowel::Ai.is_dipthong());
assert!(!Vowel::Oai.is_dipthong());Run

Check if vowel is a triphthong.

Examples

assert!(!Vowel::Y.is_triphthong());
assert!(!Vowel::Ai.is_triphthong());
assert!(Vowel::Oai.is_triphthong());Run

impl Debug for Vowel

Auto Trait Implementations

impl Send for Vowel

impl Sync for Vowel

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]