pub struct Config { /* private fields */ }Expand description
Full configuration for an SZ3 compress/decompress round-trip.
Use the builder-style setters to customise individual parameters; the
only required parameter is ErrorBound, passed via Config::new.
Implementations§
Source§impl Config
impl Config
Sourcepub fn new(error_bound: ErrorBound) -> Self
pub fn new(error_bound: ErrorBound) -> Self
Create a new configuration with the given error bound and default settings (interpolation-lorenzo algorithm, 65 536 quantization bins).
Sourcepub fn compression_algorithm(
self,
compression_algorithm: CompressionAlgorithm,
) -> Self
pub fn compression_algorithm( self, compression_algorithm: CompressionAlgorithm, ) -> Self
Set the prediction algorithm.
Sourcepub fn error_bound(self, error_bound: ErrorBound) -> Self
pub fn error_bound(self, error_bound: ErrorBound) -> Self
Override the error bound.
Sourcepub fn quantization_bincount(self, quantization_bincount: u32) -> Self
pub fn quantization_bincount(self, quantization_bincount: u32) -> Self
Set the number of quantization bins (default: 65 536).
Sourcepub fn block_size(self, block_size: u32) -> Self
pub fn block_size(self, block_size: u32) -> Self
Set an explicit block size, overriding the automatic default.
Sourcepub fn automatic_block_size(self) -> Self
pub fn automatic_block_size(self) -> Self
Revert to the automatic block size (chosen based on dimensionality).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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