pub struct PerfectHasher8<C, H> { /* private fields */ }

Implementations

If you are not worried about DDoS you should use a faster hasher. Rust defaults to SipHash which is more DDoS resistant, but very slow. I recommend the fasthash crate for a collection of faster hashing algorithms. You should use with_hasher(hasher) or default() when you don’t need DDoS resistance.

Trait Implementations

Returns the “default value” for a type. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. 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

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.