#[repr(C)]pub struct SurfaceRecord {
pub friction: f32,
pub restitution: f32,
pub rolling_friction: f32,
pub spin_friction: f32,
}Fields§
§friction: f32§restitution: f32§rolling_friction: f32§spin_friction: f32Implementations§
Source§impl SurfaceRecord
impl SurfaceRecord
pub fn build(surface: &SurfaceDesc) -> Self
pub fn desc(&self) -> SurfaceDesc
Trait Implementations§
Source§impl Clone for SurfaceRecord
impl Clone for SurfaceRecord
Source§fn clone(&self) -> SurfaceRecord
fn clone(&self) -> SurfaceRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SurfaceRecord
Source§impl Debug for SurfaceRecord
impl Debug for SurfaceRecord
Source§impl PartialEq for SurfaceRecord
impl PartialEq for SurfaceRecord
impl Pod for SurfaceRecord
Source§impl StreamRecord for SurfaceRecord
impl StreamRecord for SurfaceRecord
impl StructuralPartialEq for SurfaceRecord
Auto Trait Implementations§
impl Freeze for SurfaceRecord
impl RefUnwindSafe for SurfaceRecord
impl Send for SurfaceRecord
impl Sync for SurfaceRecord
impl Unpin for SurfaceRecord
impl UnsafeUnpin for SurfaceRecord
impl UnwindSafe for SurfaceRecord
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.