Closed VonTum closed 8 months ago
Thanks for the PR! Sorry about the delay in responding, I'm going to try to find time to review this over the next day.
Thanks for the superb PR. Usually with a PR of this length I challenge myself to find at least one problem with it, but I'm at a loss here: all looks good. Thanks again!
Reminder to self: update changelog and bump version
That is quite the compliment! Thank you :smile:
great news, thank you both! 🥳
I've added the possibility to use byte spans at the Report level. You can configure using byte spans by calling
I went down a few paths in trying to implement this without API breaks, before settling on making it configurable in the ReportBuilder. Doing it this way allows the user to use the same Span types as before, just with byte indices.
I performed this addition in two steps. Refactoring write.rs to store the computed char span in LabelInfo's
char_span : Range<usize>
field everywhere. In the second part I convert the given byte spans to char spans, if the Report's been configured to.