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.
Implementations§
Trait Implementations§
Source§impl Clone for MainEngine
impl Clone for MainEngine
Source§fn clone(&self) -> MainEngine
fn clone(&self) -> MainEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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 Debug for MainEngine
impl Debug for MainEngine
Source§impl<'de> Deserialize<'de> for MainEngine
impl<'de> Deserialize<'de> for MainEngine
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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