Trait chinese_numerals::ChineseNumeral
source · [−]pub trait ChineseNumeral {
fn to_lowercase(&self, variant: Variant) -> String;
fn to_uppercase(&self, variant: Variant) -> String;
fn to_lowercase_simp(&self) -> String { ... }
fn to_lowercase_trad(&self) -> String { ... }
fn to_uppercase_simp(&self) -> String { ... }
fn to_uppercase_trad(&self) -> String { ... }
}
Expand description
Provides methods to generate Chinease numeral expression for a number.
Required methods
fn to_lowercase(&self, variant: Variant) -> String
fn to_lowercase(&self, variant: Variant) -> String
Converts the number to lowercase (小写数字, used for normal contexts).
fn to_uppercase(&self, variant: Variant) -> String
fn to_uppercase(&self, variant: Variant) -> String
Converts the number to uppercase (大写数字, used for financial contexts).
Provided methods
fn to_lowercase_simp(&self) -> String
fn to_lowercase_simp(&self) -> String
Converts the number to lowercase (小写数字, used for normal contexts) in simplified Chinese.
fn to_lowercase_trad(&self) -> String
fn to_lowercase_trad(&self) -> String
Converts the number to lowercase (小写数字, used for normal contexts) in traditional Chinese.
fn to_uppercase_simp(&self) -> String
fn to_uppercase_simp(&self) -> String
Converts the number to uppercase (大写数字, used for financial contexts) in simplified Chinese.
fn to_uppercase_trad(&self) -> String
fn to_uppercase_trad(&self) -> String
Converts the number to uppercase (大写数字, used for financial contexts) in traditional Chinese.