Struct brotli::enc::backward_references::BasicHasher
source · pub struct BasicHasher<Buckets: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> {
pub GetHasherCommon: Struct1,
pub buckets_: Buckets,
pub h9_opts: H9Opts,
}
Fields§
§GetHasherCommon: Struct1
§buckets_: Buckets
§h9_opts: H9Opts
Trait Implementations§
source§impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher for BasicHasher<T>
impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher for BasicHasher<T>
fn Opts(&self) -> H9Opts
fn PrepareDistanceCache(&self, distance_cache: &mut [i32])
fn HashTypeLength(&self) -> usize
fn StoreLookahead(&self) -> usize
fn StitchToPreviousBlock( &mut self, num_bytes: usize, position: usize, ringbuffer: &[u8], ringbuffer_mask: usize, )
fn GetHasherCommon(&mut self) -> &mut Struct1
fn HashBytes(&self, data: &[u8]) -> usize
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 Prepare( &mut self, one_shot: bool, input_size: usize, data: &[u8], ) -> HowPrepared
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 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 BasicHasher<H2Sub<Alloc>>
impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for BasicHasher<H2Sub<Alloc>>
fn clone_with_alloc(&self, m: &mut Alloc) -> Self
source§impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for BasicHasher<H3Sub<Alloc>>
impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for BasicHasher<H3Sub<Alloc>>
fn clone_with_alloc(&self, m: &mut Alloc) -> Self
source§impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for BasicHasher<H4Sub<Alloc>>
impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for BasicHasher<H4Sub<Alloc>>
fn clone_with_alloc(&self, m: &mut Alloc) -> Self
source§impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for BasicHasher<H54Sub<Alloc>>
impl<Alloc: Allocator<u16> + Allocator<u32>> CloneWithAlloc<Alloc> for BasicHasher<H54Sub<Alloc>>
fn clone_with_alloc(&self, m: &mut Alloc) -> Self
source§impl<A: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> PartialEq for BasicHasher<A>
impl<A: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> PartialEq for BasicHasher<A>
Auto Trait Implementations§
impl<Buckets> Freeze for BasicHasher<Buckets>where
Buckets: Freeze,
impl<Buckets> RefUnwindSafe for BasicHasher<Buckets>where
Buckets: RefUnwindSafe,
impl<Buckets> Send for BasicHasher<Buckets>where
Buckets: Send,
impl<Buckets> Sync for BasicHasher<Buckets>where
Buckets: Sync,
impl<Buckets> Unpin for BasicHasher<Buckets>where
Buckets: Unpin,
impl<Buckets> UnwindSafe for BasicHasher<Buckets>where
Buckets: 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