Struct harsh::Harsh [−][src]
pub struct Harsh { /* fields omitted */ }
Expand description
A hashids-compatible hasher.
It’s probably not a great idea to use the default, because in that case your values will be entirely trivial to decode. On the other hand, this is not intended to be cryptographically-secure, so go nuts!
Implementations
Build a new instance of Harsh.
Encodes a slice of u64
values into a single hashid.
Decodes a single hashid into a slice of u64
values.
Encodes a hex string into a hashid.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Harsh
impl UnwindSafe for Harsh
Blanket Implementations
Mutably borrows from an owned value. Read more