pub trait StructuralIterator<'a, I: QuoteClassifiedIterator<'a>>: Iterator<Item = Structural> + 'a {
    fn stop(self) -> ResumeClassifierState<'a, I>;
    fn resume(state: ResumeClassifierState<'a, I>) -> Self;
}
Expand description

Trait for classifier iterators, i.e. finite iterators of Structural characters that hold a reference to the JSON document valid for 'a.

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 StructuralIterator::stop or DepthIterator::stop invocation.

Implementors