pub struct DataTypePluginV2(/* private fields */);Expand description
A Zarr V2 data type plugin.
Implementations§
Source§impl DataTypePluginV2
impl DataTypePluginV2
Sourcepub const fn new<T: ExtensionAliases<ZarrVersion2> + DataTypeTraitsV2>() -> Self
pub const fn new<T: ExtensionAliases<ZarrVersion2> + DataTypeTraitsV2>() -> Self
Create a new DataTypePluginV2 for a type implementing ExtensionAliases<ZarrVersion2>.
Methods from Deref<Target = Plugin<DataType, DataTypeMetadataV2>>§
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 DataTypePluginV2
impl Deref for DataTypePluginV2
impl Collect for DataTypePluginV2
Auto Trait Implementations§
impl Freeze for DataTypePluginV2
impl Send for DataTypePluginV2
impl Sync for DataTypePluginV2
impl RefUnwindSafe for DataTypePluginV2
impl Unpin for DataTypePluginV2
impl UnwindSafe for DataTypePluginV2
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