PTWM
ptwm_core

ptwm_core::dtype

First-class dtype enum for the compression pipeline.

ptwm_core::dtype

First-class dtype enum for the compression pipeline.

rsmod

ptwm_core::dtype

crates/ptwm-core/src/dtype.rs:1
mod dtype

First-class dtype enum for the compression pipeline.

The Python side has historically owned the dtype registry (`ptwm.preprocessing.DTYPE_REGISTRY`). This module is the Rust-authoritative equivalent: the wire-format `dtype_code`, the preprocessing modes (`num_buf`, `bit_reorder`, `byte_reorder`), and the name-based lookup used by the standalone CLI all funnel through [`Dtype`]. Code values align with the Python `DType`. Only dtypes that have a supported preprocessing recipe are enumerated here — complex, quantized, and 64-bit float variants that exist in the Python enum but have no compression spec are intentionally absent. Such codes will surface as [`PtwmCoreError::InvalidHeaderField`] from [`Dtype::from_code`].
rstype

ptwm_core::dtype::Dtype

crates/ptwm-core/src/dtype.rs:25
pub enum Dtype

Supported dtypes for the compression pipeline.

Numeric values match the Python-side `DType.code` for the same dtype; wire-format `dtype_code` values are exactly these discriminants.
rstype

ptwm_core::dtype::PreprocessingModes

crates/ptwm-core/src/dtype.rs:54
pub struct PreprocessingModes

Preprocessing modes for one dtype: the trio that `compress_chunk` accepts.