Enum brotli::enc::backward_references::UnionHasher

source ·
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>

source

pub fn free(&mut self, alloc: &mut Alloc)

Trait Implementations§

source§

impl<Alloc: Allocator<u16> + Allocator<u32>> AnyHasher for UnionHasher<Alloc>

source§

fn Opts(&self) -> H9Opts

source§

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

source§

fn Prepare( &mut self, one_shot: bool, input_size: usize, data: &[u8], ) -> HowPrepared

source§

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

source§

fn HashTypeLength(&self) -> usize

source§

fn StoreLookahead(&self) -> usize

source§

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

source§

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

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 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 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>> CloneWithAlloc<Alloc> for UnionHasher<Alloc>

source§

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

source§

impl<Alloc: Allocator<u16> + Allocator<u32>> Default for UnionHasher<Alloc>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<Alloc: Allocator<u16> + Allocator<u32>> PartialEq for UnionHasher<Alloc>

source§

fn eq(&self, other: &UnionHasher<Alloc>) -> bool

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

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

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

Auto Trait Implementations§

§

impl<Alloc> Freeze for UnionHasher<Alloc>

§

impl<Alloc> RefUnwindSafe for UnionHasher<Alloc>

§

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>

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>,

§

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>,

§

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.