pub struct CodecPluginV3(/* private fields */);Expand description
A Zarr V3 codec plugin.
Implementations§
Source§impl CodecPluginV3
impl CodecPluginV3
Sourcepub const fn new<T: ExtensionAliases<ZarrVersion3> + CodecTraitsV3>() -> Self
pub const fn new<T: ExtensionAliases<ZarrVersion3> + CodecTraitsV3>() -> Self
Create a new CodecPluginV3 for a type implementing ExtensionAliases<ZarrVersion3>.
Methods from Deref<Target = Plugin<Codec, MetadataV3>>§
Sourcepub fn create(&self, input: &TInput) -> Result<TPlugin, PluginCreateError>
pub fn create(&self, input: &TInput) -> Result<TPlugin, PluginCreateError>
Create a TPlugin plugin from inputs.
§Errors
Returns a PluginCreateError if plugin creation fails due to either:
- metadata name being unregistered,
- or the configuration is invalid, or
- some other reason specific to the plugin.
Sourcepub fn match_name(&self, name: &str) -> bool
pub fn match_name(&self, name: &str) -> bool
Returns true if this plugin is associated with name.
Trait Implementations§
Source§impl Deref for CodecPluginV3
impl Deref for CodecPluginV3
impl Collect for CodecPluginV3
Auto Trait Implementations§
impl Freeze for CodecPluginV3
impl Send for CodecPluginV3
impl Sync for CodecPluginV3
impl RefUnwindSafe for CodecPluginV3
impl Unpin for CodecPluginV3
impl UnsafeUnpin for CodecPluginV3
impl UnwindSafe for CodecPluginV3
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> 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