MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / ext_into_anyhow

Method ext_into_anyhow

crates/core/src/error/context.rs:290–295  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

288
289 #[cfg(feature = "anyhow")]
290 fn ext_into_anyhow(mut self) -> anyhow::Error {
291 match self.error.take() {
292 Some(error) => anyhow::Error::from(error).context(self.context),
293 None => anyhow::Error::msg(self),
294 }
295 }
296}

Callers

nothing calls this directly

Calls 4

fromFunction · 0.85
msgFunction · 0.85
takeMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected