#[repr(transparent)]pub struct PowerOfTwoHashToIndex;Expand description
Represents the power of two variant of hash-to-index policy. This basically just does modulo operation.
Trait Implementations§
Source§impl Clone for PowerOfTwoHashToIndex
impl Clone for PowerOfTwoHashToIndex
Source§fn clone(&self) -> PowerOfTwoHashToIndex
fn clone(&self) -> PowerOfTwoHashToIndex
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 PowerOfTwoHashToIndex
impl Default for PowerOfTwoHashToIndex
Source§fn default() -> PowerOfTwoHashToIndex
fn default() -> PowerOfTwoHashToIndex
Returns the “default value” for a type. Read more
Source§impl HashToIndex for PowerOfTwoHashToIndex
impl HashToIndex for PowerOfTwoHashToIndex
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, _: PowerOfTwo32)
fn update_for_new_table_capacity(&mut self, _: PowerOfTwo32)
Updates the hash-to-index policy when the table changes its capacity.
Source§impl ReprC for PowerOfTwoHashToIndex
impl ReprC for PowerOfTwoHashToIndex
impl Copy for PowerOfTwoHashToIndex
Auto Trait Implementations§
impl Freeze for PowerOfTwoHashToIndex
impl RefUnwindSafe for PowerOfTwoHashToIndex
impl Send for PowerOfTwoHashToIndex
impl Sync for PowerOfTwoHashToIndex
impl Unpin for PowerOfTwoHashToIndex
impl UnsafeUnpin for PowerOfTwoHashToIndex
impl UnwindSafe for PowerOfTwoHashToIndex
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