chinese-format 0.4.1

Convert data types to Chinese, with Rust
Documentation

chinese-format

Convert data types to Chinese, with Rust

CI Crates.io Version

Logo

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 Sign and Fraction.

  • the Measure trait and its related macros - especially define_measure.

  • the ChineseVec sequence, to simplify the manipulation of complex chains of logograms.

Optional features

  • digit-sequence:

    • enables conversions to Chinese for DigitSequence

    • enables the Decimal and IntegerPart types

  • currency: enables the whole currency module for monetary conversions.

  • gregorian: enables the gregorian module for date/time conversions.

    Also enables: digit-sequence

Crates.io

https://crates.io/crates/chinese-format

Documentation

https://docs.rs/chinese-format

License

MIT