Struct zarrs::array::chunk_key_encoding::ChunkKeyEncoding
source · pub struct ChunkKeyEncoding(/* private fields */);
Expand description
A chunk key encoding.
Implementations§
source§impl ChunkKeyEncoding
impl ChunkKeyEncoding
sourcepub fn new<T: ChunkKeyEncodingTraits + 'static>(chunk_key_encoding: T) -> Self
pub fn new<T: ChunkKeyEncodingTraits + 'static>(chunk_key_encoding: T) -> Self
Create a chunk key encoding.
sourcepub fn from_metadata(metadata: &Metadata) -> Result<Self, PluginCreateError>
pub fn from_metadata(metadata: &Metadata) -> Result<Self, PluginCreateError>
Create a chunk key encoding from metadata.
§Errors
Returns PluginCreateError
if the metadata is invalid or not associated with a registered chunk key encoding plugin.
Trait Implementations§
source§impl Clone for ChunkKeyEncoding
impl Clone for ChunkKeyEncoding
source§fn clone(&self) -> ChunkKeyEncoding
fn clone(&self) -> ChunkKeyEncoding
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 ChunkKeyEncoding
impl Debug for ChunkKeyEncoding
source§impl Deref for ChunkKeyEncoding
impl Deref for ChunkKeyEncoding
source§impl From<Box<dyn ChunkKeyEncodingTraits>> for ChunkKeyEncoding
impl From<Box<dyn ChunkKeyEncodingTraits>> for ChunkKeyEncoding
source§fn from(original: Box<dyn ChunkKeyEncodingTraits>) -> ChunkKeyEncoding
fn from(original: Box<dyn ChunkKeyEncodingTraits>) -> ChunkKeyEncoding
Converts to this type from the input type.
source§impl<T> From<T> for ChunkKeyEncodingwhere
T: ChunkKeyEncodingTraits + 'static,
impl<T> From<T> for ChunkKeyEncodingwhere
T: ChunkKeyEncodingTraits + 'static,
Auto Trait Implementations§
impl Freeze for ChunkKeyEncoding
impl !RefUnwindSafe for ChunkKeyEncoding
impl Send for ChunkKeyEncoding
impl Sync for ChunkKeyEncoding
impl Unpin for ChunkKeyEncoding
impl !UnwindSafe for ChunkKeyEncoding
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