pub trait Query: Sized {
type Error: Error + 'static;
// Required method
fn parse(query_source: &str) -> Result<Self, Self::Error>;
}
Expand description
Preprocessed query, ready for execution.
This trait exist to allow some implementations of SparqlDataset
to mutualize the parsing of queries in the
prepare_query
method.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.