-
Notifications
You must be signed in to change notification settings - Fork 7
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
Rewrites work on any HugrMut #282
Conversation
e575bf9
to
1bb6d11
Compare
19037c7
to
5e64b0a
Compare
1bb6d11
to
d82c093
Compare
c5e017c
to
91d07bb
Compare
91d07bb
to
b6b1cbd
Compare
b6b1cbd
to
464f56b
Compare
@aborgna-q ping - this is a bit out-of-date but I'm wondering if I should update it or drop it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs some merging with #441, but LGTM.
The merge was very straightforward: remove all changes to HugrMut itself from this PR :-) :-). Thanks! |
Rewrite::verify takes &impl HugrView (not &Hugr); Rewrite::apply takes &mut impl HugrMut (not &mut Hugr).
TransactionalRewrite backs up the portion inside the HugrMut and then restores - this feels a little awkward but may be ok, still not tested though.