diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/types.rs | 6 |
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 { |
