pub struct GeneralSipHashBuilder<const C: u32, const D: u32> { /* private fields */ }Expand description
Represents a builder for GeneralSipHash.
Implementations§
Source§impl<const C: u32, const D: u32> GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> GeneralSipHashBuilder<C, D>
Sourcepub const fn with_keys(key0: u64, key1: u64) -> Self
pub const fn with_keys(key0: u64, key1: u64) -> Self
Creates a new GeneralSipHashBuilder instance with custom keys.
Sourcepub const fn with_array_key(key: &[u8; 16]) -> Self
pub const fn with_array_key(key: &[u8; 16]) -> Self
Creates a new GeneralSipHashBuilder instance from a given array key.
Sourcepub const fn with_slice_key(key: &[u8]) -> Self
pub const fn with_slice_key(key: &[u8]) -> Self
Creates a new GeneralSipHashBuilder instance from a given slice.
§Panics
If the key is not exactly 16 bytes long, this function will panic.
Sourcepub const fn create_hasher(&self) -> GeneralSipHash<C, D>
pub const fn create_hasher(&self) -> GeneralSipHash<C, D>
Creates a new GeneralSipHash instance from the builder.
Trait Implementations§
Source§impl<const C: u32, const D: u32> BuildHasher for GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> BuildHasher for GeneralSipHashBuilder<C, D>
Source§type Hasher = GeneralSipHash<C, D>
type Hasher = GeneralSipHash<C, D>
Type of the hasher that will be created.
Source§fn build_hasher(&self) -> Self::Hasher
fn build_hasher(&self) -> Self::Hasher
Creates a new hasher. Read more
Auto Trait Implementations§
impl<const C: u32, const D: u32> Freeze for GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> RefUnwindSafe for GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> Send for GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> Sync for GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> Unpin for GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> UnsafeUnpin for GeneralSipHashBuilder<C, D>
impl<const C: u32, const D: u32> UnwindSafe for GeneralSipHashBuilder<C, D>
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