Struct wasm_bindgen_cli_support::Bindgen[][src]

pub struct Bindgen { /* fields omitted */ }

Methods

impl Bindgen
[src]

Explicitly specify the already parsed input module.

Note that this API is a little wonky to avoid tying itself with a public dependency on the parity-wasm crate, what we currently use to parse wasm mdoules.

If the module argument is a parity_wasm::Module then it will be used directly. Otherwise it will be passed to into_bytes to serialize the module to a vector of bytes, and this will deserialize the module later.

Note that even if the argument passed in is a parity_wasm::Module it doesn't mean that this won't invoke into_bytes, if the parity_wasm crate versions are different we'll have to go through serialization.

Auto Trait Implementations

impl Send for Bindgen

impl Sync for Bindgen