Struct brotli::enc::backward_references::hash_to_binary_tree::ZopfliNode
source · pub struct ZopfliNode {
pub length: u32,
pub distance: u32,
pub dcode_insert_length: u32,
pub u: Union1,
}
Fields§
§length: u32
§distance: u32
§dcode_insert_length: u32
§u: Union1
Implementations§
source§impl ZopfliNode
impl ZopfliNode
fn copy_length(&self) -> u32
fn copy_distance(&self) -> u32
fn length_code(&self) -> u32
fn distance_code(&self) -> u32
source§impl ZopfliNode
impl ZopfliNode
fn command_length(&self) -> u32
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<ZopfliNode> 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<ZopfliNode> for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>
type AllocatedMemory = <AllocZopfliNode as Allocator<ZopfliNode>>::AllocatedMemory
fn alloc_cell( &mut self, size: usize, ) -> <Self as Allocator<ZopfliNode>>::AllocatedMemory
fn free_cell(&mut self, data: <Self as Allocator<ZopfliNode>>::AllocatedMemory)
source§impl Clone for ZopfliNode
impl Clone for ZopfliNode
source§fn clone(&self) -> ZopfliNode
fn clone(&self) -> ZopfliNode
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 Debug for ZopfliNode
impl Debug for ZopfliNode
source§impl Default for ZopfliNode
impl Default for ZopfliNode
impl Copy for ZopfliNode
Auto Trait Implementations§
impl Freeze for ZopfliNode
impl RefUnwindSafe for ZopfliNode
impl Send for ZopfliNode
impl Sync for ZopfliNode
impl Unpin for ZopfliNode
impl UnwindSafe for ZopfliNode
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