pub struct FibonacciHashToIndex { /* private fields */ }Expand description
Represents the Fibonacci variant of hash-to-index policy.
Trait Implementations§
Source§impl Clone for FibonacciHashToIndex
impl Clone for FibonacciHashToIndex
Source§fn clone(&self) -> FibonacciHashToIndex
fn clone(&self) -> FibonacciHashToIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for FibonacciHashToIndex
impl Default for FibonacciHashToIndex
Source§fn default() -> FibonacciHashToIndex
fn default() -> FibonacciHashToIndex
Returns the “default value” for a type. Read more
Source§impl HashToIndex for FibonacciHashToIndex
impl HashToIndex for FibonacciHashToIndex
Source§fn hash_to_index(&self, hash_value: u64, table_capacity: PowerOfTwo32) -> usize
fn hash_to_index(&self, hash_value: u64, table_capacity: PowerOfTwo32) -> usize
Converts a hash value to an index in the bytell hash table.
Source§fn update_for_new_table_capacity(&mut self, table_capacity: PowerOfTwo32)
fn update_for_new_table_capacity(&mut self, table_capacity: PowerOfTwo32)
Updates the hash-to-index policy when the table changes its capacity.
Source§impl ReprC for FibonacciHashToIndex
impl ReprC for FibonacciHashToIndex
impl Copy for FibonacciHashToIndex
Auto Trait Implementations§
impl Freeze for FibonacciHashToIndex
impl RefUnwindSafe for FibonacciHashToIndex
impl Send for FibonacciHashToIndex
impl Sync for FibonacciHashToIndex
impl Unpin for FibonacciHashToIndex
impl UnsafeUnpin for FibonacciHashToIndex
impl UnwindSafe for FibonacciHashToIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more