rany

Crates.iorany
lib.rsrany
version0.1.13
created_at2023-12-25 13:23:35.738079+00
updated_at2025-09-02 07:40:26.791867+00
descriptiondecode/encode usize to radix any
homepagehttps://github.com/i18n-site/rust/tree/main/rany
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1080241
size10,188
i18n.site (i18nsite)

documentation

README

rany : decode/encode usize to radix any

#[test]
fn test() {
  for num in [u64::MAX, 1234567890, 0, 1] {
    #[cfg(feature = "url")]
    {
      use rany::URL;
      let encode = URL.estr(num);
      let decode = URL.dstr(&encode);
      assert_eq!(num, decode);
    }
    #[cfg(feature = "b255")]
    {
      use rany::{B255, Rany};
      let encode = B255.e(num);
      assert_eq!(num, B255.d(&encode));
    }
  }
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Commit count: 68

cargo fmt