Struct mentat_transaction::query::QueryOutput
[−]
[src]
pub struct QueryOutput { pub spec: Rc<FindSpec>, pub results: QueryResults, }
Fields
spec: Rc<FindSpec>
results: QueryResults
Methods
impl QueryOutput
[src]
ⓘImportant traits for Box<R>pub fn empty_factory(spec: &FindSpec) -> Box<Fn() + 'static>
[src]
ⓘImportant traits for Box<R>
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: BTreeMap<Variable, TypedValue>
) -> QueryResults
[src]
spec: &Rc<FindSpec>,
bindings: BTreeMap<Variable, TypedValue>
) -> QueryResults
pub fn into_scalar(self) -> Result<Option<Binding>, ProjectorError>
[src]
pub fn into_coll(self) -> Result<Vec<Binding>, ProjectorError>
[src]
pub fn into_tuple<B>(self) -> Result<Option<B>, ProjectorError> 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>, ProjectorError>
[src]
Trait Implementations
impl From<QueryOutput> for QueryResults
[src]
fn from(o: QueryOutput) -> QueryResults
[src]
Performs the conversion.
impl Debug for QueryOutput
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
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 Eq for QueryOutput
[src]
impl PartialEq<QueryOutput> 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 !=
.