chinese-format
Convert data types to Chinese, with Rust
This crate focuses on converting data types to Chinese,
which can be achieved by implementing the ToChinese trait.
As a consequence, it provides:
-
ready-made conversions for standard data types such as integers, strings, ... - but also for fairly specific types like
DigitSequence. -
custom data types - such as
SignandFraction. -
the
Measuretrait and its related macros - especiallydefine_measure. -
the
ChineseVecsequence, to simplify the manipulation of complex chains of logograms.
Optional features
-
digit-sequence:
-
enables conversions to Chinese for DigitSequence
-
enables the
DecimalandIntegerParttypes
-
-
currency: enables the whole
currencymodule for monetary conversions. -
gregorian: enables the
gregorianmodule for date/time conversions.Also enables: digit-sequence
Crates.io
https://crates.io/crates/chinese-format
Documentation
https://docs.rs/chinese-format