Struct mentat::RelResult [] [src]

pub struct RelResult<T> {
    pub width: usize,
    pub values: Vec<T>,

The result you get from a 'rel' query, like:

[:find ?person ?name
 :where [?person :person/name ?name]]

There are three ways to get data out of a RelResult:



impl<T> RelResult<T>

Important traits for Chunks<'a, T>

Trait Implementations

impl<T> IntoIterator for RelResult<T>

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<T> Clone for RelResult<T> where
    T: Clone

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Vec<Vec<TypedValue>>> for RelResult<Binding>

Performs the conversion.

impl<T> Eq for RelResult<T> where
    T: Eq

impl<T> PartialEq<RelResult<T>> for RelResult<T> where
    T: PartialEq<T>, 

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Debug for RelResult<T> where
    T: Debug

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for RelResult<T> where
    T: Send

impl<T> Sync for RelResult<T> where
    T: Sync