Skip to content

Commit 10e9a75

Browse files
committed
feat: Hugrmut on generic nodes
- Allows `HugrMut` to be implemented for `HugrView`s with arbitrary node types - Removes `HugrMutInternals::hugr_mut(&mut self) -> &mut Hugr`, it can be implemented for more complex types drive-by: Fix a couple bugs in rewrite implementations that assumed that `SiblingMut` contained transitive children.
1 parent d8a5d67 commit 10e9a75

29 files changed

+638
-567
lines changed

hugr-core/src/builder/build_traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub trait Container {
153153
where
154154
ExtensionRegistry: Extend<Reg>,
155155
{
156-
self.hugr_mut().extensions_mut().extend(registry);
156+
self.hugr_mut().use_extensions(registry);
157157
}
158158
}
159159

0 commit comments

Comments
 (0)