Struct wrapped2d::serialize::WorldSnapshot
source · pub struct WorldSnapshot<U: UserDataTypes>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,{ /* private fields */ }
Implementations§
source§impl<U: UserDataTypes> WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
impl<U: UserDataTypes> WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
pub fn take(world: &World<U>) -> Self
pub fn rebuild(&self, id_to_handle: &mut IdToHandle) -> World<U>where
U::BodyData: DeserializeOwned + Clone,
U::FixtureData: DeserializeOwned + Clone,
U::JointData: DeserializeOwned + Clone,
Trait Implementations§
source§impl<U: Debug + UserDataTypes> Debug for WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
impl<U: Debug + UserDataTypes> Debug for WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
source§impl<'de, U> Deserialize<'de> for WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
U: Deserialize<'de> + UserDataTypes,
impl<'de, U> Deserialize<'de> for WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
U: Deserialize<'de> + UserDataTypes,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<U> Serialize for WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
U: Serialize + UserDataTypes,
impl<U> Serialize for WorldSnapshot<U>where
U::BodyData: Debug + Serialize + DeserializeOwned,
U::FixtureData: Debug + Serialize + DeserializeOwned,
U::JointData: Debug + Serialize + DeserializeOwned,
U: Serialize + UserDataTypes,
Auto Trait Implementations§
impl<U> RefUnwindSafe for WorldSnapshot<U>where
<U as UserDataTypes>::BodyData: RefUnwindSafe,
<U as UserDataTypes>::FixtureData: RefUnwindSafe,
<U as UserDataTypes>::JointData: RefUnwindSafe,
impl<U> Send for WorldSnapshot<U>where
<U as UserDataTypes>::BodyData: Send,
<U as UserDataTypes>::FixtureData: Send,
<U as UserDataTypes>::JointData: Send,
impl<U> Sync for WorldSnapshot<U>where
<U as UserDataTypes>::BodyData: Sync,
<U as UserDataTypes>::FixtureData: Sync,
<U as UserDataTypes>::JointData: Sync,
impl<U> Unpin for WorldSnapshot<U>where
<U as UserDataTypes>::BodyData: Unpin,
<U as UserDataTypes>::FixtureData: Unpin,
<U as UserDataTypes>::JointData: Unpin,
impl<U> UnwindSafe for WorldSnapshot<U>where
<U as UserDataTypes>::BodyData: UnwindSafe,
<U as UserDataTypes>::FixtureData: UnwindSafe,
<U as UserDataTypes>::JointData: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more