pub fn capture_snapshot(store: &mut impl AsStoreMut) -> InstanceSnapshot