wasm_encoder::reencode::utils

Function parse_import

source
pub fn parse_import<T: ?Sized + Reencode>(
    reencoder: &mut T,
    imports: &mut ImportSection,
    import: Import<'_>,
) -> Result<(), Error<T::Error>>
Available on crate feature wasmparser only.
Expand description

Parses the single wasmparser::Import provided and adds it to the import section.