Module structural

Source
Expand description

Classification of structurally significant JSON bytes.

Provides the Structural struct and StructuralIterator trait that allow effectively iterating over structural characters in a JSON document.

Classifying Commas and Colons is disabled by default. It can be enabled on demand by calling StructuralIterator::turn_commas_on/StructuralIterator::turn_colons_on. This configuration is persisted across stop and resume calls.

A structural classifier needs ownership over a base QuoteClassifiedIterator.

Enums§

BracketType
Defines the kinds of brackets that can be identified as structural.
Structural
Defines structural characters in JSON documents.

Traits§

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