pub fn resolve_coercion_using_schema<'vertex, Vertex: Debug + Clone + Typename + 'vertex, V: AsVertex<Vertex> + 'vertex>(
    contexts: ContextIterator<'vertex, V>,
    schema: &'vertex Schema,
    coerce_to_type: &str
) -> ContextOutcomeIterator<'vertex, V, bool>
Expand description

Helper for implementing BasicAdapter::resolve_coercion and equivalents.

Uses the schema to look up all the subtypes of the coercion target type. Then uses the Typename trait to look up the exact runtime type of each vertex and checks if it’s equal or a subtype of the coercion target type.