workflow::utils

Function get_edge

Source
pub fn get_edge(wir: &Workflow, pc: ProgramCounter) -> Option<&Edge>
Expand description

Gets a workflow edge from a PC.

§Arguments

  • wir: The ast::Workflow to get the edge from.
  • pc: The program counter that points to the edge (hopefully).

§Returns

The edge the pc pointed to, or None if it was out-of-bounds.