Struct libflate::lz77::NoCompressionLz77Encoder [−][src]
A no compression implementation of LZ77Encode
trait.
Implementations
impl NoCompressionLz77Encoder
[src]
pub fn new() -> NoCompressionLz77Encoder
[src]
Makes a new encoder instance.
Examples
use libflate::deflate; use libflate::lz77::{Lz77Encode, NoCompressionLz77Encoder, CompressionLevel}; let lz77 = NoCompressionLz77Encoder::new(); assert_eq!(lz77.compression_level(), CompressionLevel::None); let options = deflate::EncodeOptions::with_lz77(lz77); let _deflate = deflate::Encoder::with_options(Vec::new(), options);
Trait Implementations
impl Debug for NoCompressionLz77Encoder
[src]
impl Default for NoCompressionLz77Encoder
[src]
pub fn default() -> NoCompressionLz77Encoder
[src]
impl Lz77Encode for NoCompressionLz77Encoder
[src]
pub fn encode<S>(&mut self, buf: &[u8], sink: S) where
S: Sink,
[src]
S: Sink,
pub fn flush<S>(&mut self, sink: S) where
S: Sink,
[src]
S: Sink,
pub fn compression_level(&self) -> CompressionLevel
[src]
pub fn window_size(&self) -> u16
[src]
Auto Trait Implementations
impl RefUnwindSafe for NoCompressionLz77Encoder
impl Send for NoCompressionLz77Encoder
impl Sync for NoCompressionLz77Encoder
impl Unpin for NoCompressionLz77Encoder
impl UnwindSafe for NoCompressionLz77Encoder
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>,