#[repr(i32)]pub enum ShuffleMode {
None = 0,
Byte = 1,
Bit = 2,
}Expand description
Controls Blosc’s shuffle operation.
The Shuffle operation is the key to efficiently compressing arrays. It
rearranges the array to put every entry’s MSB together and every entry’s LSB
together, which improves the performance of every Compressor.
Variants§
None = 0
No shuffle. Use this mode for data that is not an array.
Byte = 1
Byte shuffle. Use this mode for most arrays.
Bit = 2
Bit shuffle.
This is similar to the Byte shuffle, but works bit-by-bit instead of
byte-by-byte. It gives better compression for most datasets, but runs a
little slower. Use it when compressing numeric data if higher
compression is desired.
Trait Implementations§
Source§impl Clone for ShuffleMode
impl Clone for ShuffleMode
Source§fn clone(&self) -> ShuffleMode
fn clone(&self) -> ShuffleMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShuffleMode
impl Debug for ShuffleMode
Source§impl PartialEq for ShuffleMode
impl PartialEq for ShuffleMode
impl Copy for ShuffleMode
impl Eq for ShuffleMode
impl StructuralPartialEq for ShuffleMode
Auto Trait Implementations§
impl Freeze for ShuffleMode
impl RefUnwindSafe for ShuffleMode
impl Send for ShuffleMode
impl Sync for ShuffleMode
impl Unpin for ShuffleMode
impl UnwindSafe for ShuffleMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)