Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PyRefMap and PyRefMapMut for borrowing data nested within a PyRef/PyRefMut #4203

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    b76d919 View commit details
    Browse the repository at this point in the history
  2. Implemented second draft of PyRefMap and PyRefMapMut. These struc…

    …ts are now opaque, w.r.t. the owner, including both the `PyRef` flavor and the underlying pyclass.
    JRRudy1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    c5ffcfa View commit details
    Browse the repository at this point in the history
  3. Implemented third draft of PyRefMap and PyRefMapMut. The `PyRefMa…

    …p` struct is now opaque w.r.t. only the `PyRef` flavor and the `Frozen`-ness of the pyclass so that the struct can use either `PyRef` or `PyRefMut` as the owner. `PyRefMapMut` is no longer opaque since it only needs to support `PyRefMut` where `T` is `Frozen`.
    JRRudy1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    ce80650 View commit details
    Browse the repository at this point in the history
  4. Implemented fourth draft of PyRefMap and PyRefMapMut. Both types …

    …are now aliases for a single struct `PyRefMapBase` that has a `Mut: Boolean` generic parameter indicating whether it supports `DerefMut`. The underlying `PyRef`/`PyRefMut` flavor is opaque, as well as the pyclass `Frozen`-ness, but the pyclass type is visible.
    JRRudy1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    f9308d4 View commit details
    Browse the repository at this point in the history
  5. Implemented fifth draft of PyRefMap and PyRefMapMut. The is simil…

    …ar to the 4th draft, with a single base struct being reused for both `PyRefMap` and `PyRefMapMut`, but the pyclass type is now opaque as well.
    JRRudy1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    323a1eb View commit details
    Browse the repository at this point in the history
  6. Cleanup and documentation.

    JRRudy1 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    6c040f6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    134a5d7 View commit details
    Browse the repository at this point in the history