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

Method from

crates/c-api/src/component/val.rs:60–62  ·  view source on GitHub ↗
(value: &wasmtime_component_vallist_t)

Source from the content-addressed store, hash-verified

58
59impl From<&wasmtime_component_vallist_t> for Vec<Val> {
60 fn from(value: &wasmtime_component_vallist_t) -> Self {
61 value.as_slice().iter().map(Val::from).collect()
62 }
63}
64
65impl From<&[Val]> for wasmtime_component_vallist_t {

Callers

nothing calls this directly

Calls 15

fromFunction · 0.85
OkFunction · 0.85
Float32Class · 0.85
Float64Class · 0.85
EnumClass · 0.85
ResultClass · 0.85
collectMethod · 0.80
is_okMethod · 0.80
newFunction · 0.50
ListClass · 0.50
RecordClass · 0.50
TupleClass · 0.50

Tested by

no test coverage detected