Skip to main content

invoke

Function invoke 

Source
pub fn invoke(
    node: &NodeProto,
    inputs: &[(&str, &dyn SlotValue)],
    _ctx: &mut RuntimeResourceRef<'_>,
) -> Result<DispatchResult, OpError>
Expand description

Invoke fn - validate the incoming CompositeValue against the declared child count, emit each typed child on child_{i} via SlotValue::clone_boxed. Downstream consumers downcast directly to the concrete type the graph contract guarantees at each child site.