andxor ,
@andxor@mstdn.social avatar

@became_fish yes, you use mutable references for that use cases. They're equivalent to non-const pointers in C++, with the exception that Rust references don't cause undefined behavior

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