Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Then perhaps the bstr crate (https://docs.rs/bstr/0.2.12/bstr) might be what you want.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: