Commit f38a1048 authored by Luke Sandberg's avatar Luke Sandberg

Replace key_free_values field with PrimaryStorage enum in builders

Using a struct with both `primary: FxIndexMap` and `key_free_values: Vec`
left the mixed case (keyed + key-free in the same builder) as a legitimate
state with ad-hoc handling. An enum makes the two modes mutually exclusive
and self-documenting: either all entries are keyed (dedup by RequestKey)
or none are (append-only). The mixed case — keyed self merging a key-free
other and vice versa — is handled explicitly by promoting the key-free side
before the merge.
parent de4b62b3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment