pub struct Key<T, V> {
pub t: T,
pub value: V,
pub interpolation: Interpolation<T, V>,
}
Expand description
A spline control point.
This type associates a value at a given interpolation parameter value. It also contains an
interpolation mode used to determine how to interpolate values on the segment defined by this
key and the next one – if existing. Have a look at Interpolation
for further details.
Fields§
§t: T
Interpolation parameter at which the Key
should be reached.
value: V
Carried value.
interpolation: Interpolation<T, V>
Interpolation mode.
Implementations§
Trait Implementations§
impl<T: Copy, V: Copy> Copy for Key<T, V>
impl<T: Eq, V: Eq> Eq for Key<T, V>
impl<T, V> StructuralPartialEq for Key<T, V>
Auto Trait Implementations§
impl<T, V> Freeze for Key<T, V>
impl<T, V> RefUnwindSafe for Key<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for Key<T, V>
impl<T, V> Sync for Key<T, V>
impl<T, V> Unpin for Key<T, V>
impl<T, V> UnwindSafe for Key<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)