[−][src]Struct rocks::advanced_options::CompressionOptions
Compression options for different compression algorithms like Zlib
Fields
window_bits: c_int
level: c_int
strategy: c_int
max_dict_bytes: u32
Maximum size of dictionary used to prime the compression library. Currently this dictionary will be constructed by sampling the first output file in a subcompaction when the target level is bottommost. This dictionary will be loaded into the compression library before compressing/uncompressing each data block of subsequent files in the subcompaction. Effectively, this improves compression ratios when there are repetitions across data blocks. A value of 0 indicates the feature is disabled. Default: 0.
Methods
impl CompressionOptions
[src]
pub fn new(
wbits: c_int,
lev: c_int,
strategy: c_int,
max_dict_bytes: u32
) -> CompressionOptions
[src]
wbits: c_int,
lev: c_int,
strategy: c_int,
max_dict_bytes: u32
) -> CompressionOptions
Trait Implementations
impl Default for CompressionOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompressionOptions
impl Send for CompressionOptions
impl Sync for CompressionOptions
impl Unpin for CompressionOptions
impl UnwindSafe for CompressionOptions
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,
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.
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>,