It seems the str trait and implementation are implemented in terms of folding an iterator of chars. Would it be possible to also expose a trait/impl for calculating the width of &[char]? That's the representation I have and a simple sum over char widths doesn't seem correct, AFAICT.
It seems the
strtrait and implementation are implemented in terms of folding an iterator of chars. Would it be possible to also expose a trait/impl for calculating the width of&[char]? That's the representation I have and a simple sum overcharwidths doesn't seem correct, AFAICT.