Function linera_witty::test::test_memory_roundtrip

source ยท
pub fn test_memory_roundtrip<T>(input: &T) -> Result<()>
where T: Debug + Eq + WitLoad + WitStore,
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.