pub struct H10<AllocU32: Allocator<u32>, Buckets, Params: H10Params>
where Buckets: PartialEq<Buckets> + Allocable<u32, AllocU32> + SliceWrapperMut<u32> + SliceWrapper<u32>,
{ pub window_mask_: usize, pub common: Struct1, pub buckets_: Buckets, pub invalid_pos_: u32, pub forest: AllocU32::AllocatedMemory, pub _params: PhantomData<Params>, }

Fields§

§window_mask_: usize§common: Struct1§buckets_: Buckets§invalid_pos_: u32§forest: AllocU32::AllocatedMemory§_params: PhantomData<Params>

Implementations§

source§

impl<AllocU32: Allocator<u32>, Buckets, Params: H10Params> H10<AllocU32, Buckets, Params>
where Buckets: PartialEq<Buckets> + Allocable<u32, AllocU32> + SliceWrapperMut<u32> + SliceWrapper<u32>,

source

pub fn free(&mut self, m32: &mut AllocU32)

Trait Implementations§

source§

impl<AllocU32: Allocator<u32>, Buckets, Params: H10Params> AnyHasher for H10<AllocU32, Buckets, Params>
where Buckets: PartialEq<Buckets> + Allocable<u32, AllocU32> + SliceWrapperMut<u32> + SliceWrapper<u32>,

source§

fn Opts(&self) -> H9Opts

source§

fn PrepareDistanceCache(&self, _distance_cache: &mut [i32])

source§

fn HashTypeLength(&self) -> usize

source§

fn StoreLookahead(&self) -> usize

source§

fn StitchToPreviousBlock( &mut self, num_bytes: usize, position: usize, ringbuffer: &[u8], ringbuffer_mask: usize, )

source§

fn GetHasherCommon(&mut self) -> &mut Struct1

source§

fn HashBytes(&self, data: &[u8]) -> usize

source§

fn Store(&mut self, data: &[u8], mask: usize, ix: usize)

source§

fn StoreRange( &mut self, data: &[u8], mask: usize, ix_start: usize, ix_end: usize, )

source§

fn BulkStoreRange( &mut self, data: &[u8], mask: usize, ix_start: usize, ix_end: usize, )

source§

fn Prepare( &mut self, _one_shot: bool, _input_size: usize, _data: &[u8], ) -> HowPrepared

source§

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

source§

fn Store4Vec4(&mut self, data: &[u8], mask: usize, ix: usize)

source§

fn StoreEvenVec4(&mut self, data: &[u8], mask: usize, ix: usize)

source§

impl<Alloc: Allocator<u16> + Allocator<u32>, Buckets, Params: H10Params> CloneWithAlloc<Alloc> for H10<Alloc, Buckets, Params>
where Buckets: PartialEq<Buckets> + Allocable<u32, Alloc> + SliceWrapperMut<u32> + SliceWrapper<u32>,

source§

fn clone_with_alloc(&self, m: &mut Alloc) -> Self

source§

impl<AllocU32: Allocator<u32>, Buckets, Params: H10Params> PartialEq for H10<AllocU32, Buckets, Params>
where Buckets: PartialEq<Buckets> + Allocable<u32, AllocU32> + SliceWrapperMut<u32> + SliceWrapper<u32>,

source§

fn eq(&self, other: &H10<AllocU32, Buckets, Params>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl<AllocU32, Buckets, Params> Freeze for H10<AllocU32, Buckets, Params>
where Buckets: Freeze, <AllocU32 as Allocator<u32>>::AllocatedMemory: Freeze,

§

impl<AllocU32, Buckets, Params> RefUnwindSafe for H10<AllocU32, Buckets, Params>
where Buckets: RefUnwindSafe, <AllocU32 as Allocator<u32>>::AllocatedMemory: RefUnwindSafe, Params: RefUnwindSafe,

§

impl<AllocU32, Buckets, Params> Send for H10<AllocU32, Buckets, Params>
where Buckets: Send, <AllocU32 as Allocator<u32>>::AllocatedMemory: Send, Params: Send,

§

impl<AllocU32, Buckets, Params> Sync for H10<AllocU32, Buckets, Params>
where Buckets: Sync, <AllocU32 as Allocator<u32>>::AllocatedMemory: Sync, Params: Sync,

§

impl<AllocU32, Buckets, Params> Unpin for H10<AllocU32, Buckets, Params>
where Buckets: Unpin, <AllocU32 as Allocator<u32>>::AllocatedMemory: Unpin, Params: Unpin,

§

impl<AllocU32, Buckets, Params> UnwindSafe for H10<AllocU32, Buckets, Params>
where Buckets: UnwindSafe, <AllocU32 as Allocator<u32>>::AllocatedMemory: UnwindSafe, Params: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.