We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OpaqueDebug
1 parent 2a2b8c4 commit 97b90efCopy full SHA for 97b90ef
packages/vm/src/parsed_wasm.rs
@@ -8,6 +8,16 @@ use wasmer::wasmparser::{
8
9
use crate::{VmError, VmResult};
10
11
+/// Opaque wrapper type implementing `Debug`
12
+///
13
+/// The purpose of this type is to wrap types that do not implement `Debug` themselves.
14
+/// For example, you have a large struct and derive `Debug` on it but one member does not implement the trait, that's where this type comes in.
15
16
+/// Instead of printing a full debug representation of the underlying data, it simply prints something akin to this:
17
18
+/// ```
19
+/// WrappedType { ... }
20
21
#[derive(Default)]
22
pub struct OpaqueDebug<T>(pub T);
23
0 commit comments