Struct mentat_query_projector::ConstantProjector
[−]
[src]
pub struct ConstantProjector { /* fields omitted */ }
A projector that produces a QueryResult
containing fixed data.
Takes a boxed function that should return an empty result set of the desired type.
Methods
impl ConstantProjector
[src]
pub fn new(
spec: Rc<FindSpec>,
results_factory: Box<Fn() -> QueryResults>
) -> ConstantProjector
[src]
spec: Rc<FindSpec>,
results_factory: Box<Fn() -> QueryResults>
) -> ConstantProjector