canConnect

var canConnect: (output: Port, input: Port) -> Boolean(source)

true when a wire can go from output to input, by default when their types are the same or either has none