Struct rsonpath::result::IndexResultBuilder
source · pub struct IndexResultBuilder<'i, I> { /* private fields */ }
Expand description
The QueryResultBuilder
for IndexResult
.
Trait Implementations§
source§impl<'i, I: Input> QueryResultBuilder<'i, I, IndexResult> for IndexResultBuilder<'i, I>
impl<'i, I: Input> QueryResultBuilder<'i, I, IndexResult> for IndexResultBuilder<'i, I>
source§fn new(input: &'i I) -> Self
fn new(input: &'i I) -> Self
Create a new, empty builder, with access to the underlying JSON input. Read more
source§fn report(&mut self, item: usize, hint: NodeTypeHint) -> Result<(), EngineError>
fn report(&mut self, item: usize, hint: NodeTypeHint) -> Result<(), EngineError>
Report a match of the query. The
index
is guaranteed to be between the first character
of the matched value and the previous structural character. Read moresource§fn finish(self) -> IndexResult
fn finish(self) -> IndexResult
Finish building the result and return it.
Auto Trait Implementations§
impl<'i, I> RefUnwindSafe for IndexResultBuilder<'i, I>where I: RefUnwindSafe,
impl<'i, I> Send for IndexResultBuilder<'i, I>where I: Sync,
impl<'i, I> Sync for IndexResultBuilder<'i, I>where I: Sync,
impl<'i, I> Unpin for IndexResultBuilder<'i, I>
impl<'i, I> UnwindSafe for IndexResultBuilder<'i, I>where I: RefUnwindSafe,
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