pub struct DecayConfig {
pub rate: f64,
pub rest_speed: f64,
}Fields§
§rate: f64§rest_speed: f64Implementations§
Source§impl DecayConfig
impl DecayConfig
pub fn validate(self) -> Result<Self, PhysicsError>
Trait Implementations§
Source§impl Clone for DecayConfig
impl Clone for DecayConfig
Source§fn clone(&self) -> DecayConfig
fn clone(&self) -> DecayConfig
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 DecayConfig
Source§impl Debug for DecayConfig
impl Debug for DecayConfig
Source§impl Default for DecayConfig
impl Default for DecayConfig
Source§impl PartialEq for DecayConfig
impl PartialEq for DecayConfig
impl StructuralPartialEq for DecayConfig
Auto Trait Implementations§
impl Freeze for DecayConfig
impl RefUnwindSafe for DecayConfig
impl Send for DecayConfig
impl Sync for DecayConfig
impl Unpin for DecayConfig
impl UnsafeUnpin for DecayConfig
impl UnwindSafe for DecayConfig
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