pub struct Spring<T: Sample> {
pub value: T,
pub velocity: T,
pub target: T,
pub stiffness: f32,
pub damping_ratio: f32,
pub rest: Rest,
}Fields§
§value: T§velocity: T§target: T§stiffness: f32§damping_ratio: f32§rest: RestImplementations§
Trait Implementations§
impl<T: Copy + Sample> Copy for Spring<T>
impl<T: Sample> StructuralPartialEq for Spring<T>
Auto Trait Implementations§
impl<T> Freeze for Spring<T>where
T: Freeze,
impl<T> RefUnwindSafe for Spring<T>where
T: RefUnwindSafe,
impl<T> Send for Spring<T>where
T: Send,
impl<T> Sync for Spring<T>where
T: Sync,
impl<T> Unpin for Spring<T>where
T: Unpin,
impl<T> UnsafeUnpin for Spring<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Spring<T>where
T: UnwindSafe,
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