pub struct V2ChunkKeyEncoding { /* private fields */ }Expand description
A v2 chunk key encoding.
The identifier for chunk with at least one dimension is formed by concatenating for each dimension:
- the ASCII decimal string representation of the chunk index within that dimension, followed by
- the separator character, except that it is omitted for the last dimension.
See https://zarr-specs.readthedocs.io/en/latest/v3/chunk-key-encodings/v2/index.html.
Implementations§
Source§impl V2ChunkKeyEncoding
impl V2ChunkKeyEncoding
Sourcepub const fn new(separator: ChunkKeySeparator) -> Self
pub const fn new(separator: ChunkKeySeparator) -> Self
Create a new v2 chunk key encoding with separator separator.
Trait Implementations§
Source§impl ChunkKeyEncodingTraits for V2ChunkKeyEncoding
impl ChunkKeyEncodingTraits for V2ChunkKeyEncoding
Source§fn create(metadata: &MetadataV3) -> Result<ChunkKeyEncoding, PluginCreateError>
fn create(metadata: &MetadataV3) -> Result<ChunkKeyEncoding, PluginCreateError>
Create a chunk key encoding from Zarr V3 metadata. Read more
Source§fn configuration(&self) -> Configuration
fn configuration(&self) -> Configuration
The configuration of the chunk key encoding.
Source§impl Clone for V2ChunkKeyEncoding
impl Clone for V2ChunkKeyEncoding
Source§fn clone(&self) -> V2ChunkKeyEncoding
fn clone(&self) -> V2ChunkKeyEncoding
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 moreSource§impl Debug for V2ChunkKeyEncoding
impl Debug for V2ChunkKeyEncoding
Source§impl Default for V2ChunkKeyEncoding
impl Default for V2ChunkKeyEncoding
Source§impl ExtensionAliases<ZarrVersion2> for V2ChunkKeyEncoding
impl ExtensionAliases<ZarrVersion2> for V2ChunkKeyEncoding
Source§fn aliases() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
fn aliases() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
Get a read lock on the aliases configuration for this version.
Source§fn aliases_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
fn aliases_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
Get a write lock on the aliases configuration for this version.
Source§impl ExtensionAliases<ZarrVersion3> for V2ChunkKeyEncoding
impl ExtensionAliases<ZarrVersion3> for V2ChunkKeyEncoding
Source§fn aliases() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
fn aliases() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
Get a read lock on the aliases configuration for this version.
Source§fn aliases_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
fn aliases_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
Get a write lock on the aliases configuration for this version.
Source§impl ExtensionNameStatic for V2ChunkKeyEncoding
impl ExtensionNameStatic for V2ChunkKeyEncoding
Source§const DEFAULT_NAME_FN: fn(ZarrVersion) -> Option<Cow<'static, str>>
const DEFAULT_NAME_FN: fn(ZarrVersion) -> Option<Cow<'static, str>>
Function pointer to get the default name for a given Zarr version. Read more
Auto Trait Implementations§
impl Freeze for V2ChunkKeyEncoding
impl RefUnwindSafe for V2ChunkKeyEncoding
impl Send for V2ChunkKeyEncoding
impl Sync for V2ChunkKeyEncoding
impl Unpin for V2ChunkKeyEncoding
impl UnsafeUnpin for V2ChunkKeyEncoding
impl UnwindSafe for V2ChunkKeyEncoding
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,
Source§impl<T> ExtensionAliasesV2 for Twhere
T: ExtensionAliases<ZarrVersion2>,
impl<T> ExtensionAliasesV2 for Twhere
T: ExtensionAliases<ZarrVersion2>,
Source§fn aliases_v2() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
fn aliases_v2() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
Get a read lock on the V2 aliases configuration.
Source§fn aliases_v2_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
fn aliases_v2_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
Get a write lock on the V2 aliases configuration.
Source§fn matches_name_v2(name: &str) -> bool
fn matches_name_v2(name: &str) -> bool
Check if the given name matches this extension for Zarr V2.
Source§impl<T> ExtensionAliasesV3 for Twhere
T: ExtensionAliases<ZarrVersion3>,
impl<T> ExtensionAliasesV3 for Twhere
T: ExtensionAliases<ZarrVersion3>,
Source§fn aliases_v3() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
fn aliases_v3() -> RwLockReadGuard<'static, ExtensionAliasesConfig>
Get a read lock on the V3 aliases configuration.
Source§fn aliases_v3_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
fn aliases_v3_mut() -> RwLockWriteGuard<'static, ExtensionAliasesConfig>
Get a write lock on the V3 aliases configuration.
Source§fn matches_name_v3(name: &str) -> bool
fn matches_name_v3(name: &str) -> bool
Check if the given name matches this extension for Zarr V3.
Source§impl<T> ExtensionName for Twhere
T: ExtensionNameStatic,
impl<T> ExtensionName for Twhere
T: ExtensionNameStatic,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more