pub struct ChunkOptions {
pub chunk_dims: Option<Vec<u64>>,
pub deflate_level: Option<u32>,
pub shuffle: bool,
pub fletcher32: bool,
}Expand description
Options for chunked dataset creation.
Fields§
§chunk_dims: Option<Vec<u64>>Chunk dimensions (one per dataset dimension).
deflate_level: Option<u32>Deflate compression level (0-9), None = no deflate.
shuffle: boolWhether to apply shuffle filter before compression.
fletcher32: boolWhether to apply fletcher32 checksum.
Implementations§
Source§impl ChunkOptions
impl ChunkOptions
Sourcepub fn is_chunked(&self) -> bool
pub fn is_chunked(&self) -> bool
Whether any chunking option is enabled.
Sourcepub fn build_pipeline(&self, element_size: u32) -> Option<FilterPipeline>
pub fn build_pipeline(&self, element_size: u32) -> Option<FilterPipeline>
Build a FilterPipeline from the options.
Sourcepub fn resolve_chunk_dims(&self, shape: &[u64]) -> Vec<u64>
pub fn resolve_chunk_dims(&self, shape: &[u64]) -> Vec<u64>
Determine chunk dimensions, using user-specified or auto-computing.
Trait Implementations§
Source§impl Clone for ChunkOptions
impl Clone for ChunkOptions
Source§fn clone(&self) -> ChunkOptions
fn clone(&self) -> ChunkOptions
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 ChunkOptions
impl Debug for ChunkOptions
Source§impl Default for ChunkOptions
impl Default for ChunkOptions
Source§fn default() -> ChunkOptions
fn default() -> ChunkOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChunkOptions
impl RefUnwindSafe for ChunkOptions
impl Send for ChunkOptions
impl Sync for ChunkOptions
impl Unpin for ChunkOptions
impl UnsafeUnpin for ChunkOptions
impl UnwindSafe for ChunkOptions
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