Trait VariableSolutionIndex

pub trait VariableSolutionIndex {
    // Required method
    fn index(self, solution: &QuerySolution) -> Option<usize>;
}
Expand description

A utility trait to get values for a given variable or tuple position.

See QuerySolution::get.

Required Methods§

fn index(self, solution: &QuerySolution) -> Option<usize>

Implementations on Foreign Types§

§

impl VariableSolutionIndex for &str

§

fn index(self, solution: &QuerySolution) -> Option<usize>

§

impl VariableSolutionIndex for usize

§

impl VariableSolutionIndex for VariableRef<'_>

§

fn index(self, solution: &QuerySolution) -> Option<usize>

Implementors§