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>>
Expand description

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