[]Enum gokien::syntax::Consonant

pub enum Consonant {
    B,
    C,
    Ch,
    D,
    D9,
    G,
    Gh,
    Gi,
    H,
    K,
    Kh,
    L,
    M,
    N,
    Ng,
    Ngh,
    Nh,
    P,
    Ph,
    Q,
    Qu,
    R,
    S,
    T,
    Th,
    Tr,
    V,
    X,
}

List all consonants (phụ âm) in Vietnamese.

In Vietnamese, there are 17 elemental consonants: b, c, d, đ, g, h, k, l, m, n, p, q, r, s, t, v, x

and 11 composite consonants: ch, gh, gi, kh, ng, ngh, nh, ph, qu, th, tr.

All consonants can be the initial of a monosyllabic word.

Variants

Methods

impl Consonant

Check if consonant is a initial consonant.

These valid consonants not include: q.

Examples

assert!(!Consonant::Q.is_initial());
assert!(Consonant::C.is_initial());Run

Check if consonant is a final consonant.

These valid consonants include: c, ch, p, t, m, n, ng, nh.

Examples

assert!(!Consonant::Q.is_final());
assert!(Consonant::C.is_final());Run

Trait Implementations

impl Debug for Consonant

Auto Trait Implementations

impl Send for Consonant

impl Sync for Consonant

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]