KokaKiwi / rust-hex

A basic crate to encode values to hexadecimal representation. Originally extracted from rustc-serialize.
https://crates.io/crates/hex
Apache License 2.0
201 stars 55 forks source link

Add implementations for arrays of size 20 and 28 #15

Closed andy128k closed 6 years ago

andy128k commented 6 years ago

[u8; 20] is useful to store SHA1 sums and [u8; 28] is for SHA224

LukasKalbertodt commented 6 years ago

Oh boy, Rust really needs const generics ...

KokaKiwi commented 6 years ago

I implemented a large liste of array sizes, this way I think it should be sufficient for a lot of uses until we have const generics... :smile: