Skip to main content

Module array

Module array 

Source
Expand description

Functionality relating to the JSON array type.

IArray is the public type for JSON arrays. It is a thin, transparent wrapper around an IValue that is known to be an array; the heap layout and every operation on it live in the crate::value::array representation module. Each method here simply delegates down to that module.

§Safety

IArray maintains the invariant that its wrapped IValue (self.0) always has the Array tag, which is exactly the precondition the value::array functions require. Every delegation below relies on that invariant.

Structs§

IArray
The IArray type is similar to a Vec<IValue>. The primary difference is that the length and capacity are stored inside the heap allocation, so that the IArray itself can be a single pointer.
IntoIter
Iterator over IValues returned from IArray::into_iter