pub struct XzOptions {
pub level: Option<u32>,
pub check_type: XzCheckType,
}Expand description
XZ option metadata.
Fields§
§level: Option<u32>Numeric xz preset level, when specified by the caller.
check_type: XzCheckTypeIntegrity check type label.
Implementations§
Source§impl XzOptions
impl XzOptions
Sourcepub const fn with_level(self, level: u32) -> XzOptions
pub const fn with_level(self, level: u32) -> XzOptions
Adds a numeric preset level label.
Sourcepub const fn with_check_type(self, check_type: XzCheckType) -> XzOptions
pub const fn with_check_type(self, check_type: XzCheckType) -> XzOptions
Sets the integrity check type label.
Trait Implementations§
Source§impl Ord for XzOptions
impl Ord for XzOptions
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for XzOptions
impl PartialOrd for XzOptions
impl Copy for XzOptions
impl Eq for XzOptions
impl StructuralPartialEq for XzOptions
Auto Trait Implementations§
impl Freeze for XzOptions
impl RefUnwindSafe for XzOptions
impl Send for XzOptions
impl Sync for XzOptions
impl Unpin for XzOptions
impl UnsafeUnpin for XzOptions
impl UnwindSafe for XzOptions
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