Skip to main content

DataTypeTraitsV3

Trait DataTypeTraitsV3 

Source
pub trait DataTypeTraitsV3 {
    // Required method
    fn create(metadata: &MetadataV3) -> Result<DataType, PluginCreateError>
       where Self: Sized;
}
Expand description

Trait for creating a data type from Zarr V3 metadata.

Types implementing this trait can be registered as V3 data type plugins via DataTypePluginV3.

Required Methods§

Source

fn create(metadata: &MetadataV3) -> Result<DataType, PluginCreateError>
where Self: Sized,

Create a data type from Zarr V3 metadata.

§Errors

Returns PluginCreateError if the plugin cannot be created.

Implementors§