Struct odht::HashTable [−][src]
Expand description
The HashTable type provides a cheap way to construct a non-resizable view
of a persisted hash table. If the underlying data storage D
implements
BorrowMut<[u8]>
then the table can be modified in place.
Implementations
Constructs a HashTable from its raw byte representation. The provided data must have the exact right number of bytes.
This method has constant time complexity and will only verify the header data of the hash table. It will not copy any data.
Constructs a HashTable from its raw byte representation without doing any verification of the underlying data. It is the user’s responsibility to make sure that the underlying data is actually a valid hash table.
The HashTable::from_raw_bytes method provides a safe alternative to this method.
Trait Implementations
Auto Trait Implementations
impl<C, D> RefUnwindSafe for HashTable<C, D> where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> UnwindSafe for HashTable<C, D> where
C: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more