diff options
| author | Alexander Taylor <alex@vector35.com> | 2026-05-12 21:19:28 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2026-05-13 13:32:22 -0400 |
| commit | 4c278a57b59c4b8e913d17b47bc4828659b32659 (patch) | |
| tree | d179792a704c615a3838ecfbfe636bc537d82216 /rust | |
| parent | 6a1c332697cbe12d6b2b7857bf21bc440706c0be (diff) | |
Changes related to display as/type toggling.
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/src/types.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs index f45d93bc..e6c16f6b 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -171,6 +171,11 @@ impl TypeBuilder { self } + pub fn set_integer_display_type(&self, display_type: IntegerDisplayType) -> &Self { + unsafe { BNSetIntegerTypeDisplayType(self.handle, display_type) }; + self + } + // Readable properties pub fn type_class(&self) -> TypeClass { @@ -189,6 +194,10 @@ impl TypeBuilder { unsafe { BNIsTypeBuilderSigned(self.handle).into() } } + pub fn integer_display_type(&self) -> IntegerDisplayType { + self.finalize().integer_display_type() + } + pub fn is_const(&self) -> Conf<bool> { unsafe { BNIsTypeBuilderConst(self.handle).into() } } @@ -689,6 +698,10 @@ impl Type { unsafe { BNIsTypeSigned(self.handle).into() } } + pub fn integer_display_type(&self) -> IntegerDisplayType { + unsafe { BNGetIntegerTypeDisplayType(self.handle) } + } + pub fn is_const(&self) -> Conf<bool> { unsafe { BNIsTypeConst(self.handle).into() } } |
