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

Can't `Vec<u8>` serve the same purpose?


Then you have to do a deep clone every time. Arc<Vec<u8>> is also not sufficient, because Bytes lets you share a reference count among slices to different offset into the buffer.




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

Search: