PTWM
entropy

ptwm_core::entropy::outcome

Typed return for the [huffman]crate::entropy::huffman and [rans]crate::entropy::rans compressors.

ptwm_core::entropy::outcome

Typed return for the [huffman]crate::entropy::huffman and [rans]crate::entropy::rans compressors.

rsmod

ptwm_core::entropy::outcome

crates/ptwm-core/src/entropy/outcome.rs:1
mod outcome

Typed return for the [`huffman`][crate::entropy::huffman] and [`rans`][crate::entropy::rans] compressors.

The thin public wrappers (`huffman::compress`, `rans::compress`) return `Result<usize, _>` for the pipeline layer and collapse every non-encoded path to `Ok(0)`. The per-plane codec layer needs to distinguish those cases so it can warn on unexpected fallbacks rather than silently emitting an `Ok(0)`. The `compress_outcome` entry points return this richer enum and the plane-codec wrappers inspect it before deciding whether to log.
rstype

ptwm_core::entropy::outcome::CompressOutcome

crates/ptwm-core/src/entropy/outcome.rs:14
pub enum CompressOutcome

Result of an entropy-coder compress attempt.