-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Add associated type Node to HugrView (#1932)
closes #1927 Yey, this is a fun one 🫠 This makes `HugrView` general over the `Node` type. Note that `HugrMut` and all operations that mutate hugrs still only act on the node type `Node`. I suggest once this is merged in that we add a `.git-blame-ignore-revs` file to simplify future git blames: ``` # Commits to be ignored by git blame # Add Node associated type to HugrView (large mechanical change) <commit of this PR on main> ``` BREAKING CHANGE: `HugrView` now has a `Node` associated type. Make your code generic over the node type where you can, replacing `Node` with `H::Node`. Otherwise, use the type bound `H: HugrView<Node = Node>`.
- Loading branch information
Showing
47 changed files
with
815 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.