Skip to main content

EvalDyn

Trait EvalDyn 

Source
pub(super) trait EvalDyn {
    // Required methods
    fn eval_frame(&self, alpha: f64, output: &mut OutputContext<'_>);
    fn eval_capture(&self, alpha: f64, output: &mut Vec<DynOutput>);

    // Provided method
    fn sim_step(&self) -> Option<f64> { ... }
}
Expand description

The erased visual-leaf protocol held by the runtime tree.

Ordinary sampling inserts each complete typed output directly. Holds capture the same raw values and replay them without introducing a container payload.

Required Methods§

Source

fn eval_frame(&self, alpha: f64, output: &mut OutputContext<'_>)

Source

fn eval_capture(&self, alpha: f64, output: &mut Vec<DynOutput>)

Provided Methods§

Source

fn sim_step(&self) -> Option<f64>

The iterative content step, if this leaf is an iterative segment.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl EvalDyn for HeldOutput

Source§

impl<E> EvalDyn for E
where E: Eval, E::Output: Clone + Send + Sync + 'static,