pub struct CompressionSettings {
pub algorithm: CompressionAlgorithm,
pub level: u32,
}Expand description
Compression settings for a dataset.
Fields§
§algorithm: CompressionAlgorithmWhich algorithm to use.
level: u32Compression level (0-9, higher = more compression).
Implementations§
Source§impl CompressionSettings
impl CompressionSettings
Sourcepub fn delta_encode_f64(data: &[f64]) -> Vec<f64>
pub fn delta_encode_f64(data: &[f64]) -> Vec<f64>
Apply delta encoding to f64 data.
Sourcepub fn delta_decode_f64(encoded: &[f64]) -> Vec<f64>
pub fn delta_decode_f64(encoded: &[f64]) -> Vec<f64>
Decode delta-encoded f64 data.
Sourcepub fn delta_encode_i32(data: &[i32]) -> Vec<i32>
pub fn delta_encode_i32(data: &[i32]) -> Vec<i32>
Apply delta encoding to i32 data.
Sourcepub fn delta_decode_i32(encoded: &[i32]) -> Vec<i32>
pub fn delta_decode_i32(encoded: &[i32]) -> Vec<i32>
Decode delta-encoded i32 data.
Trait Implementations§
Source§impl Clone for CompressionSettings
impl Clone for CompressionSettings
Source§fn clone(&self) -> CompressionSettings
fn clone(&self) -> CompressionSettings
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 moreAuto Trait Implementations§
impl Freeze for CompressionSettings
impl RefUnwindSafe for CompressionSettings
impl Send for CompressionSettings
impl Sync for CompressionSettings
impl Unpin for CompressionSettings
impl UnsafeUnpin for CompressionSettings
impl UnwindSafe for CompressionSettings
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§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.