Struct rsonpath::result::CountResultBuilder
source · pub struct CountResultBuilder { /* private fields */ }
Expand description
The QueryResultBuilder
for CountResult
.
Trait Implementations§
source§impl<'i, I: Input> QueryResultBuilder<'i, I, CountResult> for CountResultBuilder
impl<'i, I: Input> QueryResultBuilder<'i, I, CountResult> for CountResultBuilder
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) -> CountResult
fn finish(self) -> CountResult
Finish building the result and return it.
Auto Trait Implementations§
impl RefUnwindSafe for CountResultBuilder
impl Send for CountResultBuilder
impl Sync for CountResultBuilder
impl Unpin for CountResultBuilder
impl UnwindSafe for CountResultBuilder
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