Skip to main content

QueryBuilder

Trait QueryBuilder 

Source
pub trait QueryBuilder {
    type Context: QueryContext;
    type Location: Serialize + DeserializeOwned + PartialEq;
    type Candidate: Candidate;
    type Query: Query<Context = Self::Context, Location = Self::Location, Candidate = Self::Candidate>;

    // Required method
    fn build_query(
        &mut self,
        candidate: &Self::Candidate,
        location: &Self::Location,
        context: &Self::Context,
    ) -> Self::Query;
}
Expand description

Helper object used to build a query object

Required Associated Types§

Required Methods§

Source

fn build_query( &mut self, candidate: &Self::Candidate, location: &Self::Location, context: &Self::Context, ) -> Self::Query

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§