pub enum QueryResults<'a> {
Solutions(QuerySolutionIter<'a>),
Boolean(bool),
Graph(QueryTripleIter<'a>),
}Expand description
Results of a SPARQL query.
Variants§
Solutions(QuerySolutionIter<'a>)
Results of a SELECT query.
Boolean(bool)
Result of a ASK query.
Graph(QueryTripleIter<'a>)
Trait Implementations§
Source§impl<'a> From<QuerySolutionIter<'a>> for QueryResults<'a>
impl<'a> From<QuerySolutionIter<'a>> for QueryResults<'a>
Source§fn from(value: QuerySolutionIter<'a>) -> Self
fn from(value: QuerySolutionIter<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<QueryTripleIter<'a>> for QueryResults<'a>
impl<'a> From<QueryTripleIter<'a>> for QueryResults<'a>
Source§fn from(value: QueryTripleIter<'a>) -> Self
fn from(value: QueryTripleIter<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a, R: Read + 'a> From<ReaderQueryResultsParserOutput<R>> for QueryResults<'a>
impl<'a, R: Read + 'a> From<ReaderQueryResultsParserOutput<R>> for QueryResults<'a>
Source§fn from(output: ReaderQueryResultsParserOutput<R>) -> Self
fn from(output: ReaderQueryResultsParserOutput<R>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SliceQueryResultsParserOutput<'a>> for QueryResults<'a>
impl<'a> From<SliceQueryResultsParserOutput<'a>> for QueryResults<'a>
Source§fn from(output: SliceQueryResultsParserOutput<'a>) -> Self
fn from(output: SliceQueryResultsParserOutput<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for QueryResults<'a>
impl<'a> !RefUnwindSafe for QueryResults<'a>
impl<'a> !Send for QueryResults<'a>
impl<'a> !Sync for QueryResults<'a>
impl<'a> Unpin for QueryResults<'a>
impl<'a> !UnwindSafe for QueryResults<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more