Struct brotli::writer::DecompressorWriterCustomAlloc [−][src]
pub struct DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>(_)
where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>;
Implementations
impl<W, BufferType, AllocU8, AllocU32, AllocHC> DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
impl<W, BufferType, AllocU8, AllocU32, AllocHC> DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
pub fn new(
w: W,
buffer: BufferType,
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>ⓘNotable traits for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>impl<W, BufferType, AllocU8, AllocU32, AllocHC> Write for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
Notable traits for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>
impl<W, BufferType, AllocU8, AllocU32, AllocHC> Write for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
pub fn new_with_custom_dictionary(
w: W,
buffer: BufferType,
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC,
dict: <AllocU8 as Allocator<u8>>::AllocatedMemory
) -> DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>ⓘNotable traits for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>impl<W, BufferType, AllocU8, AllocU32, AllocHC> Write for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
Notable traits for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>
impl<W, BufferType, AllocU8, AllocU32, AllocHC> Write for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
Trait Implementations
impl<W, BufferType, AllocU8, AllocU32, AllocHC> Write for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
impl<W, BufferType, AllocU8, AllocU32, AllocHC> Write for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
AllocHC: Allocator<HuffmanCode>,
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
🔬 This is a nightly-only experimental API. (
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
🔬 This is a nightly-only experimental API. (
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more