pub struct LzipOptions {
pub lzma_options: LzmaOptions,
pub member_size: Option<NonZeroU64>,
}
Available on crate features
encoder
and lzip
only.Expand description
Options for LZIP compression.
Fields§
§lzma_options: LzmaOptions
LZMA compression options (will be overridden partially to use LZMA-302eos defaults).
member_size: Option<NonZeroU64>
The maximal size of a member. If not set, the whole data will be written in one member. Will get clamped to be at least the dict size to not waste memory.
Implementations§
Source§impl LzipOptions
impl LzipOptions
Sourcepub fn with_preset(preset: u32) -> Self
pub fn with_preset(preset: u32) -> Self
Create options with specific preset.
Sourcepub fn set_member_size(&mut self, member_size: Option<NonZeroU64>)
pub fn set_member_size(&mut self, member_size: Option<NonZeroU64>)
Set the maximum member size (None means a single member, which is the default).
Trait Implementations§
Source§impl Clone for LzipOptions
impl Clone for LzipOptions
Source§fn clone(&self) -> LzipOptions
fn clone(&self) -> LzipOptions
Returns a duplicate 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 moreSource§impl Debug for LzipOptions
impl Debug for LzipOptions
Source§impl Default for LzipOptions
impl Default for LzipOptions
Source§fn default() -> LzipOptions
fn default() -> LzipOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LzipOptions
impl RefUnwindSafe for LzipOptions
impl Send for LzipOptions
impl Sync for LzipOptions
impl Unpin for LzipOptions
impl UnwindSafe for LzipOptions
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