Function repr::adt::jsonb::pack_dict[][src]

fn pack_dict<'a, 'scratch>(
    row: &mut Row,
    scratch: VecStack<'scratch, DictEntry<'a>>,
    entries: &'a [Command<'a>]
)
Expand description

Packs a sequence of (key, val) pairs as an ordered dictionary.

The keys are required to be Command::String variants, and the entries in the dictionary are sorted by these strings. Multiple values for the same key are detected and only the last value is kept.