pub struct HistogramDistance {
pub data_: [u32; 544],
pub total_count_: usize,
pub bit_cost_: floatX,
}
Fields
data_: [u32; 544]
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<HistogramDistance> 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<HistogramDistance> for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>
type AllocatedMemory = AllocHistogramDistance::AllocatedMemory
fn alloc_cell(
&mut self,
size: usize
) -> <Self as Allocator<HistogramDistance>>::AllocatedMemory
fn free_cell(
&mut self,
data: <Self as Allocator<HistogramDistance>>::AllocatedMemory
)
sourceimpl Clone for HistogramDistance
impl Clone for HistogramDistance
sourcefn clone(&self) -> HistogramDistance
fn clone(&self) -> HistogramDistance
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 more
sourceimpl CostAccessors for HistogramDistance
impl CostAccessors for HistogramDistance
type i32vec = HistogramDistanceScratch
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 HistogramDistance
impl Default for HistogramDistance
sourcefn default() -> HistogramDistance
fn default() -> HistogramDistance
Returns the “default value” for a type. Read more
sourceimpl SliceWrapper<u32> for HistogramDistance
impl SliceWrapper<u32> for HistogramDistance
sourceimpl SliceWrapperMut<u32> for HistogramDistance
impl SliceWrapperMut<u32> for HistogramDistance
Auto Trait Implementations
impl RefUnwindSafe for HistogramDistance
impl Send for HistogramDistance
impl Sync for HistogramDistance
impl Unpin for HistogramDistance
impl UnwindSafe for HistogramDistance
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more