pub enum CodeType {
Zvvnmod,
Delehi,
MenkShape,
MenkLetter,
Oyun,
Utn57,
Z52,
Utn57Shape,
}Expand description
The supported Mongolian encodings. One variant per Java CodeType (in declaration order).
Zvvnmod is the intermediate hub. Port of CodeType.java lines 14-20.
Oyun and Utn57 are parseable. Oyun remains unsupported in both directions; UTN #57
converts both ways through the in-process zvvnmod-utn57 backend.
Utn57Shape has no Java counterpart: it is the written-unit spelling of a UTN #57 text
(ᠰᠠᠢᠨ as SAIIA), read and written through Utn57.
Variants§
Implementations§
Source§impl CodeType
impl CodeType
Sourcepub const fn code_series(self) -> CodeSeries
pub const fn code_series(self) -> CodeSeries
The code’s series. Port of Java’s stored codeSeries final field, as a const fn.
Sourcepub const fn canonical_str(self) -> &'static str
pub const fn canonical_str(self) -> &'static str
Canonical string form (the Java lowercased-enum-name form).
Sourcepub fn get(value: &str) -> Result<CodeType, MongolConvertError>
pub fn get(value: &str) -> Result<CodeType, MongolConvertError>
Case-insensitive lookup, mirroring Java CodeType.get. Accepts the canonical Java form
and the PHP underscore-stripped alias. Errors with MongolConvertError::UnsupportedEnumType.