[−][src]Enum sophia::query::Query
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]
&'a mut self,
graph: &'a G
) -> Box<dyn Iterator<Item = GResult<'a, G, BindingMap>> + 'a>
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]
&'a mut self,
graph: &'a G,
initial_bindings: BindingMap
) -> Box<dyn Iterator<Item = GResult<'a, G, BindingMap>> + 'a>
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,