Function trustfall_core::interpreter::helpers::resolve_coercion_with
source · pub fn resolve_coercion_with<'vertex, Vertex: Debug + Clone + 'vertex, V: AsVertex<Vertex> + 'vertex>(
contexts: ContextIterator<'vertex, V>,
resolver: impl FnMut(&Vertex) -> bool + 'vertex
) -> ContextOutcomeIterator<'vertex, V, bool>
Expand description
Helper for implementing BasicAdapter::resolve_coercion
and equivalents.
Takes a coercion-resolver function and applies it over each of the vertices in the input context iterator, one at a time.