servo/unicode-bidi

Make types generic over encoding

開放

#113 建立於 2023年10月30日

 (0 則留言) (0 個反應) (0 位負責人)Rust (38 個分叉)github user discovery
help wanted

倉庫指標

星標
 (87 顆星)
PR 合併指標
 (平均合併 4天 12小時) (30 天內合併 2 個 PR)

描述

See https://github.com/servo/unicode-bidi/pull/109

Currently we have BidiInfo and then utf16::BidiInfo types (with other similar duplication).

It would be nice if instead we had BidiInfo<T>, ParagraphInfo<T>, etc, which all used some trait input like TextInfo; rather than having duplicate types for everything. We might need some kind of UTF8 UTF16 marker type for this.

I don't have the time to do this myself but it would be really neat. Especially if we can extend stuff to UTF32 as well as WTF8 and other ill-formed UTF8.

貢獻者指南