Skip to main content

Transition

Trait Transition 

Source
pub trait Transition: Send + Sync {
    // Required method
    fn compose(
        &self,
        progress: f64,
        outgoing: Node,
        incoming: Node,
        context: &SceneContext<'_>,
    ) -> Node;

    // Provided method
    fn easing(&self) -> Easing { ... }
}
Expand description

A stateless composition of two already evaluated clip snapshots.

Required Methods§

Source

fn compose( &self, progress: f64, outgoing: Node, incoming: Node, context: &SceneContext<'_>, ) -> Node

Composes finite progress in 0..=1 inside the context design viewport.

Provided Methods§

Source

fn easing(&self) -> Easing

continuous-time easing; finite overshoot is clamped by the scheduler.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Transition for Arc<dyn Transition>

Source§

fn compose( &self, progress: f64, outgoing: Node, incoming: Node, context: &SceneContext<'_>, ) -> Node

Source§

fn easing(&self) -> Easing

Implementors§