pub struct UInt4DataType;Expand description
The uint4 data type.
Trait Implementations§
Source§impl BytesDataTypeTraits for UInt4DataType
impl BytesDataTypeTraits for UInt4DataType
Source§impl Clone for UInt4DataType
impl Clone for UInt4DataType
Source§fn clone(&self) -> UInt4DataType
fn clone(&self) -> UInt4DataType
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 UInt4DataType
impl DataTypeTraits for UInt4DataType
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 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§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§impl DataTypeTraitsV2 for UInt4DataType
impl DataTypeTraitsV2 for UInt4DataType
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 UInt4DataType
impl DataTypeTraitsV3 for UInt4DataType
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 UInt4DataType
impl Debug for UInt4DataType
Source§impl ExtensionAliases<ZarrVersion2> for UInt4DataType
impl ExtensionAliases<ZarrVersion2> for UInt4DataType
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 UInt4DataType
impl ExtensionAliases<ZarrVersion3> for UInt4DataType
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 UInt4DataType
impl ExtensionNameStatic for UInt4DataType
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 UInt4DataType
impl PackBitsDataTypeTraits for UInt4DataType
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 UInt4DataType
Auto Trait Implementations§
impl Freeze for UInt4DataType
impl Send for UInt4DataType
impl Sync for UInt4DataType
impl RefUnwindSafe for UInt4DataType
impl Unpin for UInt4DataType
impl UnwindSafe for UInt4DataType
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