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

Method from

crates/parser/src/error.rs:64–66  ·  view source on GitHub ↗
(value: wasmparser::BinaryReaderError)

Source from the content-addressed store, hash-verified

62
63impl From<wasmparser::BinaryReaderError> for ParseError {
64 fn from(value: wasmparser::BinaryReaderError) -> Self {
65 Self::ParseError { message: value.message().to_string(), offset: value.offset() }
66 }
67}
68
69pub(crate) type Result<T, E = ParseError> = core::result::Result<T, E>;

Callers

nothing calls this directly

Calls 2

messageMethod · 0.80
offsetMethod · 0.45

Tested by

no test coverage detected