I'm new to Rust. I want to create a mutable u8 buffer.
I tried
let mut str = "hello";
let r = str as *mut u8;
but I get
error[E0606]: casting `&str` as `*mut u8` is invalid
I want to know how but also why. What is the type of "hello"? How does casting works on Rust?