pub struct MainEngine { /* 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
Source§type E = MainEngine
type E = MainEngine
Concrete type of the
Engines
created,
parameterized with the lifetime of the input query.Source§fn compile_query(query: &JsonPathQuery) -> Result<Self, CompilerError>
fn compile_query(query: &JsonPathQuery) -> Result<Self, CompilerError>
Source§impl Engine for MainEngine
impl Engine for MainEngine
Source§fn count<I>(&self, input: &I) -> Result<MatchCount, EngineError>where
I: Input,
fn count<I>(&self, input: &I) -> Result<MatchCount, EngineError>where
I: Input,
Source§fn approximate_spans<I, S>(
&self,
input: &I,
sink: &mut S,
) -> Result<(), EngineError>
fn approximate_spans<I, S>( &self, input: &I, sink: &mut S, ) -> Result<(), EngineError>
Auto Trait Implementations§
impl Freeze for MainEngine
impl RefUnwindSafe for MainEngine
impl !Send for MainEngine
impl !Sync for MainEngine
impl Unpin for MainEngine
impl UnwindSafe for MainEngine
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