diff options
| author | KyleMiles <krm504@nyu.edu> | 2021-02-10 22:04:29 +0000 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2021-03-18 01:50:19 +0000 |
| commit | 534c3bc85860d2c14a490cf68ea1174cb9edbfde (patch) | |
| tree | f7b21045d0f2ab855c49da8b38440977f971a72e /rust/src/disassembly.rs | |
| parent | 1515df8e71412787470b27d04ed9b2944fca0fdc (diff) | |
Better type support
Diffstat (limited to 'rust/src/disassembly.rs')
| -rw-r--r-- | rust/src/disassembly.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/src/disassembly.rs b/rust/src/disassembly.rs index 8dfec753..e784b1ca 100644 --- a/rust/src/disassembly.rs +++ b/rust/src/disassembly.rs @@ -26,7 +26,10 @@ pub type InstructionTextTokenContext = BNInstructionTextTokenContext; pub struct InstructionTextToken(pub(crate) BNInstructionTextToken); +// TODO : Consider remodeling this after types::EnumerationMember impl InstructionTextToken { + // TODO : New vs new_with_value ? + pub fn new(type_: InstructionTextTokenType, text: &str, value: u64) -> Self { let raw_name = BnString::new(text); |
