CodingKey
The default BSON representation of a Range
, which is a BSON document keyed by M
(lowerBound
) and V
(upperBound
).
@frozen enum CodingKey
The keys are chosen such that accidentally encoding a Range
as a ClosedRange
will always result in a decoding error.
Some applications that store arrays of ranges may benefit from a specialized buffer layout.