pub fn result_types(
return_ty: Option<&ResolvedType>,
) -> Result<Vec<ValType>, TypeMapError>Expand description
Map a function return_type to a Vec<ValType> suitable for
wasm_encoder::TypeSection::function.
None (unit return) and Some(Primitive(Never)) both produce an
empty vector.