pub struct NumpyDateTime64DataType {
pub unit: NumpyTimeUnit,
pub scale_factor: NonZeroU32,
}Expand description
The numpy.datetime64 data type.
Fields§
§unit: NumpyTimeUnitThe NumPy temporal unit.
scale_factor: NonZeroU32The NumPy temporal scale factor.
Implementations§
Source§impl NumpyDateTime64DataType
impl NumpyDateTime64DataType
Sourcepub const fn new(unit: NumpyTimeUnit, scale_factor: NonZeroU32) -> Self
pub const fn new(unit: NumpyTimeUnit, scale_factor: NonZeroU32) -> Self
Create a new numpy.datetime64 data type.
Trait Implementations§
Source§impl BytesDataTypeTraits for NumpyDateTime64DataType
impl BytesDataTypeTraits for NumpyDateTime64DataType
Source§impl Clone for NumpyDateTime64DataType
impl Clone for NumpyDateTime64DataType
Source§fn clone(&self) -> NumpyDateTime64DataType
fn clone(&self) -> NumpyDateTime64DataType
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 NumpyDateTime64DataType
impl DataTypeTraits for NumpyDateTime64DataType
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 DataTypeTraitsV3 for NumpyDateTime64DataType
impl DataTypeTraitsV3 for NumpyDateTime64DataType
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 NumpyDateTime64DataType
impl Debug for NumpyDateTime64DataType
Source§impl ExtensionAliases<ZarrVersion2> for NumpyDateTime64DataType
impl ExtensionAliases<ZarrVersion2> for NumpyDateTime64DataType
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 NumpyDateTime64DataType
impl ExtensionAliases<ZarrVersion3> for NumpyDateTime64DataType
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 NumpyDateTime64DataType
impl ExtensionNameStatic for NumpyDateTime64DataType
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 NumpyDateTime64DataType
impl PackBitsDataTypeTraits for NumpyDateTime64DataType
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
Source§impl PartialEq for NumpyDateTime64DataType
impl PartialEq for NumpyDateTime64DataType
Source§impl PcodecDataTypeTraits for NumpyDateTime64DataType
impl PcodecDataTypeTraits for NumpyDateTime64DataType
Source§fn pcodec_element_type(&self) -> PcodecElementType
fn pcodec_element_type(&self) -> PcodecElementType
Returns the pcodec element type for this data type.
Source§fn pcodec_elements_per_element(&self) -> usize
fn pcodec_elements_per_element(&self) -> usize
Returns the number of elements per data type element.
Source§impl ZfpDataTypeTraits for NumpyDateTime64DataType
impl ZfpDataTypeTraits for NumpyDateTime64DataType
Source§fn zfp_encoding(&self) -> ZfpEncoding
fn zfp_encoding(&self) -> ZfpEncoding
Returns the zfp encoding strategy for this data type.
impl Copy for NumpyDateTime64DataType
impl Eq for NumpyDateTime64DataType
impl StructuralPartialEq for NumpyDateTime64DataType
Auto Trait Implementations§
impl Freeze for NumpyDateTime64DataType
impl Send for NumpyDateTime64DataType
impl Sync for NumpyDateTime64DataType
impl RefUnwindSafe for NumpyDateTime64DataType
impl Unpin for NumpyDateTime64DataType
impl UnsafeUnpin for NumpyDateTime64DataType
impl UnwindSafe for NumpyDateTime64DataType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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