Enum zarrs::array::codec::array_to_bytes::zfp::ZfpCodecConfigurationV1
source · pub enum ZfpCodecConfigurationV1 {
Expert(ZfpExpertParams),
FixedRate(ZfpFixedRateConfiguration),
FixedPrecision(ZfpFixedPrecisionConfiguration),
FixedAccuracy(ZfpFixedAccuracyConfiguration),
Reversible,
}
Available on crate feature
zfp
only.Expand description
Configuration parameters for the zfp
codec (version 1.0 draft).
Further information on the meaning of these parameters can be found in the zfp documentation.
Valid examples:
§Encode in fixed rate mode with 10.5 compressed bits per value
{
"mode": "fixedrate",
"rate": 10.5
}
§Encode in fixed precision mode with 19 uncompressed bits per value
{
"mode": "fixedprecision",
"precision": 19
}
§Encode in fixed accuracy mode with a tolerance of 0.05
{
"mode": "fixedaccuracy",
"tolerance": 0.05
}
§Encode in reversible mode
{
"mode": "reversible"
}
§Encode in expert mode
{
"mode": "expert",
"minbits": 1,
"maxbits": 13,
"maxprec": 19,
"minexp": -2
}
Variants§
Expert(ZfpExpertParams)
Expert mode.
FixedRate(ZfpFixedRateConfiguration)
Fixed rate mode.
FixedPrecision(ZfpFixedPrecisionConfiguration)
Fixed precision mode.
FixedAccuracy(ZfpFixedAccuracyConfiguration)
Fixed accuracy mode.
Reversible
Reversible mode.
Trait Implementations§
source§impl Clone for ZfpCodecConfigurationV1
impl Clone for ZfpCodecConfigurationV1
source§fn clone(&self) -> ZfpCodecConfigurationV1
fn clone(&self) -> ZfpCodecConfigurationV1
Returns a copy of the value. Read more
1.0.0 · 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 ZfpCodecConfigurationV1
impl Debug for ZfpCodecConfigurationV1
source§impl<'de> Deserialize<'de> for ZfpCodecConfigurationV1
impl<'de> Deserialize<'de> for ZfpCodecConfigurationV1
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ZfpCodecConfigurationV1> for ZfpCodecConfiguration
impl From<ZfpCodecConfigurationV1> for ZfpCodecConfiguration
source§fn from(original: ZfpCodecConfigurationV1) -> ZfpCodecConfiguration
fn from(original: ZfpCodecConfigurationV1) -> ZfpCodecConfiguration
Converts to this type from the input type.
source§impl PartialEq for ZfpCodecConfigurationV1
impl PartialEq for ZfpCodecConfigurationV1
source§fn eq(&self, other: &ZfpCodecConfigurationV1) -> bool
fn eq(&self, other: &ZfpCodecConfigurationV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ZfpCodecConfigurationV1
impl Serialize for ZfpCodecConfigurationV1
impl StructuralPartialEq for ZfpCodecConfigurationV1
Auto Trait Implementations§
impl Freeze for ZfpCodecConfigurationV1
impl RefUnwindSafe for ZfpCodecConfigurationV1
impl Send for ZfpCodecConfigurationV1
impl Sync for ZfpCodecConfigurationV1
impl Unpin for ZfpCodecConfigurationV1
impl UnwindSafe for ZfpCodecConfigurationV1
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