Re:Fast Math Rendering on the Web
by kevincox on Sunday April 12, 2020 @08:05AM
(#22847668)
Unfortunately `&[u8]` is missing a lot of convenience methods that are on `&str`. It is getting better over time but I have definitely encounter the problem before where I tried to switch some string-based code to byte-based and was disappointed by the missing functionality.
[ Parent
| on HN ]
Then perhaps the bstr crate (https://docs.rs/bstr/0.2.12/bstr) might be what you want.