Struct zarrs::array::codec::array_to_bytes::bytes::BytesCodecConfigurationV1
source · pub struct BytesCodecConfigurationV1 {
pub endian: Option<Endianness>,
}
Expand description
Configuration parameters for the bytes
codec (version 1.0).
Fields§
§endian: Option<Endianness>
The target endianness. Required if the data type is larger than one byte. A string equal to either “big” or “little” in JSON.
Implementations§
source§impl BytesCodecConfigurationV1
impl BytesCodecConfigurationV1
sourcepub const fn new(endian: Option<Endianness>) -> Self
pub const fn new(endian: Option<Endianness>) -> Self
Create a new bytes
codec configuration given an optional Endianness
.
Trait Implementations§
source§impl Clone for BytesCodecConfigurationV1
impl Clone for BytesCodecConfigurationV1
source§fn clone(&self) -> BytesCodecConfigurationV1
fn clone(&self) -> BytesCodecConfigurationV1
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 BytesCodecConfigurationV1
impl Debug for BytesCodecConfigurationV1
source§impl<'de> Deserialize<'de> for BytesCodecConfigurationV1
impl<'de> Deserialize<'de> for BytesCodecConfigurationV1
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 Display for BytesCodecConfigurationV1
impl Display for BytesCodecConfigurationV1
source§impl From<BytesCodecConfigurationV1> for BytesCodecConfiguration
impl From<BytesCodecConfigurationV1> for BytesCodecConfiguration
source§fn from(original: BytesCodecConfigurationV1) -> BytesCodecConfiguration
fn from(original: BytesCodecConfigurationV1) -> BytesCodecConfiguration
Converts to this type from the input type.
source§impl PartialEq for BytesCodecConfigurationV1
impl PartialEq for BytesCodecConfigurationV1
source§fn eq(&self, other: &BytesCodecConfigurationV1) -> bool
fn eq(&self, other: &BytesCodecConfigurationV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BytesCodecConfigurationV1
impl StructuralPartialEq for BytesCodecConfigurationV1
Auto Trait Implementations§
impl Freeze for BytesCodecConfigurationV1
impl RefUnwindSafe for BytesCodecConfigurationV1
impl Send for BytesCodecConfigurationV1
impl Sync for BytesCodecConfigurationV1
impl Unpin for BytesCodecConfigurationV1
impl UnwindSafe for BytesCodecConfigurationV1
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<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.