Struct compu::encoder::zlib::ZlibEncoder [−][src]
Zlib compressor
Zlib doesn’t have internal buffers so decoder can use own buffer to compensate, but it is not necessary
Trait Implementations
impl Drop for ZlibEncoder
[src]
impl Encoder for ZlibEncoder
[src]
const HAS_INTERNAL_BUFFER: bool
[src]
type Options = ZlibOptions
Encoder options
fn new(opts: &Self::Options) -> Self
[src]
fn encode(
&mut self,
input: &[u8],
output: &mut [u8],
op: EncoderOp
) -> (usize, usize, bool)
[src]
&mut self,
input: &[u8],
output: &mut [u8],
op: EncoderOp
) -> (usize, usize, bool)
fn output<'a>(&'a mut self) -> Option<&'a [u8]>
[src]
fn compress_size_hint(&self, _: usize) -> usize
[src]
fn is_finished(&self) -> bool
[src]
fn default() -> Self
[src]
impl Send for ZlibEncoder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ZlibEncoder
impl !Sync for ZlibEncoder
impl Unpin for ZlibEncoder
impl UnwindSafe for ZlibEncoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,