pub enum UnionHasher<Alloc: Allocator<u16> + Allocator<u32>> {
Uninit,
H2(BasicHasher<H2Sub<Alloc>>),
H3(BasicHasher<H3Sub<Alloc>>),
H4(BasicHasher<H4Sub<Alloc>>),
H54(BasicHasher<H54Sub<Alloc>>),
H5(AdvHasher<H5Sub, Alloc>),
H5q7(AdvHasher<HQ7Sub, Alloc>),
H5q5(AdvHasher<HQ5Sub, Alloc>),
H6(AdvHasher<H6Sub, Alloc>),
H9(H9<Alloc>),
H10(H10<Alloc, H10Buckets<Alloc>, H10DefaultParams>),
}
Variants§
Uninit
H2(BasicHasher<H2Sub<Alloc>>)
H3(BasicHasher<H3Sub<Alloc>>)
H4(BasicHasher<H4Sub<Alloc>>)
H54(BasicHasher<H54Sub<Alloc>>)
H5(AdvHasher<H5Sub, Alloc>)
H5q7(AdvHasher<HQ7Sub, Alloc>)
H5q5(AdvHasher<HQ5Sub, Alloc>)
H6(AdvHasher<H6Sub, Alloc>)
H9(H9<Alloc>)
H10(H10<Alloc, H10Buckets<Alloc>, H10DefaultParams>)
Implementations§
source§impl<Alloc: Allocator<u16> + Allocator<u32>> UnionHasher<Alloc>
impl<Alloc: Allocator<u16> + Allocator<u32>> UnionHasher<Alloc>
pub fn free(&mut self, alloc: &mut Alloc)
Trait Implementations§
source§impl<Alloc: Allocator<u16> + Allocator<u32>> AnyHasher for UnionHasher<Alloc>
impl<Alloc: Allocator<u16> + Allocator<u32>> AnyHasher for UnionHasher<Alloc>
fn Opts(&self) -> H9Opts
fn GetHasherCommon(&mut self) -> &mut Struct1
fn Prepare( &mut self, one_shot: bool, input_size: usize, data: &[u8], ) -> HowPrepared
fn HashBytes(&self, data: &[u8]) -> usize
fn HashTypeLength(&self) -> usize
fn StoreLookahead(&self) -> usize
fn PrepareDistanceCache(&self, distance_cache: &mut [i32])
fn StitchToPreviousBlock( &mut self, num_bytes: usize, position: usize, ringbuffer: &[u8], ringbuffer_mask: usize, )
fn FindLongestMatch( &mut self, dictionary: Option<&BrotliDictionary>, dictionary_hash: &[u16], data: &[u8], ring_buffer_mask: usize, distance_cache: &[i32], cur_ix: usize, max_length: usize, max_backward: usize, gap: usize, max_distance: usize, out: &mut HasherSearchResult, ) -> bool
fn Store(&mut self, data: &[u8], mask: usize, ix: usize)
fn StoreRange( &mut self, data: &[u8], mask: usize, ix_start: usize, ix_end: usize, )
fn BulkStoreRange( &mut self, data: &[u8], mask: usize, ix_start: usize, ix_end: usize, )
fn Store4Vec4(&mut self, data: &[u8], mask: usize, ix: usize)
fn StoreEvenVec4(&mut self, data: &[u8], mask: usize, ix: usize)
source§impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for UnionHasher<Alloc>
impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for UnionHasher<Alloc>
fn clone_with_alloc(&self, m: &mut Alloc) -> Self
Auto Trait Implementations§
impl<Alloc> Freeze for UnionHasher<Alloc>where
<Alloc as Allocator<u16>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u32>>::AllocatedMemory: Freeze,
impl<Alloc> RefUnwindSafe for UnionHasher<Alloc>where
<Alloc as Allocator<u16>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
impl<Alloc> Send for UnionHasher<Alloc>where
<Alloc as Allocator<u16>>::AllocatedMemory: Send,
<Alloc as Allocator<u32>>::AllocatedMemory: Send,
impl<Alloc> Sync for UnionHasher<Alloc>where
<Alloc as Allocator<u16>>::AllocatedMemory: Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Sync,
impl<Alloc> Unpin for UnionHasher<Alloc>where
<Alloc as Allocator<u16>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u32>>::AllocatedMemory: Unpin,
impl<Alloc> UnwindSafe for UnionHasher<Alloc>where
<Alloc as Allocator<u16>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: UnwindSafe,
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