Struct lz4::EncoderBuilder
source · pub struct EncoderBuilder { /* private fields */ }
Implementations§
source§impl 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§
source§impl Clone for EncoderBuilder
impl Clone for EncoderBuilder
source§fn clone(&self) -> EncoderBuilder
fn clone(&self) -> EncoderBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for EncoderBuilder
impl Send for EncoderBuilder
impl Sync for EncoderBuilder
impl Unpin for EncoderBuilder
impl UnwindSafe for EncoderBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more