Pointer types

available on nightly stabilization

Summary

GATs allow code to be generic over "references to data". This can include Rc vs Arc, but also other more abstract situations.

Details

(To be written.)

References

  • Pythonesque's comment covered one case where they wanted something like a pointer types pattern (I think) but had to work around it, as well as commits from Veloren that may be this pattern (but could also be "many modes").
  • evenyag writes about type-exercise-in-rust