Function trustfall_core::interpreter::helpers::resolve_property_with
source · pub fn resolve_property_with<'vertex, Vertex: Debug + Clone + 'vertex, V: AsVertex<Vertex> + 'vertex>(
contexts: ContextIterator<'vertex, V>,
resolver: impl FnMut(&Vertex) -> FieldValue + 'vertex
) -> ContextOutcomeIterator<'vertex, V, FieldValue>
Expand description
Helper for implementing BasicAdapter::resolve_property
and equivalents.
Takes a property-resolver function and applies it over each of the vertices in the input context iterator, one at a time.
Often used with resolvers from the field_property!
and
accessor_property!
macros.