News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by burntsushi on Wednesday January 09, 2019 @09:28PM (#18871029)
In this particular context, you can think of going from a `&str` to a `&[u8]` via `string.as_bytes()` as a safe cast. The in-memory representation remains the same, and the function call will almost certainly be inlined because its implementation is trivial.

There are no comments on this comment yet.