Struct mentat_query_projector::QueryOutput
[−]
[src]
pub struct QueryOutput { pub spec: Rc<FindSpec>, pub results: QueryResults, }
Fields
spec: Rc<FindSpec>
results: QueryResults
Methods
impl QueryOutput
[src]
pub fn empty_factory(spec: &FindSpec) -> Box<Fn() -> QueryResults>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn empty(spec: &Rc<FindSpec>) -> QueryOutput
[src]
pub fn from_constants(
spec: &Rc<FindSpec>,
bindings: VariableBindings
) -> QueryResults
[src]
spec: &Rc<FindSpec>,
bindings: VariableBindings
) -> QueryResults
pub fn into_scalar(self) -> Result<Option<Binding>>
[src]
pub fn into_coll(self) -> Result<Vec<Binding>>
[src]
pub fn into_tuple<B>(self) -> Result<Option<B>> where
B: BindingTuple,
[src]
B: BindingTuple,
Mentat tuple results can be expressed as multiple different data structures. Some structures are generic (vectors) and some are easier for pattern matching (fixed length tuples).
This is the moral equivalent of collect
(and BindingTuple
of FromIterator
), but
specialized to tuples of expected length.
pub fn into_rel(self) -> Result<RelResult<Binding>>
[src]
Trait Implementations
impl Clone for QueryOutput
[src]
fn clone(&self) -> QueryOutput
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for QueryOutput
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for QueryOutput
[src]
fn eq(&self, __arg_0: &QueryOutput) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &QueryOutput) -> bool
[src]
This method tests for !=
.
impl Eq for QueryOutput
[src]
impl From<QueryOutput> for QueryResults
[src]
fn from(o: QueryOutput) -> QueryResults
[src]
Performs the conversion.