Struct harsh::HarshBuilder [] [src]

pub struct HarshBuilder { /* fields omitted */ }

Factory used to create a new Harsh instance.

Note that this factory will be consumed upon initialization.

Methods

impl HarshBuilder
[src]

Creates a new HarshBuilder instance.

Provides a salt.

Note that this salt will be converted into a [u8] before use, meaning that multi-byte utf8 character values should be avoided.

Provides an alphabet.

Note that this alphabet will be converted into a [u8] before use, meaning that multi-byte utf8 character values should be avoided.

Provides a set of separators.

Note that these separators will be converted into a [u8] before use, meaning that multi-byte utf8 character values should be avoided.

Provides a minimum hash length.

Keep in mind that hashes produced may be longer than this length.

Initializes a new Harsh based on the HarshBuilder.

This method will consume the HarshBuilder.

Trait Implementations

impl Debug for HarshBuilder
[src]

Formats the value using the given formatter.

impl Default for HarshBuilder
[src]

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