We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Debug
BinaryViewType
1 parent 21796e5 commit 10eb2dfCopy full SHA for 10eb2df
1 file changed
rust/src/custom_binary_view.rs
@@ -18,6 +18,7 @@ use binaryninjacore_sys::*;
18
19
pub use binaryninjacore_sys::BNModificationStatus as ModificationStatus;
20
21
+use std::fmt::Debug;
22
use std::marker::PhantomData;
23
use std::mem::MaybeUninit;
24
use std::os::raw::c_void;
@@ -381,6 +382,15 @@ impl BinaryViewTypeBase for BinaryViewType {
381
382
}
383
384
385
+impl Debug for BinaryViewType {
386
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
387
+ f.debug_struct("BinaryViewType")
388
+ .field("name", &self.name())
389
+ .field("long_name", &self.long_name())
390
+ .finish()
391
+ }
392
+}
393
+
394
impl CoreArrayProvider for BinaryViewType {
395
type Raw = *mut BNBinaryViewType;
396
type Context = ();
0 commit comments