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

Method join

crates/test-util/src/component_fuzz.rs:57–63  ·  view source on GitHub ↗

This is the `join` operation specified in [the canonical ABI](https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md#flattening) for variant types.

(self, other: Self)

Source from the content-addressed store, hash-verified

55 /// ABI](https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md#flattening) for
56 /// variant types.
57 fn join(self, other: Self) -> Self {
58 match (self, other) {
59 _ if self == other => self,
60 (Self::I32, Self::F32) | (Self::F32, Self::I32) => Self::I32,
61 _ => Self::I64,
62 }
63 }
64}
65
66impl fmt::Display for CoreType {

Callers 8

buildMethod · 0.45
build_rust_testsMethod · 0.45
build_adapterMethod · 0.45
build_non_rust_testsMethod · 0.45
build_c_or_cpp_testMethod · 0.45
lower_variantFunction · 0.45
find_testsFunction · 0.45
parse_test_configFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected