pub enum RectangularChunkGridDimensionConfiguration {
Fixed(NonZeroU64),
Varying(ChunkShape),
}
Expand description
A chunk element in the chunk_shape
field of rectangular
chunk grid netadata.
Variants§
Trait Implementations§
source§impl Clone for RectangularChunkGridDimensionConfiguration
impl Clone for RectangularChunkGridDimensionConfiguration
source§fn clone(&self) -> RectangularChunkGridDimensionConfiguration
fn clone(&self) -> RectangularChunkGridDimensionConfiguration
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<'de> Deserialize<'de> for RectangularChunkGridDimensionConfiguration
impl<'de> Deserialize<'de> for RectangularChunkGridDimensionConfiguration
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<&[NonZero<u64>]> for RectangularChunkGridDimensionConfiguration
impl From<&[NonZero<u64>]> for RectangularChunkGridDimensionConfiguration
source§fn from(value: &[NonZeroU64]) -> Self
fn from(value: &[NonZeroU64]) -> Self
Converts to this type from the input type.
source§impl<const N: usize> From<&[NonZero<u64>; N]> for RectangularChunkGridDimensionConfiguration
impl<const N: usize> From<&[NonZero<u64>; N]> for RectangularChunkGridDimensionConfiguration
source§fn from(value: &[NonZeroU64; N]) -> Self
fn from(value: &[NonZeroU64; N]) -> Self
Converts to this type from the input type.
source§impl<const N: usize> From<[NonZero<u64>; N]> for RectangularChunkGridDimensionConfiguration
impl<const N: usize> From<[NonZero<u64>; N]> for RectangularChunkGridDimensionConfiguration
source§fn from(value: [NonZeroU64; N]) -> Self
fn from(value: [NonZeroU64; N]) -> Self
Converts to this type from the input type.
source§impl From<ChunkShape> for RectangularChunkGridDimensionConfiguration
impl From<ChunkShape> for RectangularChunkGridDimensionConfiguration
source§fn from(original: ChunkShape) -> RectangularChunkGridDimensionConfiguration
fn from(original: ChunkShape) -> RectangularChunkGridDimensionConfiguration
Converts to this type from the input type.
source§impl From<NonZero<u64>> for RectangularChunkGridDimensionConfiguration
impl From<NonZero<u64>> for RectangularChunkGridDimensionConfiguration
source§fn from(original: NonZeroU64) -> RectangularChunkGridDimensionConfiguration
fn from(original: NonZeroU64) -> RectangularChunkGridDimensionConfiguration
Converts to this type from the input type.
source§impl From<Vec<NonZero<u64>>> for RectangularChunkGridDimensionConfiguration
impl From<Vec<NonZero<u64>>> for RectangularChunkGridDimensionConfiguration
source§fn from(value: Vec<NonZeroU64>) -> Self
fn from(value: Vec<NonZeroU64>) -> Self
Converts to this type from the input type.
source§impl PartialEq for RectangularChunkGridDimensionConfiguration
impl PartialEq for RectangularChunkGridDimensionConfiguration
source§fn eq(&self, other: &RectangularChunkGridDimensionConfiguration) -> bool
fn eq(&self, other: &RectangularChunkGridDimensionConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u64]> for RectangularChunkGridDimensionConfiguration
impl TryFrom<&[u64]> for RectangularChunkGridDimensionConfiguration
impl Eq for RectangularChunkGridDimensionConfiguration
impl StructuralPartialEq for RectangularChunkGridDimensionConfiguration
Auto Trait Implementations§
impl Freeze for RectangularChunkGridDimensionConfiguration
impl RefUnwindSafe for RectangularChunkGridDimensionConfiguration
impl Send for RectangularChunkGridDimensionConfiguration
impl Sync for RectangularChunkGridDimensionConfiguration
impl Unpin for RectangularChunkGridDimensionConfiguration
impl UnwindSafe for RectangularChunkGridDimensionConfiguration
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.