pub type ContextOutcomeIterator<'vertex, VertexT, OutcomeT> = Box<dyn Iterator<Item = (DataContext<VertexT>, OutcomeT)> + 'vertex>;
Expand description

Iterator of (context, outcome) tuples: the output type of most resolver functions.

Resolver functions produce an output value for each context:

  • resolve_property() produces that property’s value;
  • resolve_neighbors() produces an iterator of neighboring vertices along an edge;
  • resolve_coercion() gives a bool representing whether the vertex is of the desired type.

This type lets us write those output types in a slightly more readable way.

Aliased Type§

struct ContextOutcomeIterator<'vertex, VertexT, OutcomeT>(/* private fields */);