Skip to main content

EvalDyn

Trait EvalDyn 

Source
pub(super) trait EvalDyn {
    // Required method
    fn eval_into(&self, alpha: f64, output: &mut Vec<DynItem>);

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

The erased visual-leaf protocol: Eval without its type.

This is the only type-erased box in the runtime tree (NodeContent::Leaf) — the open world of user evaluators. Containers are closed runtime variants and never implement this.

Required Methods§

Source

fn eval_into(&self, alpha: f64, output: &mut Vec<DynItem>)

Evaluate this leaf’s content at its normalized progress alpha, pushing the resulting erased items into output.

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<E> EvalDyn for E