diff options
| author | Crozet Sébastien <developer@crozet.re> | 2020-12-17 10:24:36 +0100 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2020-12-29 11:31:00 +0100 |
| commit | e231bacec608fa5efd24f7a876572927dbd6c9c4 (patch) | |
| tree | 596f0b6a1fc666586ffcd71d07a39a7c182c6ef8 /src/data/maybe_serializable_data.rs | |
| parent | cc6d1b973002b4d366bc81ec6bf9e8240ad7b404 (diff) | |
| download | rapier-e231bacec608fa5efd24f7a876572927dbd6c9c4.tar.gz rapier-e231bacec608fa5efd24f7a876572927dbd6c9c4.tar.bz2 rapier-e231bacec608fa5efd24f7a876572927dbd6c9c4.zip | |
Move all the contact manifold computations out of Rapier.
Diffstat (limited to 'src/data/maybe_serializable_data.rs')
| -rw-r--r-- | src/data/maybe_serializable_data.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/data/maybe_serializable_data.rs b/src/data/maybe_serializable_data.rs deleted file mode 100644 index 8b14e1a..0000000 --- a/src/data/maybe_serializable_data.rs +++ /dev/null @@ -1,17 +0,0 @@ -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 - } - - /// Clones `self`. - fn clone_dyn(&self) -> Box<dyn MaybeSerializableData>; -} - -impl_downcast!(sync MaybeSerializableData); |
