Struct harsh::Harsh [] [src]

pub struct Harsh { /* fields omitted */ }

A rustic implementation of Hashids.

This should be created by use of the HarshBuilder struct, which will be consumed upon initialization. Harsh is Send + Sync, meaning just one can be used pretty much through your system.

Methods

impl Harsh
[src]

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.

Decodes a hashid into a hex string.

Trait Implementations

impl Clone for Harsh
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Harsh
[src]

Formats the value using the given formatter.

impl Default for Harsh
[src]

Returns the "default value" for a type. Read more