zng_var::animation

Trait Transitionable

source
pub trait Transitionable: VarValue {
    // Required method
    fn lerp(self, to: &Self, step: EasingStep) -> Self;
}
Expand description

Represents a type that can be animated between two values.

This trait is auto-implemented for all Copy types that can add, subtract and multiply by Factor, Clone only types must implement this trait manually.

Required Methods§

source

fn lerp(self, to: &Self, step: EasingStep) -> Self

Sample the linear interpolation from self -> to by step.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Transitionable for bool

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for f32

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for f64

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for i8

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for i16

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for i32

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for i64

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for i128

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for isize

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for u8

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for u16

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for u32

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for u64

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for u128

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for usize

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for AngleDegree

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for AngleGradian

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for AngleRadian

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for AngleTurn

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for ByteLength

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for Rgba

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for Factor

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for Dip

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl Transitionable for Px

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for CornerRadius2D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Box2D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Box3D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Length<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Point2D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Point3D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Rect<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for SideOffsets2D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Size2D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Size3D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Vector2D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

source§

impl<T, U> Transitionable for Vector3D<T, U>
where T: Transitionable, U: Send + Sync + Any,

source§

fn lerp(self, to: &Self, step: EasingStep) -> Self

Implementors§