Skip to main content

Interpolatable

Trait Interpolatable 

Source
pub trait Interpolatable: Sized + Clone {
    // Provided method
    fn interpolate(&self, _other: &Self, _t: f64) -> Self { ... }
}
Expand description

Marks a value as able to participate in Pax property transitions.

Provided Methods§

Source

fn interpolate(&self, _other: &Self, _t: f64) -> Self

Interpolates this value toward other at time t on the unit interval.

The default implementation acts like a None ease: the first value is simply retained until the transition completes. Vectors interpolate element by element when lengths match and switch to the destination immediately when their lengths differ. Integer interpolation uses floating-point arithmetic and truncates the result.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Interpolatable for ()

Source§

impl Interpolatable for BezPath

Source§

impl Interpolatable for ExpandedNode

Source§

impl Interpolatable for ExpandedNodeIdentifier

Source§

impl Interpolatable for Instant

Source§

impl Interpolatable for RouteLocation

Source§

impl Interpolatable for RouteMatch

Source§

impl Interpolatable for ScrollPosition

Source§

impl Interpolatable for SettingsTransitionConfig

Source§

impl Interpolatable for String

Source§

impl Interpolatable for TemplateNodeId

Source§

impl Interpolatable for TypeId

Source§

impl Interpolatable for UniqueTemplateNodeIdentifier

Source§

impl Interpolatable for bool

Source§

fn interpolate(&self, _other: &bool, _t: f64) -> bool

Source§

impl Interpolatable for char

Source§

impl Interpolatable for f64

Source§

fn interpolate(&self, other: &f64, t: f64) -> f64

Source§

impl Interpolatable for i8

Source§

fn interpolate(&self, other: &i8, t: f64) -> i8

Source§

impl Interpolatable for i16

Source§

fn interpolate(&self, other: &i16, t: f64) -> i16

Source§

impl Interpolatable for i32

Source§

fn interpolate(&self, other: &i32, t: f64) -> i32

Source§

impl Interpolatable for i64

Source§

fn interpolate(&self, other: &i64, t: f64) -> i64

Source§

impl Interpolatable for i128

Source§

fn interpolate(&self, other: &i128, t: f64) -> i128

Source§

impl Interpolatable for isize

Source§

fn interpolate(&self, other: &isize, t: f64) -> isize

Source§

impl Interpolatable for u8

Source§

fn interpolate(&self, other: &u8, t: f64) -> u8

Source§

impl Interpolatable for u16

Source§

fn interpolate(&self, other: &u16, t: f64) -> u16

Source§

impl Interpolatable for u32

Source§

fn interpolate(&self, other: &u32, t: f64) -> u32

Source§

impl Interpolatable for u64

Source§

fn interpolate(&self, other: &u64, t: f64) -> u64

Source§

impl Interpolatable for u128

Source§

fn interpolate(&self, other: &u128, t: f64) -> u128

Source§

impl Interpolatable for usize

Source§

fn interpolate(&self, other: &usize, t: f64) -> usize

Source§

impl<I> Interpolatable for Range<I>
where I: Interpolatable,

Source§

fn interpolate(&self, _other: &Range<I>, _t: f64) -> Range<I> ⓘ

Source§

impl<I> Interpolatable for Vec<I>
where I: Interpolatable,

Source§

fn interpolate(&self, other: &Vec<I>, t: f64) -> Vec<I>

Source§

impl<T1, T2> Interpolatable for (T1, T2)

Source§

impl<T> Interpolatable for HashSet<T>
where T: Clone + ?Sized,

Source§

impl<T> Interpolatable for Option<T>
where T: Interpolatable,

Source§

fn interpolate(&self, other: &Option<T>, t: f64) -> Option<T>

Source§

impl<T> Interpolatable for Rc<T>
where T: ?Sized,

Source§

impl<T> Interpolatable for VecDeque<T>
where T: Clone + ?Sized,

Source§

impl<T> Interpolatable for Weak<T>
where T: Interpolatable,

Implementors§

Source§

impl Interpolatable for Accel

Source§

impl Interpolatable for Color

Source§

impl Interpolatable for ContainerFrame

Source§

impl Interpolatable for Depth

Source§

impl Interpolatable for Duration

Source§

impl Interpolatable for Fill

Source§

impl Interpolatable for Gyro

Source§

impl Interpolatable for LayoutHull

Source§

impl Interpolatable for LayoutProperties

Source§

impl Interpolatable for LayoutRole

Source§

impl Interpolatable for LightShape

Source§

impl Interpolatable for Material

Source§

impl Interpolatable for MaterialParams

Source§

impl Interpolatable for MeshGradient

Source§

impl Interpolatable for MeshPoint

Source§

impl Interpolatable for NativeLiquidGlassScope

Source§

impl Interpolatable for NodeInterface

Source§

impl Interpolatable for Numeric

Source§

impl Interpolatable for Opacity

Source§

impl Interpolatable for OpacityScope

Source§

impl Interpolatable for Paint

Source§

impl Interpolatable for PathElement

Source§

impl Interpolatable for PathSmoothing

Source§

impl Interpolatable for PaxValue

Source§

impl Interpolatable for Percent

Source§

impl Interpolatable for Rotation

Source§

impl Interpolatable for SafeAreaInsets

Source§

impl Interpolatable for SceneAmbientLight

Source§

impl Interpolatable for SceneLight

Source§

impl Interpolatable for SceneLighting

Source§

impl Interpolatable for Size

Source§

impl Interpolatable for Stroke

Source§

impl Interpolatable for StrokeCap

Source§

impl Interpolatable for StrokeJoin

Source§

impl Interpolatable for TargetInfo

Source§

impl Interpolatable for TaskStatus

Source§

impl Interpolatable for Transform2D

Source§

impl Interpolatable for UnitValue

Source§

impl Interpolatable for Vector3

Source§

impl Interpolatable for Viewport

Source§

impl<F, T> Interpolatable for TransformAndBounds<F, T>
where F: Space, T: Space,

Source§

impl<T> Interpolatable for LocalProperty<T>
where T: PropertyValue,

Source§

impl<T> Interpolatable for Property<T>

Source§

impl<W, T> Interpolatable for Transform2<W, T>
where W: Space, T: Space,

Source§

impl<W> Interpolatable for Point2<W>
where W: Space,

Source§

impl<W> Interpolatable for Vector2<W>
where W: Space,