Struct brotli::enc::find_stride::EntropyBucketPopulation
source · pub struct EntropyBucketPopulation<AllocU32: Allocator<u32>> {
pub bucket_populations: AllocU32::AllocatedMemory,
pub cached_bit_entropy: floatY,
}
Fields§
§bucket_populations: AllocU32::AllocatedMemory
§cached_bit_entropy: floatY
Implementations§
source§impl<AllocU32: Allocator<u32>> EntropyBucketPopulation<AllocU32>
impl<AllocU32: Allocator<u32>> EntropyBucketPopulation<AllocU32>
pub fn new(m32: &mut AllocU32) -> Self
pub fn free(&mut self, m32: &mut AllocU32)
fn clone_from(&mut self, other: &EntropyBucketPopulation<AllocU32>)
fn add_assign(&mut self, other: &EntropyBucketPopulation<AllocU32>)
fn bzero(&mut self)
fn initiate_from( &mut self, rows: [&[Self]; 2], rows_stride: [&[u8]; 2], stride: u8, do_clear: bool, )
fn bit_cost_of_data_subset( &mut self, data0: &[u8], stride: u8, prev_bytes: [u8; 8], scratch: &mut EntropyBucketPopulation<AllocU32>, ) -> floatY
Trait Implementations§
source§impl<AllocU32: Allocator<u32>> Index<BucketPopIndex> for EntropyBucketPopulation<AllocU32>
impl<AllocU32: Allocator<u32>> Index<BucketPopIndex> for EntropyBucketPopulation<AllocU32>
source§impl<AllocU32: Allocator<u32>> IndexMut<BucketPopIndex> for EntropyBucketPopulation<AllocU32>
impl<AllocU32: Allocator<u32>> IndexMut<BucketPopIndex> for EntropyBucketPopulation<AllocU32>
Auto Trait Implementations§
impl<AllocU32> Freeze for EntropyBucketPopulation<AllocU32>
impl<AllocU32> RefUnwindSafe for EntropyBucketPopulation<AllocU32>
impl<AllocU32> Send for EntropyBucketPopulation<AllocU32>
impl<AllocU32> Sync for EntropyBucketPopulation<AllocU32>
impl<AllocU32> Unpin for EntropyBucketPopulation<AllocU32>
impl<AllocU32> UnwindSafe for EntropyBucketPopulation<AllocU32>
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