pub struct PhysicsMaterial {
pub friction: Scalar,
pub restitution: Scalar,
}Fields§
§friction: Scalar§restitution: ScalarTrait Implementations§
Source§impl Clone for PhysicsMaterial
impl Clone for PhysicsMaterial
Source§fn clone(&self) -> PhysicsMaterial
fn clone(&self) -> PhysicsMaterial
Returns a duplicate 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 PhysicsMaterial
impl Debug for PhysicsMaterial
Source§impl Default for PhysicsMaterial
impl Default for PhysicsMaterial
Source§impl<'de> Deserialize<'de> for PhysicsMaterial
impl<'de> Deserialize<'de> for PhysicsMaterial
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 PartialEq for PhysicsMaterial
impl PartialEq for PhysicsMaterial
Source§impl Serialize for PhysicsMaterial
impl Serialize for PhysicsMaterial
impl Copy for PhysicsMaterial
impl StructuralPartialEq for PhysicsMaterial
Auto Trait Implementations§
impl Freeze for PhysicsMaterial
impl RefUnwindSafe for PhysicsMaterial
impl Send for PhysicsMaterial
impl Sync for PhysicsMaterial
impl Unpin for PhysicsMaterial
impl UnwindSafe for PhysicsMaterial
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