Commit graph

8 commits

Author SHA1 Message Date
9ff8007cae Switch usages of ContentStyle to Style 2023-02-16 21:24:52 +01:00
4ffaae067e Export all types at top level 2023-02-16 09:37:31 +01:00
0a3b193f79 Fix clippy lint 2023-01-05 17:34:30 +01:00
8942b381f5 Add and fix some lints 2022-12-11 20:44:06 +01:00
dfc10f9d09 Fix splitting Styleds 2022-08-03 13:22:38 +02:00
26a8936cf5 Store Styled with contiguous string
The previous implementation of Styled used chunks that consisted of a
String and a ContentStyle. The current implementation instead stores a
single String and chunks consisting of a ContentStyle and an ending
index.

This implementation may reduce allocations and makes width-related
operations easier, for example getting the width of a Styled with its
whitespace trimmed.
2022-08-01 19:02:57 +02:00
f0af4ddc40 Expose chunks and chunk contents 2022-07-07 16:18:51 +02:00
9b0d80873f Use styled chunks of text instead of plain strings 2022-07-04 19:38:28 +02:00