Skip to main content

Module from_wxf

Module from_wxf 

Source
Expand description

FromWXF — pull-based typed deserialization from a WxfReader.

Lifetime-parameterized like serde’s Deserialize<'de>: 'de is the input buffer’s lifetime. Owned types implement FromWXF<'de> for every 'de (they borrow nothing); borrowed types (&'de str, &'de [u8], and derived structs with reference fields) tie to a specific 'de and read zero-copy straight out of the buffer.

Peek-free by construction: every value begins with one expression token, read once via WxfReader::read_expr_token and threaded into FromWXF::from_wxf_with_tag.

Traits§

FromWXF
Deserialize a typed value by pulling tokens from a WxfReader.

Functions§

err_at
Build a Deserialize error tagged with a path. Used by the derive.