pub struct GzipLevel(/* private fields */);
Expand description
Represents a valid gzip compression level.
Defaults to 6.
- 0: least compression
- 9: most compression (that other software can read)
- 10: most compression (incompatible with other software, see below)
§WARNING:
Level 10 compression can offer smallest file size, but Parquet files created with it will not be readable by other “standard” paquet readers.
Do NOT use level 10 if you need other software to be able to read the files. Read below for details.
§IMPORTANT:
There’s often confusion about the compression levels in flate2
vs arrow
as highlighted in issue #1011.
flate2
supports two compression backends: miniz_oxide
and zlib
.
zlib
supports levels from 0 to 9.miniz_oxide
supports levels from 0 to 10.
arrow
uses flate
with rust_backend
feature,
which provides miniz_oxide
as the backend.
Therefore 0-10 levels are supported.
flate2
documents this behavior properly with
this commit.
Implementations§
Trait Implementations§
impl Copy for GzipLevel
impl Eq for GzipLevel
impl StructuralPartialEq for GzipLevel
Auto Trait Implementations§
impl Freeze for GzipLevel
impl RefUnwindSafe for GzipLevel
impl Send for GzipLevel
impl Sync for GzipLevel
impl Unpin for GzipLevel
impl UnwindSafe for GzipLevel
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)