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

Method ty

crates/fuzzing/src/generators/value.rs:25–38  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

23
24impl DiffValue {
25 fn ty(&self) -> DiffValueType {
26 match self {
27 DiffValue::I32(_) => DiffValueType::I32,
28 DiffValue::I64(_) => DiffValueType::I64,
29 DiffValue::F32(_) => DiffValueType::F32,
30 DiffValue::F64(_) => DiffValueType::F64,
31 DiffValue::V128(_) => DiffValueType::V128,
32 DiffValue::FuncRef { .. } => DiffValueType::FuncRef,
33 DiffValue::ExternRef { .. } => DiffValueType::ExternRef,
34 DiffValue::AnyRef { .. } => DiffValueType::AnyRef,
35 DiffValue::ExnRef { .. } => DiffValueType::ExnRef,
36 DiffValue::ContRef { .. } => DiffValueType::ContRef,
37 }
38 }
39
40 /// Generate a [`DiffValue`] of the given `ty` type.
41 ///

Callers 15

gc_opsFunction · 0.45
call_asyncFunction · 0.45
arbitrary_valFunction · 0.45
dummy_linkerFunction · 0.45
dummy_function_importFunction · 0.45
make_api_callsFunction · 0.45
exported_functionsMethod · 0.45
exported_globalsMethod · 0.45
evaluateMethod · 0.45
build_wasmFunction · 0.45
check_stacksFunction · 0.45

Calls

no outgoing calls

Tested by 7

dummy_function_importFunction · 0.36
func_tyFunction · 0.36
tag_tyFunction · 0.36
shared_memory_tyFunction · 0.36
global_tyFunction · 0.36
memory_tyFunction · 0.36
table_tyFunction · 0.36