Struct lzma_rust::LZMA2Options
source · pub struct LZMA2Options {
pub dict_size: u32,
pub lc: u32,
pub lp: u32,
pub pb: u32,
pub mode: EncodeMode,
pub nice_len: u32,
pub mf: MFType,
pub depth_limit: i32,
pub preset_dict: Option<Vec<u8>>,
}
Fields§
§dict_size: u32
§lc: u32
§lp: u32
§pb: u32
§mode: EncodeMode
§nice_len: u32
§mf: MFType
§depth_limit: i32
§preset_dict: Option<Vec<u8>>
Implementations§
source§impl LZMA2Options
impl LZMA2Options
pub const LC_DEFAULT: u32 = 3u32
pub const LP_DEFAULT: u32 = 0u32
pub const PB_DEFAULT: u32 = 2u32
pub const NICE_LEN_MAX: u32 = 273u32
pub const NICE_LEN_MIN: u32 = 8u32
pub const DICT_SIZE_DEFAULT: u32 = 8_388_608u32
pub fn new( dict_size: u32, lc: u32, lp: u32, pb: u32, mode: EncodeMode, nice_len: u32, mf: MFType, depth_limit: i32, ) -> Self
sourcepub fn with_preset(preset: u32) -> Self
pub fn with_preset(preset: u32) -> Self
preset: [0..9]
sourcepub fn set_preset(&mut self, preset: u32)
pub fn set_preset(&mut self, preset: u32)
preset: [0..9]
pub fn get_memery_usage(&self) -> u32
pub fn get_props(&self) -> u8
Trait Implementations§
source§impl Clone for LZMA2Options
impl Clone for LZMA2Options
source§fn clone(&self) -> LZMA2Options
fn clone(&self) -> LZMA2Options
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 moresource§impl Debug for LZMA2Options
impl Debug for LZMA2Options
Auto Trait Implementations§
impl Freeze for LZMA2Options
impl RefUnwindSafe for LZMA2Options
impl Send for LZMA2Options
impl Sync for LZMA2Options
impl Unpin for LZMA2Options
impl UnwindSafe for LZMA2Options
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)