Skip to main content

apply_composer_intent

Function apply_composer_intent 

Source
pub fn apply_composer_intent(
    cx: &mut Cx,
    graph: &Graph,
    intent: &Expr,
) -> Result<Graph>
Expand description

Apply a composer Intent to graph, returning the new graph.

Editing a topology is a checked operation: the caller must hold the topology-write capability, gated exactly like any other writer. The composer applies structural ops without recompiling, because a topology under construction is legitimately incomplete; full validation runs at save or run.