#[non_exhaustive]pub struct WriterOptions {
pub target: ArchiveVersion,
pub features: FeatureSet,
pub compression_level: Option<u8>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target: ArchiveVersion§features: FeatureSet§compression_level: Option<u8>Implementations§
Source§impl WriterOptions
impl WriterOptions
pub const fn new(target: ArchiveVersion, features: FeatureSet) -> Self
pub const fn with_compression_level(self, level: u8) -> Self
Trait Implementations§
Source§impl Clone for WriterOptions
impl Clone for WriterOptions
Source§fn clone(&self) -> WriterOptions
fn clone(&self) -> WriterOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WriterOptions
impl Debug for WriterOptions
Source§impl Default for WriterOptions
impl Default for WriterOptions
Source§impl PartialEq for WriterOptions
impl PartialEq for WriterOptions
Source§fn eq(&self, other: &WriterOptions) -> bool
fn eq(&self, other: &WriterOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WriterOptions
impl Eq for WriterOptions
impl StructuralPartialEq for WriterOptions
Auto Trait Implementations§
impl Freeze for WriterOptions
impl RefUnwindSafe for WriterOptions
impl Send for WriterOptions
impl Sync for WriterOptions
impl Unpin for WriterOptions
impl UnsafeUnpin for WriterOptions
impl UnwindSafe for WriterOptions
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