Fix simulation reaching different states when started from different snaphots.

This commit is contained in:
Crozet Sébastien
2020-11-02 15:07:50 +01:00
parent 4b8242b9c2
commit 01af6c09a7
16 changed files with 392 additions and 203 deletions

View File

@@ -0,0 +1,14 @@
use downcast_rs::{impl_downcast, DowncastSync};
#[cfg(feature = "serde-serialize")]
use erased_serde::Serialize;
/// Piece of data that may be serializable.
pub trait MaybeSerializableData: DowncastSync {
/// Convert this shape as a serializable entity.
#[cfg(feature = "serde-serialize")]
fn as_serialize(&self) -> Option<(u32, &dyn Serialize)> {
None
}
}
impl_downcast!(sync MaybeSerializableData);