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

Function display

crates/core/src/error/vtable.rs:74–82  ·  view source on GitHub ↗
(error: SharedPtr<'_, DynError>, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

72}
73
74unsafe fn display<E>(error: SharedPtr<'_, DynError>, f: &mut fmt::Formatter<'_>) -> fmt::Result
75where
76 E: ErrorExt,
77{
78 let error = error.cast::<ConcreteError<E>>();
79 // Safety: implied by all vtable functions' safety contract.
80 let error = unsafe { error.as_ref() };
81 fmt::Display::fmt(error.error.ext_as_dyn_core_error(), f)
82}
83
84unsafe fn debug<E>(error: SharedPtr<'_, DynError>, f: &mut fmt::Formatter<'_>) -> fmt::Result
85where

Callers

nothing calls this directly

Calls 3

fmtFunction · 0.85
as_refMethod · 0.45
ext_as_dyn_core_errorMethod · 0.45

Tested by

no test coverage detected