pub struct BlockEncoder<'a, Alloc: Allocator<u8> + Allocator<u16>> {
pub histogram_length_: usize,
pub num_block_types_: usize,
pub block_types_: &'a [u8],
pub block_lengths_: &'a [u32],
pub num_blocks_: usize,
pub block_split_code_: BlockSplitCode,
pub block_ix_: usize,
pub block_len_: usize,
pub entropy_ix_: usize,
pub depths_: <Alloc as Allocator<u8>>::AllocatedMemory,
pub bits_: <Alloc as Allocator<u16>>::AllocatedMemory,
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.