Skip to main content

propagate_inputs

Function propagate_inputs 

Source
pub fn propagate_inputs(
    parent: &dyn Kernel,
    child: &mut dyn Kernel,
) -> Result<(), WriteError>
Expand description

Copy parent’s input values into child’s inputs of the same name: what carries a cascade of externs down a scope tree past what the child imports as outputs.

Coordinates are not copied; a host positions a child with set_inputs. An input with no value on the parent is skipped. A value the child’s declared input refuses is an error naming both, not a skip (input_variance.md §7).