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.write_unsized?;
let c1 = buf.write?;
let c2 = buf.write?;
let mut map = Vecnew;
map.push;
map.push;
let map = buf.insert_map?;
let buf = buf.as_aligned;
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!;