pub struct Approximation<T, V = T> {
pub value: T,
pub velocity: V,
}Expand description
Approximation of the value (y-coordinate) and velocity of a curve at the given (unnormalized) time (x-coordinate).
Fields§
§value: TThis is the y-coordinate of an approximation.
velocity: VThis is the y-coordinate of the derivative at the x-coordinate of this approximation.
Trait Implementations§
Source§impl<T: Clone, V: Clone> Clone for Approximation<T, V>
impl<T: Clone, V: Clone> Clone for Approximation<T, V>
Source§fn clone(&self) -> Approximation<T, V>
fn clone(&self) -> Approximation<T, V>
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 moreimpl<T: Copy, V: Copy> Copy for Approximation<T, V>
impl<T: Eq, V: Eq> Eq for Approximation<T, V>
impl<T, V> StructuralPartialEq for Approximation<T, V>
Auto Trait Implementations§
impl<T, V> Freeze for Approximation<T, V>
impl<T, V> RefUnwindSafe for Approximation<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for Approximation<T, V>
impl<T, V> Sync for Approximation<T, V>
impl<T, V> Unpin for Approximation<T, V>
impl<T, V> UnwindSafe for Approximation<T, V>where
T: UnwindSafe,
V: 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