Skip to main content

wiring_for

Function wiring_for 

Source
pub fn wiring_for(
    dependent_plugs: &[Plug],
    target_sockets: &[Socket],
) -> WireMatch
Expand description

Match each plug on the dependent against the target’s sockets, returning a WireMatch describing the outcome.

Per SRD-0005 D15, a plug with more than one fitting socket is an authoring error — the caller (the compiler) escalates an Ambiguous entry into a compile failure.