Skip to main content

from_bytes

Function from_bytes 

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

Decodes a top-level value, rejecting trailing bytes.

ยงErrors

DecodeError for malformed input or trailing bytes.