You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Export the portgraph hierarchy in HugrInternals (#2057)
Currently external packages can query the hugr's portgraph, but they
cannot access the associated hierarchy.
This non-breaking change adds a default-implemented method to
`HugrInternals` that returns it. It returns a `Cow` instead of a
straight reference, that can be used for more exotic hugr wrappers.
See the `base_hugr` refactoring issue for more discussion:
#1926
We don't expose a mutable ref, modifications can be done via
`HugrMutInternals` methods.
0 commit comments