Crate sort_zh

source ·
Expand description

這個crate可以協助用戶在Rust專案中更方便的進行中文排序。

在Rust中,如果直接使用sort()系列function進行Vec的排序,非ASCII部分的文字會因為Unicode Hex Code的排序而混亂。

本crate提供了sort_zh() function 進行正確的排序(預設透過筆畫順序),用戶也可以利用SortZhOptions中的設定進行自定義排序。

Structs

排序選項

Enums

中文字類型
大寫數字排序選項
中文數字選項

Traits