pub struct HashConfig {
pub algorithm: HashAlgorithm,
pub seed: u64,
}Expand description
Hash configuration
For WDP compliance, use HashConfig::wdp_compliant() which uses
xxHash3 with the standard WDP seed.
Fields§
§algorithm: HashAlgorithmThe hash algorithm to use (only xxHash3 for WDP)
seed: u64Seed for the hash
Default is 0x000031762D706477 per WDP specification.
Implementations§
Source§impl HashConfig
impl HashConfig
Sourcepub fn wdp_compliant() -> Self
pub fn wdp_compliant() -> Self
Create a WDP-compliant config (xxHash3 + WDP seed)
This is the standard configuration per WDP Part 5.
Trait Implementations§
Source§impl Clone for HashConfig
impl Clone for HashConfig
Source§fn clone(&self) -> HashConfig
fn clone(&self) -> HashConfig
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 Debug for HashConfig
impl Debug for HashConfig
Auto Trait Implementations§
impl Freeze for HashConfig
impl RefUnwindSafe for HashConfig
impl Send for HashConfig
impl Sync for HashConfig
impl Unpin for HashConfig
impl UnwindSafe for HashConfig
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