pub enum ScaleOffset {
Integer(u32),
FloatDScale(i32),
}Expand description
Scale-offset compression mode requested by the writer.
Mirrors the two variants the reference HDF5 library exposes.
Variants§
Integer(u32)
Integer scale-offset (lossless). 0 lets the encoder auto-compute the
minimum bit width from each chunk’s value range (the usual choice); a
positive value would force a fixed minimum bit width.
FloatDScale(i32)
Floating-point decimal scaling (lossy). The value is the number of decimal digits of precision retained (the “D” scale factor).
Trait Implementations§
Source§impl Clone for ScaleOffset
impl Clone for ScaleOffset
Source§fn clone(&self) -> ScaleOffset
fn clone(&self) -> ScaleOffset
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 moreimpl Copy for ScaleOffset
Source§impl Debug for ScaleOffset
impl Debug for ScaleOffset
impl Eq for ScaleOffset
Source§impl PartialEq for ScaleOffset
impl PartialEq for ScaleOffset
Source§fn eq(&self, other: &ScaleOffset) -> bool
fn eq(&self, other: &ScaleOffset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScaleOffset
Auto Trait Implementations§
impl Freeze for ScaleOffset
impl RefUnwindSafe for ScaleOffset
impl Send for ScaleOffset
impl Sync for ScaleOffset
impl Unpin for ScaleOffset
impl UnsafeUnpin for ScaleOffset
impl UnwindSafe for ScaleOffset
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