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

Method fmt

crates/wasmtime/src/runtime/component/resource_table.rs:23–30  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

21
22impl fmt::Display for ResourceTableError {
23 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
24 match self {
25 Self::Full => write!(f, "resource table has no free keys"),
26 Self::NotPresent => write!(f, "resource not present"),
27 Self::WrongType => write!(f, "resource is of another type"),
28 Self::HasChildren => write!(f, "resource has children"),
29 }
30 }
31}
32
33impl core::error::Error for ResourceTableError {}

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
is_noneMethod · 0.45

Tested by

no test coverage detected