PTWM
ptwm_core

ptwm_core::codec

ptwm_core::codec

rsmod

ptwm_core::codec

crates/ptwm-core/src/codec.rs:1
mod codec
rsfn

ptwm_core::codec::codec_for

crates/ptwm-core/src/codec.rs:177
pub fn codec_for(id: CodecId) -> Option<Box<dyn ?>>

Look up a codec by id. Returns `None` for unregistered ids; the container-open path should have rejected those already.

rstype

ptwm_core::codec::CodecId

crates/ptwm-core/src/codec.rs:5
pub enum CodecId

Stable codec identifier in the `.ptwm` registry. Values carry documented stewardship ranges.

rstype

ptwm_core::codec::Encoded

crates/ptwm-core/src/codec.rs:105
pub struct Encoded

Output of an encode call: the encoded state bytes (if any) plus the encoded payload.

rstype

ptwm_core::codec::PlaneCodec

crates/ptwm-core/src/codec.rs:112
pub trait PlaneCodec

Plane codec contract.

rsconst

ptwm_core::codec::REGISTRY

crates/ptwm-core/src/codec.rs:28
pub const REGISTRY

Every wire id paired with its canonical lowercase name. Single source of truth for the Python-side `CodecId` IntEnum mirror — the Python test asserts membership against this list at runtime.

rstype

ptwm_core::codec::StateSource

crates/ptwm-core/src/codec.rs:79
pub enum StateSource