Struct brotli::enc::backward_references::BrotliHasherParams
source · pub struct BrotliHasherParams {
pub type_: i32,
pub bucket_bits: i32,
pub block_bits: i32,
pub hash_len: i32,
pub num_last_distances_to_check: i32,
pub literal_byte_score: i32,
}
Fields§
§type_: i32
type of hasher to use (default: type 6, but others have tradeoffs of speed/memory)
bucket_bits: i32
number of the number of buckets to have in the hash table (defaults to quality - 1)
block_bits: i32
number of potential matches to hold per bucket (hash collisions)
hash_len: i32
number of bytes of a potential match to hash
num_last_distances_to_check: i32
number of previous distance matches to check for future matches (defaults to 16)
literal_byte_score: i32
how much to weigh distance vs an extra byte of copy match when comparing possible copy srcs
Trait Implementations§
source§impl Clone for BrotliHasherParams
impl Clone for BrotliHasherParams
source§fn clone(&self) -> BrotliHasherParams
fn clone(&self) -> BrotliHasherParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BrotliHasherParams
impl Debug for BrotliHasherParams
source§impl PartialEq for BrotliHasherParams
impl PartialEq for BrotliHasherParams
source§fn eq(&self, other: &BrotliHasherParams) -> bool
fn eq(&self, other: &BrotliHasherParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BrotliHasherParams
impl StructuralPartialEq for BrotliHasherParams
Auto Trait Implementations§
impl Freeze for BrotliHasherParams
impl RefUnwindSafe for BrotliHasherParams
impl Send for BrotliHasherParams
impl Sync for BrotliHasherParams
impl Unpin for BrotliHasherParams
impl UnwindSafe for BrotliHasherParams
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)