Skip to main content

extract_mismatch

Function extract_mismatch 

Source
pub fn extract_mismatch(wire: &str, expected: PortType, got: &Value) -> !
Expand description

The failure of a Wire::extract handed a value of a type its port does not carry. The compiler’s typing routes only values of a port’s type to that port, so reaching this is an internal error rather than a workload error. The message names the wire’s Rust type, the port type, and the type of the value received; the engine that catches the panic adds the failing node’s name (engines.md §3.4).