Struct SpringState
pub struct SpringState {
pub position: f64,
pub velocity: f64,
}Expand description
1D spring position and velocity state.
Fields§
§position: f64§velocity: f64Trait Implementations§
§impl Clone for SpringState
impl Clone for SpringState
§fn clone(&self) -> SpringState
fn clone(&self) -> SpringState
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 SpringState
§impl Debug for SpringState
impl Debug for SpringState
§impl PartialEq for SpringState
impl PartialEq for SpringState
impl StructuralPartialEq for SpringState
Auto Trait Implementations§
impl Freeze for SpringState
impl RefUnwindSafe for SpringState
impl Send for SpringState
impl Sync for SpringState
impl Unpin for SpringState
impl UnsafeUnpin for SpringState
impl UnwindSafe for SpringState
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