Struct ph::FPHash2

source · []
pub struct FPHash2<GS: GroupSize = TwoToPowerBits, SS: SeedSize = TwoToPowerBitsStatic<2>, S = BuildDefaultSeededHasher> { /* private fields */ }
Expand description

Fingerprinting-based minimal perfect hash function with group optimization (FMPHGO).

See:

  • P. Beling, Fingerprinting-based minimal perfect hashing revisited

Implementations

Gets the value associated with the given key and reports statistics to access_stats.

Gets the value associated with the given key.

Builds FPHash2 for given keys, using the configuration conf and reporting statistics to stats.

Builds FPHash2 for given keys, using the configuration conf.

Builds FPHash2 for given keys, using the configuration conf.

Builds FPHash2 for given keys, using the configuration conf.

Builds FPHash2 for given keys, using the configuration conf.

Returns number of bytes which write will write.

Writes self to the output.

Reads Self from the input. Hasher must be the same as the one used to write.

Reads Self from the input. Only FPHash2s that use default hasher can be read by this method.

Builds FPHash2 for given keys, reporting statistics to stats.

Builds FPHash2 for given keys.

Trait Implementations

Converts to this type from the input type.

Returns approximate number of bytes occupied by dynamic (heap) part of self. Same as self.size_bytes() - std::mem::size_of_val(self). Read more

true if and only if the variables of this type can use dynamic (heap) memory.

Returns approximate, total (including heap memory) number of bytes occupied by self.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.