Trait Query

Source
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.

Required Methods§

Source

fn run(&self, graph: &KnowledgeGraph) -> R

Implementors§