pub trait Query<R> {
// Required method
fn run(&self, graph: &KnowledgeGraph) -> R;
}Expand description
Query trait implemented by all query types.
Given an immutable reference to a KnowledgeGraph, returns a result of type R.
pub trait Query<R> {
// Required method
fn run(&self, graph: &KnowledgeGraph) -> R;
}Query trait implemented by all query types.
Given an immutable reference to a KnowledgeGraph, returns a result of type R.