Crate numcodecs

Source
Expand description

CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main

Compression codec API inspired by the numcodecs Python API.

Structs§

StaticCodecConfig
Utility struct to serialize a StaticCodec’s StaticCodec::Config together with its StaticCodec::CODEC_ID
StaticCodecType
Type object for statically typed compression codecs.

Enums§

AnyArrayAssignError
Errors that may occur when calling AnyArrayBase::assign.
AnyArrayBase
Numeric n-dimensional arrays with dynamic shapes.
AnyArrayDType
Enum of all dtypes included in AnyArrayBase.

Traits§

AnyRawData
Array-representation support for all dtypes included in AnyArrayBase.
ArrayDType
Types which are included in AnyArrayDType
Codec
Compression codec that encodes and decodes numeric n-dimensional arrays.
DynCodec
Dynamically typed compression codec.
DynCodecType
Type object for dynamically typed compression codecs.
StaticCodec
Statically typed compression codec.

Functions§

codec_from_config_with_id
Utility function to instantiate a codec of the given ty, where the config may still contain an id field.
serialize_codec_config_with_id
Utility function to serialize a codec’s config together with its DynCodecType::codec_id.

Type Aliases§

AnyArcArray
An array where the data has shared ownership and is copy-on-write.
AnyArray
An array that owns its data uniquely.
AnyArrayView
A read-only array view.
AnyArrayViewMut
A read-write array view.
AnyCowArray
An array with copy-on-write behavior.