pyo3/newsfragments/4219.added.md

277 B

  • Added as_super methods to PyRef and PyRefMut for accesing the base class by reference
  • Updated user guide to recommend as_super for referencing the base class instead of as_ref
  • Added pyo3::internal_tricks::ptr_from_mut function for casting &mut T to *mut T