diff options
| author | Mason Reed <mason@vector35.com> | 2026-02-05 12:03:40 -0800 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-02-23 00:09:44 -0800 |
| commit | ef967ae27d303bbb6f3a5ea9ff7b1bdfcf6c2637 (patch) | |
| tree | 12f6739b49408a8a01486227d852a86345c1192e /rust | |
| parent | 13e7701c86c284513091a93f37a68d320073dc41 (diff) | |
[Rust] Impl `Debug` for `BinaryViewType`
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/src/custom_binary_view.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rust/src/custom_binary_view.rs b/rust/src/custom_binary_view.rs index 13a124e9..4cd49931 100644 --- a/rust/src/custom_binary_view.rs +++ b/rust/src/custom_binary_view.rs @@ -18,6 +18,7 @@ use binaryninjacore_sys::*; pub use binaryninjacore_sys::BNModificationStatus as ModificationStatus; +use std::fmt::Debug; use std::marker::PhantomData; use std::mem::MaybeUninit; use std::os::raw::c_void; @@ -381,6 +382,15 @@ impl BinaryViewTypeBase for BinaryViewType { } } +impl Debug for BinaryViewType { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("BinaryViewType") + .field("name", &self.name()) + .field("long_name", &self.long_name()) + .finish() + } +} + impl CoreArrayProvider for BinaryViewType { type Raw = *mut BNBinaryViewType; type Context = (); |
