wasm_encoder::reencode::utils

Function parse_element

Source
pub fn parse_element<T: ?Sized + Reencode>(
    reencoder: &mut T,
    elements: &mut ElementSection,
    element: Element<'_>,
) -> Result<(), Error<T::Error>>
Available on crate feature wasmparser only.
Expand description

Parses the single wasmparser::Element provided and adds it to the element section.