pub struct InterpolateOptions<'a> {
pub easing: Option<&'a dyn Fn(f64) -> f64>,
pub extrapolate_left: ExtrapolateType,
pub extrapolate_right: ExtrapolateType,
}Expand description
Options for interpolate.
Fields§
§easing: Option<&'a dyn Fn(f64) -> f64>Optional easing function applied to the normalised t inside each segment.
extrapolate_left: ExtrapolateTypeExtrapolation strategy for values below the first input point.
extrapolate_right: ExtrapolateTypeExtrapolation strategy for values above the last input point.
Trait Implementations§
Source§impl<'a> Clone for InterpolateOptions<'a>
impl<'a> Clone for InterpolateOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InterpolateOptions<'a>
impl<'a> !Send for InterpolateOptions<'a>
impl<'a> !Sync for InterpolateOptions<'a>
impl<'a> !UnwindSafe for InterpolateOptions<'a>
impl<'a> Freeze for InterpolateOptions<'a>
impl<'a> Unpin for InterpolateOptions<'a>
impl<'a> UnsafeUnpin for InterpolateOptions<'a>
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