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
sourceimpl<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
)
sourceimpl Clone for HistogramLiteral
impl Clone for HistogramLiteral
sourcefn clone(&self) -> HistogramLiteral
fn clone(&self) -> HistogramLiteral
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl CostAccessors for HistogramLiteral
impl CostAccessors for HistogramLiteral
type i32vec = EmptyIVec
fn make_nnz_storage() -> Self::i32vec
fn total_count(&self) -> usize
fn bit_cost(&self) -> floatX
fn set_bit_cost(&mut self, data: floatX)
fn set_total_count(&mut self, data: usize)
sourceimpl Default for HistogramLiteral
impl Default for HistogramLiteral
sourcefn default() -> HistogramLiteral
fn default() -> HistogramLiteral
Returns the “default value” for a type. Read more
sourceimpl SliceWrapper<u32> for HistogramLiteral
impl SliceWrapper<u32> for HistogramLiteral
sourceimpl SliceWrapperMut<u32> for HistogramLiteral
impl SliceWrapperMut<u32> for HistogramLiteral
Auto Trait Implementations
impl RefUnwindSafe for HistogramLiteral
impl Send for HistogramLiteral
impl Sync for HistogramLiteral
impl Unpin for HistogramLiteral
impl UnwindSafe for HistogramLiteral
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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