Skip to content

Commit 2ccba50

Browse files
committed
[Rust API] Add TypeBuilder::set_signed
1 parent 1b552d7 commit 2ccba50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rust/src/types.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ impl TypeBuilder {
149149
self.set_child_type(ty)
150150
}
151151

152+
pub fn set_signed<T: Into<Conf<bool>>>(&self, value: T) -> &Self {
153+
let mut bool_with_confidence = value.into().into();
154+
unsafe { BNTypeBuilderSetSigned(self.handle, &mut bool_with_confidence) };
155+
self
156+
}
157+
152158
// Readable properties
153159

154160
pub fn type_class(&self) -> TypeClass {

0 commit comments

Comments
 (0)