You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: Remove node parameter from Circuit (#824)
The update to `hugr 0.15` added a `Node` associated type to `HugrView`.
Over here, that got implemented as a new type parameter in `Circuit`,
```rust
struct Circuit<T = Hugr, N = Node>
```
All `impl` blocks however restrain it to the specific hugr support,
```rust
impl<T: HugrView> Circuit<T, T::Node> { ... }
```
Given how both types are connected, we should be using `T::Node`
directly since an unrelated node type is not usable here.
This PR changes the definition to
```rust
pub struct Circuit<T: HugrView = Hugr>
```
As this is a breaking change, it can wait until the next breaking
release.
BREAKING CHANGE: Removed node type parameter from `Circuit`
0 commit comments