Function wasm_encoder::reencode::utils::new_function_with_parsed_locals
source ยท pub fn new_function_with_parsed_locals<T: ?Sized + Reencode>(
reencoder: &mut T,
func: &FunctionBody<'_>,
) -> Result<Function, Error<T::Error>>
Expand description
Create a new crate::Function
by parsing the locals declarations from the
provided wasmparser::FunctionBody
.