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

Method for_abi_error

crates/wiggle/generate/src/codegen_settings.rs:93–98  ·  view source on GitHub ↗
(&self, tref: &TypeRef)

Source from the content-addressed store, hash-verified

91 }
92
93 pub fn for_abi_error(&self, tref: &TypeRef) -> Option<&ErrorType> {
94 match tref {
95 TypeRef::Name(nt) => self.for_name(nt),
96 TypeRef::Value { .. } => None,
97 }
98 }
99
100 pub fn for_name(&self, nt: &NamedType) -> Option<&ErrorType> {
101 self.m.iter().find(|e| e.abi_type().name == nt.name)

Callers 1

define_module_traitFunction · 0.80

Calls 1

for_nameMethod · 0.80

Tested by

no test coverage detected