From c4ba6d79ae3b96d56cc6b3744e7c64e004ecd161 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 21 Apr 2026 18:10:51 -0700 Subject: [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 --- rust/src/types.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rust/src/types.rs') diff --git a/rust/src/types.rs b/rust/src/types.rs index 65e50040..f45d93bc 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -36,7 +36,7 @@ use binaryninjacore_sys::*; use crate::{ architecture::Architecture, - binary_view::{BinaryView, BinaryViewExt}, + binary_view::BinaryView, calling_convention::CoreCallingConvention, rc::*, string::{BnString, IntoCStr}, @@ -643,7 +643,6 @@ impl Drop for TypeBuilder { /// As an example, defining a _named_ type within a [`BinaryView`]: /// /// ```no_run -/// # use crate::binaryninja::binary_view::BinaryViewExt; /// # use binaryninja::types::Type; /// let bv = binaryninja::load("example.bin").unwrap(); /// let my_custom_type_1 = Type::named_int(5, false, "my_w"); -- cgit v1.3.1