became_fish OP ,
@became_fish@jorts.horse avatar

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?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines