Function linera_witty::test::test_memory_roundtrip
source ยท pub fn test_memory_roundtrip<T>(input: &T) -> Result<()>
Expand description
Test storing an instance of T
to memory, checking that the instance can be loaded from those
bytes.
Also checks if storing the loaded instance results in exactly the same bytes in memory.