Struct lz4::EncoderBuilder
source · [−]pub struct EncoderBuilder { /* private fields */ }Implementations
sourceimpl EncoderBuilder
impl EncoderBuilder
pub fn new() -> Self
pub fn block_size(&mut self, block_size: BlockSize) -> &mut Self
pub fn block_mode(&mut self, block_mode: BlockMode) -> &mut Self
pub fn checksum(&mut self, checksum: ContentChecksum) -> &mut Self
pub fn level(&mut self, level: u32) -> &mut Self
pub fn auto_flush(&mut self, auto_flush: bool) -> &mut Self
sourcepub fn favor_dec_speed(&mut self, favor_dec_speed: bool) -> &mut Self
pub fn favor_dec_speed(&mut self, favor_dec_speed: bool) -> &mut Self
Favor decompression speed over compression ratio. Requires compression level >=10.
pub fn build<W: Write>(&self, w: W) -> Result<Encoder<W>>
Trait Implementations
sourceimpl Clone for EncoderBuilder
impl Clone for EncoderBuilder
sourcefn clone(&self) -> EncoderBuilder
fn clone(&self) -> EncoderBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for EncoderBuilder
impl Send for EncoderBuilder
impl Sync for EncoderBuilder
impl Unpin for EncoderBuilder
impl UnwindSafe for EncoderBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more