musli-zerocopy
Zero copy primitives for use in Müsli.
This provides a base set of tools to deal with types which do not require copying during deserialization.
Examples
use ;
let mut buf = new;
let string = buf.insert_unsized?;
let c1 = buf.insert_sized?;
let c2 = buf.insert_sized?;
let mut map = Vecnew;
map.push;
map.push;
let map = buf.insert_map?;
let buf = buf.as_aligned_buf;
let map = buf.bind?;
let c1 = map.get?.expect;
let c1 = buf.load?;
assert_eq!;
assert_eq!;
let c2 = map.get?.expect;
let c2 = buf.load?;
assert_eq!;
assert_eq!;
assert!;
Ok::