Skip to content

Commit

Permalink
feat: Make BuildHandle::num_value_outputs public (#1560)
Browse files Browse the repository at this point in the history
Mini API improvement.

The alternative required creating an output wires array and checking its
length...
  • Loading branch information
aborgna-q authored Oct 8, 2024
1 parent 3345700 commit 3b03f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-core/src/builder/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<T: NodeHandle> NodeHandle for BuildHandle<T> {
impl<T: NodeHandle> BuildHandle<T> {
#[inline]
/// Number of Value kind outputs from this node.
fn num_value_outputs(&self) -> usize {
pub fn num_value_outputs(&self) -> usize {
self.num_value_outputs
}

Expand Down

0 comments on commit 3b03f2c

Please sign in to comment.