Skip to main content

resolve_pinning

Function resolve_pinning 

Source
pub fn resolve_pinning<S>(
    node: &mut CompositionNode,
    store: &S,
) -> Result<ResolutionReport, ResolutionError>
where S: StageStore + ?Sized,
Expand description

Walk a composition tree and rewrite every Stage node’s id field to a concrete, in-store StageId. See the module doc for rationale and invariants.

Returns the list of rewrites and diagnostics performed on success, or the first ResolutionError on failure. The graph is left partially-rewritten on error; callers that want atomic behaviour should clone before calling.