pub trait DepthIterator<'a, I: QuoteClassifiedIterator<'a>>: Iterator<Item = Self::Block> + 'a {
    type Block: DepthBlock<'a>;

    fn resume(
        state: ResumeClassifierState<'a, I>,
        opening: u8
    ) -> (Option<Self::Block>, Self); fn stop(self, block: Option<Self::Block>) -> ResumeClassifierState<'a, I>; }
Expand description

Trait for depth iterators, i.e. finite iterators returning depth information about JSON documents.

Required Associated Types

Type of the DepthBlock implementation used by this iterator.

Required Methods

Stop classification and return a state object that can be used to resume a classifier from the place in which the current one was stopped.

Resume classification from a state retrieved by a previous DepthIterator::stop or StructuralIterator::stop invocation.

Implementors