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
IArraytype is similar to aVec<IValue>. The primary difference is that the length and capacity are stored inside the heap allocation, so that theIArrayitself can be a single pointer. - Into
Iter - Iterator over
IValues returned fromIArray::into_iter