pub enum Mark {
None,
Hat,
Horn,
Breve,
Dash,
}Mark lists all possible mark in Vietnamese, including:
| Mark | Example |
| None | Non-marked |
| Hat (or circumflex) | â |
| Horn | ư |
| Breve | ă |
| Dash | đ |
Get mark of character ch.
In case of ch is non-marked, Mark::None is returned.
assert_eq!(Mark::get_mark('â'), Mark::Hat);Run
Add a mark to ch and return wanted character.
In case of ch is non-marked, the original ch is returned.
assert_eq!(Mark::add_mark('â', Mark::Breve), 'ă');Run
Clear the mark in ch. Return the result and the old mark.
In case of non-marked ch, the original ch is returned
with Mark::None.
assert_eq!(Mark::clear_mark('đ'), ('d', Mark::Dash));Run
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=.
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