pub type CallDynFn = fn(&mut DynSegment, &[&dyn Any]) -> Result<Box<dyn Any>>;
Executes a compiled segment with the supplied inputs and boxes the result.