You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a use case where we would need to allocate in order to create a str of which we can then compute the width. If we could instead pass a char iterator to this crate, we could avoid this allocation.
I've seen that internally, the provided &str is already immediately converted to a char iterator (in src/tables.rs:str_width), so the internal logic probably would not need to be modified. Would you be willing to have support for char iterator width computation in the public interface?
Activity
Manishearth commentedon Feb 12, 2026
Yes, perhaps as two free functions.
Support `char` iter width
Support `char` iter width
Support `char` iter width (unicode-rs#83)