pub struct QuerySolution<S: SRDFBasic> { /* private fields */ }
Expand description
Represents one query solution
Implementations§
Source§impl<S: SRDFBasic> QuerySolution<S>
impl<S: SRDFBasic> QuerySolution<S>
pub fn new( variables: Vec<VarName>, values: Vec<Option<S::Term>>, ) -> QuerySolution<S>
pub fn find_solution( &self, index: impl VariableSolutionIndex<S>, ) -> Option<&S::Term>
pub fn variables(&self) -> impl Iterator<Item = &VarName>
pub fn convert<T: SRDFBasic, F>(&self, cnv_term: F) -> QuerySolution<T>
pub fn show(&self) -> String
Trait Implementations§
Source§impl<S: Clone + SRDFBasic> Clone for QuerySolution<S>
impl<S: Clone + SRDFBasic> Clone for QuerySolution<S>
Source§fn clone(&self) -> QuerySolution<S>
fn clone(&self) -> QuerySolution<S>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<S> Freeze for QuerySolution<S>
impl<S> RefUnwindSafe for QuerySolution<S>
impl<S> Send for QuerySolution<S>
impl<S> Sync for QuerySolution<S>
impl<S> Unpin for QuerySolution<S>
impl<S> UnwindSafe for QuerySolution<S>
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