From 2ccba5081488225007810f232dbe063512ebc4bd Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 25 Dec 2025 14:24:57 -0500 Subject: [Rust API] Add TypeBuilder::set_signed --- rust/src/types.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rust/src') diff --git a/rust/src/types.rs b/rust/src/types.rs index 417dc554..f6722c15 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -149,6 +149,12 @@ impl TypeBuilder { self.set_child_type(ty) } + pub fn set_signed>>(&self, value: T) -> &Self { + let mut bool_with_confidence = value.into().into(); + unsafe { BNTypeBuilderSetSigned(self.handle, &mut bool_with_confidence) }; + self + } + // Readable properties pub fn type_class(&self) -> TypeClass { -- cgit v1.3.1