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]
impl ConstantProjector
pub fn new(
spec: Rc<FindSpec>,
results_factory: Box<Fn() -> QueryResults>
) -> ConstantProjector
[src]
pub fn new(
spec: Rc<FindSpec>,
results_factory: Box<Fn() -> QueryResults>
) -> ConstantProjector
pub fn project_without_rows<'stmt>(&self) -> Result<QueryOutput>
[src]
pub fn project_without_rows<'stmt>(&self) -> Result<QueryOutput>
Trait Implementations
impl Projector for ConstantProjector
[src]
impl Projector for ConstantProjector
Auto Trait Implementations
impl !Send for ConstantProjector
impl !Send for ConstantProjector
impl !Sync for ConstantProjector
impl !Sync for ConstantProjector