[][src]Struct lzzzz::lz4f::PreferencesBuilder

pub struct PreferencesBuilder { /* fields omitted */ }

Builds a custom Preferences.

Example

use lzzzz::lz4f::{BlockSize, PreferencesBuilder, CLEVEL_MAX};

let pref = PreferencesBuilder::new()
    .block_size(BlockSize::Max1MB)
    .compression_level(CLEVEL_MAX)
    .build();

Implementations

impl PreferencesBuilder[src]

pub fn new() -> Self[src]

Creates a new PreferencesBuilder.

pub fn block_size(&mut self, block_size: BlockSize) -> &mut Self[src]

Sets the block size.

pub fn block_mode(&mut self, block_mode: BlockMode) -> &mut Self[src]

Sets the block mode.

pub fn content_checksum(&mut self, checksum: ContentChecksum) -> &mut Self[src]

Sets the content checksum.

pub fn dict_id(&mut self, dict_id: u32) -> &mut Self[src]

Sets the dictionary id.

pub fn block_checksum(&mut self, checksum: BlockChecksum) -> &mut Self[src]

Sets the block checksum.

pub fn compression_level(&mut self, level: i32) -> &mut Self[src]

Sets the compression level.

pub fn favor_dec_speed(&mut self, dec_speed: FavorDecSpeed) -> &mut Self[src]

Sets the decompression speed mode flag.

pub fn auto_flush(&mut self, auto_flush: AutoFlush) -> &mut Self[src]

Sets the auto flush mode flag.

pub const fn build(&self) -> Preferences[src]

Builds a Preferences with this configuration.

Trait Implementations

impl Clone for PreferencesBuilder[src]

impl Copy for PreferencesBuilder[src]

impl Debug for PreferencesBuilder[src]

impl Default for PreferencesBuilder[src]

impl Eq for PreferencesBuilder[src]

impl Hash for PreferencesBuilder[src]

impl PartialEq<PreferencesBuilder> for PreferencesBuilder[src]

impl StructuralEq for PreferencesBuilder[src]

impl StructuralPartialEq for PreferencesBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.