Function apply_wire
pub fn apply_wire(sop: &mut Sop, edit: &WireEdit) -> Result<(), WireError>Expand description
Apply one wire edit to a draft SOP, mutating the routing field the edit’s
role maps to. Validates both endpoints first; on Err the SOP is
unchanged. Semantics per role:
Sequenceconnect setsrouting.nextand clearsterminal; disconnect clears a matchingnextand setsterminalso the implicit fallthrough edge does not immediately reappear.Dependencyeditsto’sdepends_on(connect is idempotent).Failuresets/clearson_failure: gotoonfrom.Switchsets/clearsrouting.switch[port].gotoonfrom; connect grows the port list with default rules up toport.