icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Introduce a CodePointTrieBorrowed-using borrowed counterpart of CollationDataV1

Open hsivonen opened this issue 3 years ago • 1 comments

CollationElements should hold the new type instead of holding references to CollationDataV1.

See #2554.

hsivonen avatar Sep 14 '22 06:09 hsivonen

The approach I'd recommend here is what we've done in Segmenter and Properties. Have a "foundation" type that holds ownership of the DataPayloads, and then an intermediate type that borrows everything it needs from the foundation. This way you can pull out both the DataPayload::get as well as the ZeroSlice.

sffc avatar Sep 14 '22 06:09 sffc