pub struct BrotliEncoderStateStruct<Alloc: BrotliAlloc> {Show 40 fields
pub params: BrotliEncoderParams,
pub m8: Alloc,
pub hasher_: UnionHasher<Alloc>,
pub input_pos_: u64,
pub ringbuffer_: RingBuffer<Alloc>,
pub cmd_alloc_size_: usize,
pub commands_: <Alloc as Allocator<Command>>::AllocatedMemory,
pub num_commands_: usize,
pub num_literals_: usize,
pub last_insert_len_: usize,
pub last_flush_pos_: u64,
pub last_processed_pos_: u64,
pub dist_cache_: [i32; 16],
pub saved_dist_cache_: [i32; 4],
pub last_bytes_: u16,
pub last_bytes_bits_: u8,
pub prev_byte_: u8,
pub prev_byte2_: u8,
pub storage_size_: usize,
pub storage_: <Alloc as Allocator<u8>>::AllocatedMemory,
pub small_table_: [i32; 1024],
pub large_table_: <Alloc as Allocator<i32>>::AllocatedMemory,
pub cmd_depths_: [u8; 128],
pub cmd_bits_: [u16; 128],
pub cmd_code_: [u8; 512],
pub cmd_code_numbits_: usize,
pub command_buf_: <Alloc as Allocator<u32>>::AllocatedMemory,
pub literal_buf_: <Alloc as Allocator<u8>>::AllocatedMemory,
pub available_out_: usize,
pub total_out_: u64,
pub tiny_buf_: [u8; 16],
pub remaining_metadata_bytes_: u32,
pub stream_state_: BrotliEncoderStreamState,
pub is_last_block_emitted_: bool,
pub is_initialized_: bool,
pub is_first_mb: IsFirst,
pub literal_scratch_space: <HistogramLiteral as CostAccessors>::i32vec,
pub command_scratch_space: <HistogramCommand as CostAccessors>::i32vec,
pub distance_scratch_space: <HistogramDistance as CostAccessors>::i32vec,
pub recoder_state: RecoderState,
/* private fields */
}Fields
params: BrotliEncoderParamsm8: Allochasher_: UnionHasher<Alloc>input_pos_: u64ringbuffer_: RingBuffer<Alloc>cmd_alloc_size_: usizecommands_: <Alloc as Allocator<Command>>::AllocatedMemorynum_commands_: usizenum_literals_: usizelast_insert_len_: usizelast_flush_pos_: u64last_processed_pos_: u64dist_cache_: [i32; 16]saved_dist_cache_: [i32; 4]last_bytes_: u16last_bytes_bits_: u8prev_byte_: u8prev_byte2_: u8storage_size_: usizestorage_: <Alloc as Allocator<u8>>::AllocatedMemorysmall_table_: [i32; 1024]large_table_: <Alloc as Allocator<i32>>::AllocatedMemorycmd_depths_: [u8; 128]cmd_bits_: [u16; 128]cmd_code_: [u8; 512]cmd_code_numbits_: usizecommand_buf_: <Alloc as Allocator<u32>>::AllocatedMemoryliteral_buf_: <Alloc as Allocator<u8>>::AllocatedMemoryavailable_out_: usizetotal_out_: u64tiny_buf_: [u8; 16]remaining_metadata_bytes_: u32stream_state_: BrotliEncoderStreamStateis_last_block_emitted_: boolis_initialized_: boolis_first_mb: IsFirstliteral_scratch_space: <HistogramLiteral as CostAccessors>::i32veccommand_scratch_space: <HistogramCommand as CostAccessors>::i32vecdistance_scratch_space: <HistogramDistance as CostAccessors>::i32vecrecoder_state: RecoderStateAuto Trait Implementations
impl<Alloc> RefUnwindSafe for BrotliEncoderStateStruct<Alloc> where
Alloc: RefUnwindSafe,
<Alloc as Allocator<Command>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<i32>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u16>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u8>>::AllocatedMemory: RefUnwindSafe,
impl<Alloc> Send for BrotliEncoderStateStruct<Alloc> where
Alloc: Send,
<Alloc as Allocator<Command>>::AllocatedMemory: Send,
<Alloc as Allocator<i32>>::AllocatedMemory: Send,
<Alloc as Allocator<u16>>::AllocatedMemory: Send,
<Alloc as Allocator<u32>>::AllocatedMemory: Send,
<Alloc as Allocator<u8>>::AllocatedMemory: Send,
impl<Alloc> Sync for BrotliEncoderStateStruct<Alloc> where
Alloc: Sync,
<Alloc as Allocator<Command>>::AllocatedMemory: Sync,
<Alloc as Allocator<i32>>::AllocatedMemory: Sync,
<Alloc as Allocator<u16>>::AllocatedMemory: Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: Sync,
impl<Alloc> Unpin for BrotliEncoderStateStruct<Alloc> where
Alloc: Unpin,
<Alloc as Allocator<Command>>::AllocatedMemory: Unpin,
<Alloc as Allocator<i32>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u16>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u32>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u8>>::AllocatedMemory: Unpin,
impl<Alloc> UnwindSafe for BrotliEncoderStateStruct<Alloc> where
Alloc: UnwindSafe,
<Alloc as Allocator<Command>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<i32>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u16>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u8>>::AllocatedMemory: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more