pub fn de_from_bytes_asc<I, T>(input: I) -> Result<T>Expand description
Deserialize value from byte slice with params::AscendingOrder
Example
#[derive(serde_derive::Deserialize)]
struct Foo(u16, String);
let buf = [0_u8, 1, b'a', b'b', b'c', 7];
let foo: Foo = de_from_bytes_asc(&buf).unwrap();
assert_eq!(foo.0, 1);
assert_eq!(foo.1, "abc");