Struct brotli::enc::histogram::HistogramLiteral
source · pub struct HistogramLiteral {
pub data_: [u32; 256],
pub total_count_: usize,
pub bit_cost_: floatX,
}
Fields§
§data_: [u32; 256]
§total_count_: usize
§bit_cost_: floatX
Trait Implementations§
source§impl<AllocU8: Allocator<u8>, AllocU16: Allocator<u16>, AllocI32: Allocator<i32>, AllocU32: Allocator<u32>, AllocU64: Allocator<u64>, AllocCommand: Allocator<Command>, AllocFloatX: Allocator<floatX>, AllocV8: Allocator<v8>, AllocS16: Allocator<s16>, AllocPDF: Allocator<PDF>, AllocStaticCommand: Allocator<StaticCommand>, AllocHistogramLiteral: Allocator<HistogramLiteral>, AllocHistogramCommand: Allocator<HistogramCommand>, AllocHistogramDistance: Allocator<HistogramDistance>, AllocHistogramPair: Allocator<HistogramPair>, AllocContextType: Allocator<ContextType>, AllocHuffmanTree: Allocator<HuffmanTree>, AllocZopfliNode: Allocator<ZopfliNode>> Allocator<HistogramLiteral> for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>
impl<AllocU8: Allocator<u8>, AllocU16: Allocator<u16>, AllocI32: Allocator<i32>, AllocU32: Allocator<u32>, AllocU64: Allocator<u64>, AllocCommand: Allocator<Command>, AllocFloatX: Allocator<floatX>, AllocV8: Allocator<v8>, AllocS16: Allocator<s16>, AllocPDF: Allocator<PDF>, AllocStaticCommand: Allocator<StaticCommand>, AllocHistogramLiteral: Allocator<HistogramLiteral>, AllocHistogramCommand: Allocator<HistogramCommand>, AllocHistogramDistance: Allocator<HistogramDistance>, AllocHistogramPair: Allocator<HistogramPair>, AllocContextType: Allocator<ContextType>, AllocHuffmanTree: Allocator<HuffmanTree>, AllocZopfliNode: Allocator<ZopfliNode>> Allocator<HistogramLiteral> for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>
type AllocatedMemory = <AllocHistogramLiteral as Allocator<HistogramLiteral>>::AllocatedMemory
fn alloc_cell( &mut self, size: usize ) -> <Self as Allocator<HistogramLiteral>>::AllocatedMemory
fn free_cell( &mut self, data: <Self as Allocator<HistogramLiteral>>::AllocatedMemory )
source§impl Clone for HistogramLiteral
impl Clone for HistogramLiteral
source§fn clone(&self) -> HistogramLiteral
fn clone(&self) -> HistogramLiteral
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 CostAccessors for HistogramLiteral
impl CostAccessors for HistogramLiteral
source§impl Default for HistogramLiteral
impl Default for HistogramLiteral
source§fn default() -> HistogramLiteral
fn default() -> HistogramLiteral
Returns the “default value” for a type. Read more
source§impl SliceWrapper<u32> for HistogramLiteral
impl SliceWrapper<u32> for HistogramLiteral
source§impl SliceWrapperMut<u32> for HistogramLiteral
impl SliceWrapperMut<u32> for HistogramLiteral
Auto Trait Implementations§
impl Freeze for HistogramLiteral
impl RefUnwindSafe for HistogramLiteral
impl Send for HistogramLiteral
impl Sync for HistogramLiteral
impl Unpin for HistogramLiteral
impl UnwindSafe for HistogramLiteral
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