MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / eq

Method eq

crates/tinywasm/src/error.rs:51–64  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

49
50impl PartialEq for Error {
51 fn eq(&self, other: &Self) -> bool {
52 match (self, other) {
53 (Self::Trap(a), Self::Trap(b)) => a == b,
54 (Self::Linker(a), Self::Linker(b)) => a == b,
55 (Self::UnsupportedFeature(a), Self::UnsupportedFeature(b)) => a == b,
56 (Self::Other(a), Self::Other(b)) => a == b,
57 #[cfg(feature = "std")]
58 (Self::Io(a), Self::Io(b)) => a.kind() == b.kind(),
59 #[cfg(feature = "parser")]
60 (Self::Parser(a), Self::Parser(b)) => a == b,
61 (Self::Twasm(a), Self::Twasm(b)) => a == b,
62 _ => false,
63 }
64 }
65}
66
67/// Errors that can occur when linking a WebAssembly module

Callers 1

test_return_invalid_typeFunction · 0.45

Calls 2

kindMethod · 0.80
messageMethod · 0.80

Tested by 1

test_return_invalid_typeFunction · 0.36