diff options
| author | Mason Reed <mason@vector35.com> | 2026-04-21 18:10:51 -0700 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-05-10 17:13:08 -0700 |
| commit | c4ba6d79ae3b96d56cc6b3744e7c64e004ecd161 (patch) | |
| tree | 5762fc3ff58b57caec5f42176faf6635c464b4f3 /rust/src/function.rs | |
| parent | 8269a8ac29e59c7949af753dac5c1f36bb700903 (diff) | |
[Rust] Refactor `binary_view` module
- Remove the "viral" `BinaryViewExt` trait and its blanket impl
- Split up the binary view type from the custom trait impl
- Simplify and fix bugs regarding custom binary view initialization
- Rewrite Minidump binary view example, parses the PE headers to create proper sections now
- Add some extra documentation
- Add unit test for custom binary view
Diffstat (limited to 'rust/src/function.rs')
| -rw-r--r-- | rust/src/function.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs index c19e2107..90432af6 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -17,7 +17,7 @@ use binaryninjacore_sys::*; use crate::{ architecture::{Architecture, CoreArchitecture, CoreRegister, Register}, basic_block::{BasicBlock, BlockContext}, - binary_view::{BinaryView, BinaryViewExt}, + binary_view::BinaryView, calling_convention::CoreCallingConvention, component::Component, disassembly::{DisassemblySettings, DisassemblyTextLine}, @@ -1157,7 +1157,7 @@ impl Function { /// Function.add_tag, you'll create an "address tag". These are good for labeling /// specific instructions. /// - /// For tagging arbitrary data, consider [BinaryViewExt::add_tag]. + /// For tagging arbitrary data, consider [BinaryView::add_tag]. /// /// * `tag_type_name` - The name of the tag type for this Tag. /// * `data` - Additional data for the Tag. @@ -1167,7 +1167,7 @@ impl Function { /// # Example /// /// ```no_run - /// # use binaryninja::binary_view::{BinaryView, BinaryViewExt}; + /// # use binaryninja::binary_view::BinaryView; /// # use binaryninja::function::Function; /// # let fun: Function = todo!(); /// # let bv: BinaryView = todo!(); |
