Expand description
JSON objects.
A JSON Object is a list of key-value Entry in definition order,
not a map: duplicate keys are preserved exactly as they appear in the
source. An internal index still gives O(1) average lookup by key, and
the *_unique accessors report duplicates as an error instead of silently
picking one.
Structs§
- Duplicate
- Two items sharing the same object key.
- Entries
- Iterator over the entries of an
Objectmatching a key, yielding&'a Entry. - Entries
With Index - Iterator over the entries of an
Objectmatching a key, yielding(usize, &'a Entry). - Entry
- Object entry.
- Iter
Mapped - Iterator over the entries of an
Object, with their code map offsets. - IterMut
- Iterator over the entries of an
Object, yielding mutable values. - Mapped
Entries - Iterator over the entries of an
Objectmatching a key, yieldingMappedEntry<'a>with code map offsets. - Mapped
Entries With Index - Iterator over the entries of an
Objectmatching a key, yielding(usize, MappedEntry<'a>)with code map offsets. - Mapped
Values - Iterator over the entries of an
Objectmatching a key, yieldingMapped<&'a Value>with code map offsets. - Mapped
Values With Index - Iterator over the entries of an
Objectmatching a key, yielding(usize, Mapped<&'a Value>)with code map offsets. - Object
- Object.
- Removed
ByInsert Front - Iterator over the entries removed by
Object::insert_front. - Removed
ByInsertion - Iterator over the entries removed by
Object::insert. - Removed
Entries - Iterator over the entries removed by
Object::remove. - Values
- Iterator over the entries of an
Objectmatching a key, yielding&'a Value. - Values
Mut - Mutable iterator over the entries of an
Objectmatching a key, yielding&'a mut Value. - Values
MutWith Index - Mutable iterator over the entries of an
Objectmatching a key, yielding(usize, &'a mut Value). - Values
With Index - Iterator over the entries of an
Objectmatching a key, yielding(usize, &'a Value).
Enums§
- Indexes
- Iterator over the positions of the entries matching a key.
Constants§
- KEY_
CAPACITY - Object key stack capacity.
Traits§
- Equivalent
- Key lookup equivalence.
Type Aliases§
- Duplicate
Entry - Duplicate entry error.
- Indexed
Mapped Entry - A
MappedEntrytogether with its position in the object. - Indexed
Mapped Value - A mapped entry value together with the entry’s position in the object.
- Iter
- Iterator over the entries of an
Object, in definition order. - Key
- Object key.
- Mapped
Entry - Borrowed object entry, with the code map offset of the entry, its key and its value.