Struct brotli::writer::DecompressorWriterCustomAlloc
[−]
[src]
pub struct DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>(_)
where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write;
Methods
impl<W, BufferType, AllocU8, AllocU32, AllocHC> DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
[src]
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
fn new(
w: W,
buffer: BufferType,
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>
w: W,
buffer: BufferType,
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC>
Trait Implementations
impl<W, BufferType, AllocU8, AllocU32, AllocHC> Write for DecompressorWriterCustomAlloc<W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
[src]
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: Write,
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<(), Error>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0
Creates a "by reference" adaptor for this instance of Write
. Read more