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

Rewrites work on any HugrMut #282

Merged
merged 4 commits into from
Sep 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make HugrMut pub and extend HugrView
acl-cqc committed Aug 2, 2023
commit c587724ed8847f341ee5b46e729c3b90eac3131d
2 changes: 1 addition & 1 deletion src/hugr/hugrmut.rs
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ use crate::{Hugr, Port};
use super::NodeMetadata;

/// Functions for low-level building of a HUGR. (Or, in the future, a subregion thereof)
pub(crate) trait HugrMut {
pub trait HugrMut: HugrView {
/// Add a node to the graph, with the default conversion from OpType to NodeType
fn add_op(&mut self, op: impl Into<OpType>) -> Node;