Skip to main content

Module factory

Module factory 

Source
Expand description

JSONFactory: owns the arena, uniques strings/numbers, shares hidden classes.

Structs§

JSONFactory
Owns all JSON nodes (in the arena), uniques strings/numbers, and shares hidden classes. Port of JSONFactory (JSONParser.h:524). Accessors take &self; the returned &'a JSONValue lives in the arena, independent of the transient RefCell borrow, so a caller may interleave factory use with parsing (as JSONParserTest::SmokeTest2 does).

Type Aliases§

Prop
A single property: (key, value). The key is a JSONValue::String.