[][src]Enum sophia::query::Query

pub enum Query {
    Triples(Vec<[RcTerm; 3]>),
}

A query can be processed against a graph, producing a sequence of binding maps.

Variants

Triples(Vec<[RcTerm; 3]>)

Methods

impl Query[src]

pub fn process<'a, G: Graph<'a>>(
    &'a mut self,
    graph: &'a G
) -> Box<dyn Iterator<Item = GResult<'a, G, BindingMap>> + 'a>
[src]

Process this query against the given graph, and return an fallible iterator of BindingMaps.

The iterator may fail (i.e. yield Err) if an operation on the graph fails.

pub fn process_with<'a, G: Graph<'a>>(
    &'a mut self,
    graph: &'a G,
    initial_bindings: BindingMap
) -> Box<dyn Iterator<Item = GResult<'a, G, BindingMap>> + 'a>
[src]

Process this query against the given graph, and return an fallible iterator of BindingMaps, starting with the given bindings.

The iterator may fail (i.e. yield Err) if an operation on the graph fails.

Auto Trait Implementations

impl !Sync for Query

impl !Send for Query

impl Unpin for Query

impl !RefUnwindSafe for Query

impl UnwindSafe for Query

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]