Struct rsonpath_lib::stackless::StacklessRunner
source · pub struct StacklessRunner<'q> { /* private fields */ }
Expand description
Stackless runner for a fixed JSONPath query.
The runner is stateless, meaning that it can be executed on any number of separate inputs, even on separate threads.
Implementations
sourceimpl StacklessRunner<'_>
impl StacklessRunner<'_>
sourcepub fn compile_query(query: &JsonPathQuery) -> StacklessRunner<'_>
pub fn compile_query(query: &JsonPathQuery) -> StacklessRunner<'_>
Compile a query into a StacklessRunner
.
Compilation time is proportional to the length of the query.
Trait Implementations
sourceimpl Runner for StacklessRunner<'_>
impl Runner for StacklessRunner<'_>
sourcefn run<R: QueryResult>(&self, input: &Input) -> R
fn run<R: QueryResult>(&self, input: &Input) -> R
Compute the
QueryResult
on given Input
.Auto Trait Implementations
impl<'q> RefUnwindSafe for StacklessRunner<'q>
impl<'q> !Send for StacklessRunner<'q>
impl<'q> !Sync for StacklessRunner<'q>
impl<'q> Unpin for StacklessRunner<'q>
impl<'q> UnwindSafe for StacklessRunner<'q>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more