pub struct PackBitsCodecConfigurationV1 {
pub padding_encoding: Option<PackBitsPaddingEncoding>,
pub first_bit: Option<u64>,
pub last_bit: Option<u64>,
}Expand description
packbits codec configuration parameters (version 1.0 draft).
§Example (Zarr V3)
{
"name": "packbits",
"configuration": {
"padding_encoding": "start_byte"
}
}Fields§
§padding_encoding: Option<PackBitsPaddingEncoding>Specifies how the number of padding bits is encoded, such that the number of decoded elements may be determined from the encoded representation alone.
first_bit: Option<u64>Specifies the index (starting from the least-significant bit) of the first bit to be encoded.
If omitted, or specified as null, defaults to 0.
last_bit: Option<u64>Specifies the index (starting from the least-significant bit) of the (inclusive) last bit to be encoded.
If omitted, or specified as null, defaults to N - 1, where N is the total number of bits per component of the data type.
Trait Implementations§
Source§impl Clone for PackBitsCodecConfigurationV1
impl Clone for PackBitsCodecConfigurationV1
Source§fn clone(&self) -> PackBitsCodecConfigurationV1
fn clone(&self) -> PackBitsCodecConfigurationV1
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 PackBitsCodecConfigurationV1
Source§impl Debug for PackBitsCodecConfigurationV1
impl Debug for PackBitsCodecConfigurationV1
Source§impl<'de> Deserialize<'de> for PackBitsCodecConfigurationV1
impl<'de> Deserialize<'de> for PackBitsCodecConfigurationV1
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
impl Eq for PackBitsCodecConfigurationV1
Source§impl From<PackBitsCodecConfigurationV1> for PackBitsCodecConfiguration
impl From<PackBitsCodecConfigurationV1> for PackBitsCodecConfiguration
Source§fn from(value: PackBitsCodecConfigurationV1) -> Self
fn from(value: PackBitsCodecConfigurationV1) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PackBitsCodecConfigurationV1
Auto Trait Implementations§
impl Freeze for PackBitsCodecConfigurationV1
impl RefUnwindSafe for PackBitsCodecConfigurationV1
impl Send for PackBitsCodecConfigurationV1
impl Sync for PackBitsCodecConfigurationV1
impl Unpin for PackBitsCodecConfigurationV1
impl UnsafeUnpin for PackBitsCodecConfigurationV1
impl UnwindSafe for PackBitsCodecConfigurationV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.