Struct odht::HashTableOwned[][src]

pub struct HashTableOwned<C: Config> { /* fields omitted */ }
Expand description

A HashTableOwned keeps the underlying data on the heap and can resize itself on demand.

Implementations

Creates a new HashTableOwned that can hold at least max_item_count items while maintaining the specified load factor.

Retrieves the value for the given key. Returns None if no entry is found.

Inserts the given key-value pair into the table. Grows the table if necessary.

Constructs a HashTableOwned from its raw byte representation. The provided data must have the exact right number of bytes.

This method has linear time complexity as it needs to make its own copy of the given data.

The method will verify the header of the given data and return an error if the verification fails.

Returns the number of items stored in the hash table.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.