Struct wrapped2d::serialize::MassSnapshot
source · pub struct MassSnapshot {
pub mass: f32,
pub center: [f32; 2],
pub inertia: f32,
}
Fields§
§mass: f32
§center: [f32; 2]
§inertia: f32
Implementations§
Trait Implementations§
source§impl Clone for MassSnapshot
impl Clone for MassSnapshot
source§fn clone(&self) -> MassSnapshot
fn clone(&self) -> MassSnapshot
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MassSnapshot
impl Debug for MassSnapshot
source§impl<'de> Deserialize<'de> for MassSnapshot
impl<'de> Deserialize<'de> for MassSnapshot
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 MassSnapshot
impl Send for MassSnapshot
impl Sync for MassSnapshot
impl Unpin for MassSnapshot
impl UnwindSafe for MassSnapshot
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