became_fish OP , 1 month ago how do i pass around segments of a string without copying? in C++ it's a string_view. in Rust i need to copy the string into a Vec<char>, then use unsafe pointer arithmetic to get a &str from it without copying again?
how do i pass around segments of a string without copying? in C++ it's a string_view. in Rust i need to copy the string into a Vec<char>, then use unsafe pointer arithmetic to get a &str from it without copying again?