From 3b03f2cff50cf17554f053ab2dc34086c2473ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:47:59 +0100 Subject: [PATCH] feat: Make `BuildHandle::num_value_outputs` public (#1560) Mini API improvement. The alternative required creating an output wires array and checking its length... --- hugr-core/src/builder/handle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugr-core/src/builder/handle.rs b/hugr-core/src/builder/handle.rs index f6058e2d8..84a7b6d64 100644 --- a/hugr-core/src/builder/handle.rs +++ b/hugr-core/src/builder/handle.rs @@ -33,7 +33,7 @@ impl NodeHandle for BuildHandle { impl BuildHandle { #[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 }