pub(crate) fn rewrite(
        &self,
        cx: &mut ModuleContext<'_>,
        store: &crate::Store,
        snapshot: &Snapshot,
        renames: &FuncRenames,
    ) -> Vec<u8> {
        log::debug!("Rewriting input Wasm to pre-initialized state");

        if cx.uses_module_linking() {
            self.rewrite_with_module_linking(cx, store, snapshot, renames)
        } else {
            self.rewrite_without_module_linking(cx, store, snapshot, renames)
        }
    }
/// Given the initialized snapshot, rewrite the Wasm so that it is already
/// initialized.
///
Given the initialized snapshot, rewrite the Wasm so that it is already
initialized.
Given the initialized snapshot rewrite the Wasm so that it is already initialized .
pub(crate) fn rewrite(
        &self,
        cx: &mut ModuleContext<'_>,
        store: &crate::Store,
        snapshot: &Snapshot,
        renames: &FuncRenames,
    ) -> Vec<u8> {
        log::debug!("Rewriting input Wasm to pre-initialized state");
        if cx.uses_module_linking() {
            self.rewrite_with_module_linking(cx, store, snapshot, renames)
        } else {
            self.rewrite_without_module_linking(cx, store, snapshot, renames)
        }
    }
pub ( crate ) fn rewrite ( & self , cx : & mut ModuleContext < ' _ > , store : & crate :: Store , snapshot : & Snapshot , renames : & FuncRenames , ) -> Vec < u8 > { log :: debug ! ( " " ) ; if cx . uses_module_linking ( ) { self . rewrite_with_module_linking ( cx , store , snapshot , renames ) } else { self . rewrite_without_module_linking ( cx , store , snapshot , renames ) } }
Given the initialized snapshot, rewrite the Wasm so that it is already
initialized.
Given the initialized snapshot rewrite the Wasm so that it is already initialized .
&self
cx
&mut ModuleContext<'_>
store
&crate::Store
snapshot
&Snapshot
renames
&FuncRenames
&self
cx
&mut ModuleContext<'_>
store
&crate::Store
snapshot
&Snapshot
renames
&FuncRenames