Skip to main content

decode

Function decode 

Source
pub fn decode<'de, T: Deserialize<'de>>(
    bytes: &'de [u8],
    limits: Limits,
) -> Result<T, Error>
Expand description

Decode a complete Postcard payload; allocation admission precedes visitor calls. Borrowed bytes and strings may refer directly to the input for its lifetime. Primitive representations are checked while reading; Serde normalization is consumer-owned.