summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-12-25 14:24:57 -0500
committerJosh Ferrell <josh@vector35.com>2025-12-25 14:25:07 -0500
commit2ccba5081488225007810f232dbe063512ebc4bd (patch)
tree506bbc5a33c15f2b9c85f6036d37f5df04e63d2e /rust/src
parent1b552d72eff547ef53a4e9af9a95382f9031f681 (diff)
[Rust API] Add TypeBuilder::set_signed
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/types.rs6
1 files changed, 6 insertions, 0 deletions
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<T: Into<Conf<bool>>>(&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 {