News for hackers. Stuff that matters.
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.
Re:Fast Math Rendering on the Web by llogiq on Monday April 13, 2020 @04:34AM (#22854110)
Then perhaps the bstr crate (https://docs.rs/bstr/0.2.12/bstr) might be what you want.