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.
Check if consonant is a initial consonant.
These valid consonants not include: q.
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.
assert!(!Consonant::Q.is_final());
assert!(Consonant::C.is_final());Run
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more