pub struct Float4E2M1FNDataType;Expand description
The float4_e2m1fn data type.
Trait Implementations§
Source§impl BytesDataTypeTraits for Float4E2M1FNDataType
impl BytesDataTypeTraits for Float4E2M1FNDataType
Source§impl Clone for Float4E2M1FNDataType
impl Clone for Float4E2M1FNDataType
Source§fn clone(&self) -> Float4E2M1FNDataType
fn clone(&self) -> Float4E2M1FNDataType
Returns a duplicate 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 DataTypeTraits for Float4E2M1FNDataType
impl DataTypeTraits for Float4E2M1FNDataType
Source§fn configuration(&self, _version: ZarrVersion) -> Configuration
fn configuration(&self, _version: ZarrVersion) -> Configuration
The configuration of the data type.
Source§fn size(&self) -> DataTypeSize
fn size(&self) -> DataTypeSize
The size of the data type. Read more
Source§fn fill_value(
&self,
fill_value_metadata: &FillValueMetadata,
_version: ZarrVersion,
) -> Result<FillValue, DataTypeFillValueMetadataError>
fn fill_value( &self, fill_value_metadata: &FillValueMetadata, _version: ZarrVersion, ) -> Result<FillValue, DataTypeFillValueMetadataError>
Create a fill value from metadata. Read more
Source§fn metadata_fill_value(
&self,
fill_value: &FillValue,
) -> Result<FillValueMetadata, DataTypeFillValueError>
fn metadata_fill_value( &self, fill_value: &FillValue, ) -> Result<FillValueMetadata, DataTypeFillValueError>
Create fill value metadata. Read more
Source§fn configuration_v3(&self) -> Configuration
fn configuration_v3(&self) -> Configuration
The Zarr V3 configuration of the data type.
Source§fn configuration_v2(&self) -> Configuration
fn configuration_v2(&self) -> Configuration
The Zarr V2 configuration of the data type.
Source§fn fill_value_v2(
&self,
fill_value_metadata: &FillValueMetadataV3,
) -> Result<FillValue, DataTypeFillValueMetadataError>
fn fill_value_v2( &self, fill_value_metadata: &FillValueMetadataV3, ) -> Result<FillValue, DataTypeFillValueMetadataError>
Create a fill value from Zarr V2 metadata. Read more
Source§fn fill_value_v3(
&self,
fill_value_metadata: &FillValueMetadataV3,
) -> Result<FillValue, DataTypeFillValueMetadataError>
fn fill_value_v3( &self, fill_value_metadata: &FillValueMetadataV3, ) -> Result<FillValue, DataTypeFillValueMetadataError>
Create a fill value from Zarr V3 metadata. Read more
Source§fn eq(&self, other: &dyn DataTypeTraits) -> bool
fn eq(&self, other: &dyn DataTypeTraits) -> bool
Compare this data type with another for equality. Read more
Source§fn compatible_element_types(&self) -> &'static [TypeId]
fn compatible_element_types(&self) -> &'static [TypeId]
Returns the set of Rust element types this data type is compatible with. Read more
Source§impl DataTypeTraitsV2 for Float4E2M1FNDataType
impl DataTypeTraitsV2 for Float4E2M1FNDataType
Source§fn create(_metadata: &DataTypeMetadataV2) -> Result<DataType, PluginCreateError>
fn create(_metadata: &DataTypeMetadataV2) -> Result<DataType, PluginCreateError>
Create a data type from Zarr V2 metadata. Read more
Source§impl DataTypeTraitsV3 for Float4E2M1FNDataType
impl DataTypeTraitsV3 for Float4E2M1FNDataType
Source§fn create(metadata: &MetadataV3) -> Result<DataType, PluginCreateError>
fn create(metadata: &MetadataV3) -> Result<DataType, PluginCreateError>
Create a data type from Zarr V3 metadata. Read more
Source§impl Debug for Float4E2M1FNDataType
impl Debug for Float4E2M1FNDataType
Source§impl ExtensionAliases<ZarrVersion2> for Float4E2M1FNDataType
impl ExtensionAliases<ZarrVersion2> for Float4E2M1FNDataType
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 Float4E2M1FNDataType
impl ExtensionAliases<ZarrVersion3> for Float4E2M1FNDataType
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 Float4E2M1FNDataType
impl ExtensionNameStatic for Float4E2M1FNDataType
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
Source§impl PackBitsDataTypeTraits for Float4E2M1FNDataType
impl PackBitsDataTypeTraits for Float4E2M1FNDataType
Source§fn component_size_bits(&self) -> u64
fn component_size_bits(&self) -> u64
The component size in bits.
Source§fn num_components(&self) -> u64
fn num_components(&self) -> u64
The number of components.
Source§fn sign_extension(&self) -> bool
fn sign_extension(&self) -> bool
True if the components need sign extension. Read more
impl Copy for Float4E2M1FNDataType
Auto Trait Implementations§
impl Freeze for Float4E2M1FNDataType
impl Send for Float4E2M1FNDataType
impl Sync for Float4E2M1FNDataType
impl RefUnwindSafe for Float4E2M1FNDataType
impl Unpin for Float4E2M1FNDataType
impl UnwindSafe for Float4E2M1FNDataType
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