Struct harsh::HarshBuilder[][src]

pub struct HarshBuilder { /* fields omitted */ }
Expand description

A builder used to configure and create a Harsh instance.

Implementations

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. The alphabet must include at least sixteen characters.

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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.