6个版本
使用旧的Rust 2015
0.4.1 | 2020年1月14日 |
---|---|
0.4.0 | 2018年10月18日 |
0.2.0 | 2018年5月9日 |
0.1.2 | 2018年4月4日 |
#975 在 算法
每月204次下载
用于 4 个crate(2个直接使用)
12KB
pretty-hash
将二进制缓冲区输出为简洁的短十六进制字符串。改编自 pfrazee/pretty-hash。
用法
extern crate pretty_hash;
let hash = pretty_hash::fmt(b"1234").unwrap();
assert_eq!(hash, "31323334");
let hash = pretty_hash::fmt(b"12345").unwrap();
assert_eq!(hash, "313233..35");
安装
$ cargo add pretty-hash
许可证
MIT OR Apache-2.0
依赖项
~64KB