Skip to content

Function encoding::from_bytes

zaun_community_protocol::encoding::from_bytes · Function

pub fn from_bytes<T>(bytes: &[u8]) -> Result<T, DecodeError>

Decodes a top-level value, rejecting trailing bytes.

DecodeError for malformed input or trailing bytes.

Full rustdoc page