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§
fn run(&self, graph: &KnowledgeGraph) -> R
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".