Struct wrapped2d::serialize::FixtureSnapshot
source · pub struct FixtureSnapshot {
pub shape: ShapeSnapshot,
pub friction: f32,
pub restitution: f32,
pub density: f32,
pub is_sensor: bool,
pub filter: Filter,
}
Fields§
§shape: ShapeSnapshot
§friction: f32
§restitution: f32
§density: f32
§is_sensor: bool
§filter: Filter
Implementations§
source§impl FixtureSnapshot
impl FixtureSnapshot
pub fn take<U: UserDataTypes>(fixture: &MetaFixture<U>) -> Self
pub fn rebuild<U: UserDataTypes>( &self, body: &mut MetaBody<U>, data: U::FixtureData ) -> FixtureHandle
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