pub struct StringCompressor { /* private fields */ }
Expand description

A structure that can create minimally compact, non-colliding, base-64 aliases for a set of strings. This is different then a “hasher”, because it optimizes for small hash sizes, but two instances won’t yield the same hashed values for a given input string unless the order of hash operations is identical.

Implementations

Create a new StringCompressor instance.

Create a compressed alias for a given String. Invoking this function multiple times with the same input will yield the same result.

Return the original value that yielded a given compressed String

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.