Struct wrapped2d::serialize::WorldConfigSnapshot
source · pub struct WorldConfigSnapshot {
pub gravity: [f32; 2],
pub allow_sleep: bool,
pub auto_clear_forces: bool,
pub warm_starting: bool,
pub continuous_physics: bool,
pub sub_stepping: bool,
}
Fields§
§gravity: [f32; 2]
§allow_sleep: bool
§auto_clear_forces: bool
§warm_starting: bool
§continuous_physics: bool
§sub_stepping: bool
Implementations§
source§impl WorldConfigSnapshot
impl WorldConfigSnapshot
pub fn take<U: UserDataTypes>(world: &World<U>) -> Self
pub fn rebuild<U: UserDataTypes>(&self) -> World<U>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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
Auto Trait Implementations§
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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