rany

Crates.iorany
lib.rsrany
version0.1.12
sourcesrc
created_at2023-12-25 13:23:35.738079
updated_at2024-08-17 13:13:22.502056
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
size7,536
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::{Rany, B255};
      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: 22

cargo fmt