-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SiblingMut allowing modification of a SiblingGraph (#522)
* Combine `HugrView::get_io` methods - could pull that out into a preliminary PR, it's just tidying a wrapper function * Also `HugrMut::add_op_with_parent` is just a wrapper around `add_node_with_parent` so make that a default-impl too * SibingMut implementation parallels SiblingView for many methods, but not all, as does not its own PortGraph * Reimplement OutlineCfg to use nested SiblingMut instances (escaping to &mut Hugr for `set_parent`) * Refactor tests so we test calling OutlineCfg on a SiblingMut of only a portion of a Hugr
- Loading branch information
Showing
6 changed files
with
326 additions
and
121 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
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.