Struct rsonpath_lib::engine::main::MainEngine
source · pub struct MainEngine<'q> { /* private fields */ }
Expand description
Main engine for a fixed JSONPath query.
The engine is stateless, meaning that it can be executed on any number of separate inputs, even on separate threads.
Trait Implementations§
source§impl Compiler for MainEngine<'_>
impl Compiler for MainEngine<'_>
§type E<'q> = MainEngine<'q>
type E<'q> = MainEngine<'q>
Concrete type of the
Engines
created,
parameterized with the lifetime of the input query.source§fn compile_query(query: &JsonPathQuery) -> Result<MainEngine<'_>, CompilerError>
fn compile_query(query: &JsonPathQuery) -> Result<MainEngine<'_>, CompilerError>
source§impl Engine for MainEngine<'_>
impl Engine for MainEngine<'_>
source§fn run<R: QueryResult>(&self, input: &Input) -> Result<R, EngineError>
fn run<R: QueryResult>(&self, input: &Input) -> Result<R, EngineError>
Auto Trait Implementations§
impl<'q> RefUnwindSafe for MainEngine<'q>
impl<'q> !Send for MainEngine<'q>
impl<'q> !Sync for MainEngine<'q>
impl<'q> Unpin for MainEngine<'q>
impl<'q> UnwindSafe for MainEngine<'q>
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