pub trait Query {
// Required method
fn process_with_context<'a, T: Queryable>(
&self,
state: State<'a, T>,
ctx: &mut JsonPathEvalContext,
) -> State<'a, T>;
// Provided method
fn process<'a, T: Queryable>(&self, state: State<'a, T>) -> State<'a, T> { ... }
}Expand description
Main internal trait to implement the logic of processing jsonpath.
Required Methods§
Sourcefn process_with_context<'a, T: Queryable>(
&self,
state: State<'a, T>,
ctx: &mut JsonPathEvalContext,
) -> State<'a, T>
fn process_with_context<'a, T: Queryable>( &self, state: State<'a, T>, ctx: &mut JsonPathEvalContext, ) -> State<'a, T>
Processes the state, reusing what ctx keeps.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".