[]Trait gokien::syntax::VowelKindExt

pub trait VowelKindExt {
    fn is_elemental(&self) -> bool;
fn is_dipthong(&self) -> bool;
fn is_triphthong(&self) -> bool; }

This trait implements a few method to check if object is an elemental vowel, a diphthong or a triphthong.

Required Methods

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

Check if vowel is a diphthong.

Check if vowel is a triphthong..

Implementors

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