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

Method err

crates/wasmtime/src/runtime/component/types.rs:534–539  ·  view source on GitHub ↗

Retrieve the `err` type parameter for this `result`.

(&self)

Source from the content-addressed store, hash-verified

532
533 /// Retrieve the `err` type parameter for this `result`.
534 pub fn err(&self) -> Option<Type> {
535 Some(Type::from(
536 self.0.types[self.0.index].err.as_ref()?,
537 &self.0.instance(),
538 ))
539 }
540}
541
542impl PartialEq for ResultType {

Callers 15

check_for_crashMethod · 0.45
call_signature_mismatchFunction · 0.45
typed_concrete_paramFunction · 0.45
typed_concrete_resultFunction · 0.45
trappingFunction · 0.45
p2_random_limitsFunction · 0.45
iloop_abortsFunction · 0.45

Calls 3

fromFunction · 0.85
as_refMethod · 0.45
instanceMethod · 0.45

Tested by 15

call_signature_mismatchFunction · 0.36
trappingFunction · 0.36
p2_random_limitsFunction · 0.36
tuple_resultFunction · 0.36
string_list_oobFunction · 0.36
invalid_alignmentFunction · 0.36
lower_then_liftFunction · 0.36