mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
53 lines
45 KiB
HTML
53 lines
45 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `DummyEnvironment` struct in crate `wasmer_clif_fork_wasm`."><meta name="keywords" content="rust, rustlang, rust-lang, DummyEnvironment"><title>wasmer_clif_fork_wasm::DummyEnvironment - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../wasmer_clif_fork_wasm/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct DummyEnvironment</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.info">info</a><a href="#structfield.func_bytecode_sizes">func_bytecode_sizes</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.func_env">func_env</a><a href="#method.get_num_func_imports">get_num_func_imports</a><a href="#method.new">new</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-ModuleEnvironment%3C%27data%3E">ModuleEnvironment<'data></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>wasmer_clif_fork_wasm</a></p><script>window.sidebarCurrent = {name: 'DummyEnvironment', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#112-127' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>wasmer_clif_fork_wasm</a>::<wbr><a class="struct" href=''>DummyEnvironment</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct DummyEnvironment {
|
||
pub info: DummyModuleInfo,
|
||
pub func_bytecode_sizes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
|
||
// some fields omitted
|
||
}</pre></div><div class='docblock'><p>This <code>ModuleEnvironment</code> implementation is a "naïve" one, doing essentially nothing and
|
||
emitting placeholders when forced to. Don't try to execute code translated for this
|
||
environment, essentially here for translation debug purposes.</p>
|
||
</div><h2 id='fields' class='fields small-section-header'>
|
||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.info" class="structfield small-section-header"><a href="#structfield.info" class="anchor field"></a><code id="info.v">info: DummyModuleInfo</code></span><div class='docblock'><p>Module information.</p>
|
||
</div><span id="structfield.func_bytecode_sizes" class="structfield small-section-header"><a href="#structfield.func_bytecode_sizes" class="anchor field"></a><code id="func_bytecode_sizes.v">func_bytecode_sizes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span><div class='docblock'><p>Vector of wasm bytecode size for each function.</p>
|
||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../wasmer_clif_fork_wasm/struct.DummyEnvironment.html" title="struct wasmer_clif_fork_wasm::DummyEnvironment">DummyEnvironment</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#129-155' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(<br> config: <a class="struct" href="../cranelift_codegen/isa/struct.TargetFrontendConfig.html" title="struct cranelift_codegen::isa::TargetFrontendConfig">TargetFrontendConfig</a>, <br> return_mode: <a class="enum" href="../wasmer_clif_fork_wasm/enum.ReturnMode.html" title="enum wasmer_clif_fork_wasm::ReturnMode">ReturnMode</a>, <br> debug_info: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> Self</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#131-139' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a new <code>DummyEnvironment</code> instance.</p>
|
||
</div><h4 id='method.func_env' class="method"><code id='func_env.v'>pub fn <a href='#method.func_env' class='fnname'>func_env</a>(&self) -> DummyFuncEnvironment</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a <code>DummyFuncEnvironment</code> for translating functions within this
|
||
<code>DummyEnvironment</code>.</p>
|
||
</div><h4 id='method.get_num_func_imports' class="method"><code id='get_num_func_imports.v'>pub fn <a href='#method.get_num_func_imports' class='fnname'>get_num_func_imports</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#152-154' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return the number of imported functions within this <code>DummyEnvironment</code>.</p>
|
||
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-ModuleEnvironment%3C%27data%3E' class='impl'><code class='in-band'>impl<'data> <a class="trait" href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html" title="trait wasmer_clif_fork_wasm::ModuleEnvironment">ModuleEnvironment</a><'data> for <a class="struct" href="../wasmer_clif_fork_wasm/struct.DummyEnvironment.html" title="struct wasmer_clif_fork_wasm::DummyEnvironment">DummyEnvironment</a></code><a href='#impl-ModuleEnvironment%3C%27data%3E' class='anchor'></a><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#365-500' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.target_config' class="method hidden"><code id='target_config.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.target_config' class='fnname'>target_config</a>(&self) -> <a class="struct" href="../cranelift_codegen/isa/struct.TargetFrontendConfig.html" title="struct cranelift_codegen::isa::TargetFrontendConfig">TargetFrontendConfig</a></code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#366-368' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Get the information needed to produce Cranelift IR for the current target.</p>
|
||
</div><h4 id='method.declare_signature' class="method hidden"><code id='declare_signature.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_signature' class='fnname'>declare_signature</a>(&mut self, sig: <a class="struct" href="../cranelift_codegen/ir/extfunc/struct.Signature.html" title="struct cranelift_codegen::ir::extfunc::Signature">Signature</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#370-372' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a function signature to the environment.</p>
|
||
</div><h4 id='method.declare_func_import' class="method hidden"><code id='declare_func_import.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_func_import' class='fnname'>declare_func_import</a>(<br> &mut self, <br> sig_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.SignatureIndex.html" title="struct wasmer_clif_fork_wasm::SignatureIndex">SignatureIndex</a>, <br> module: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> field: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#374-389' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a function import to the environment.</p>
|
||
</div><h4 id='method.declare_func_type' class="method hidden"><code id='declare_func_type.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_func_type' class='fnname'>declare_func_type</a>(&mut self, sig_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.SignatureIndex.html" title="struct wasmer_clif_fork_wasm::SignatureIndex">SignatureIndex</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#391-393' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares the type (signature) of a local function in the module.</p>
|
||
</div><h4 id='method.declare_global' class="method hidden"><code id='declare_global.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_global' class='fnname'>declare_global</a>(&mut self, global: <a class="struct" href="../wasmer_clif_fork_wasm/struct.Global.html" title="struct wasmer_clif_fork_wasm::Global">Global</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#395-397' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a global to the environment.</p>
|
||
</div><h4 id='method.declare_global_import' class="method hidden"><code id='declare_global_import.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_global_import' class='fnname'>declare_global_import</a>(<br> &mut self, <br> global: <a class="struct" href="../wasmer_clif_fork_wasm/struct.Global.html" title="struct wasmer_clif_fork_wasm::Global">Global</a>, <br> module: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> field: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#399-404' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a global import to the environment.</p>
|
||
</div><h4 id='method.declare_table' class="method hidden"><code id='declare_table.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_table' class='fnname'>declare_table</a>(&mut self, table: <a class="struct" href="../wasmer_clif_fork_wasm/struct.Table.html" title="struct wasmer_clif_fork_wasm::Table">Table</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#406-408' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a table to the environment.</p>
|
||
</div><h4 id='method.declare_table_import' class="method hidden"><code id='declare_table_import.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_table_import' class='fnname'>declare_table_import</a>(<br> &mut self, <br> table: <a class="struct" href="../wasmer_clif_fork_wasm/struct.Table.html" title="struct wasmer_clif_fork_wasm::Table">Table</a>, <br> module: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> field: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#410-415' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a table import to the environment.</p>
|
||
</div><h4 id='method.declare_table_elements' class="method hidden"><code id='declare_table_elements.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_table_elements' class='fnname'>declare_table_elements</a>(<br> &mut self, <br> _table_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.TableIndex.html" title="struct wasmer_clif_fork_wasm::TableIndex">TableIndex</a>, <br> _base: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../wasmer_clif_fork_wasm/struct.GlobalIndex.html" title="struct wasmer_clif_fork_wasm::GlobalIndex">GlobalIndex</a>>, <br> _offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> _elements: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><a class="struct" href="../wasmer_clif_fork_wasm/struct.FuncIndex.html" title="struct wasmer_clif_fork_wasm::FuncIndex">FuncIndex</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>><br>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#417-425' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Fills a declared table with references to functions in the module.</p>
|
||
</div><h4 id='method.declare_memory' class="method hidden"><code id='declare_memory.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_memory' class='fnname'>declare_memory</a>(&mut self, memory: <a class="struct" href="../wasmer_clif_fork_wasm/struct.Memory.html" title="struct wasmer_clif_fork_wasm::Memory">Memory</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#427-429' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a memory to the environment</p>
|
||
</div><h4 id='method.declare_memory_import' class="method hidden"><code id='declare_memory_import.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_memory_import' class='fnname'>declare_memory_import</a>(<br> &mut self, <br> memory: <a class="struct" href="../wasmer_clif_fork_wasm/struct.Memory.html" title="struct wasmer_clif_fork_wasm::Memory">Memory</a>, <br> module: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> field: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#431-436' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a memory import to the environment.</p>
|
||
</div><h4 id='method.declare_data_initialization' class="method hidden"><code id='declare_data_initialization.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_data_initialization' class='fnname'>declare_data_initialization</a>(<br> &mut self, <br> _memory_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.MemoryIndex.html" title="struct wasmer_clif_fork_wasm::MemoryIndex">MemoryIndex</a>, <br> _base: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../wasmer_clif_fork_wasm/struct.GlobalIndex.html" title="struct wasmer_clif_fork_wasm::GlobalIndex">GlobalIndex</a>>, <br> _offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> _data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'data [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#438-446' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Fills a declared memory with bytes at module instantiation.</p>
|
||
</div><h4 id='method.declare_func_export' class="method hidden"><code id='declare_func_export.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_func_export' class='fnname'>declare_func_export</a>(&mut self, func_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.FuncIndex.html" title="struct wasmer_clif_fork_wasm::FuncIndex">FuncIndex</a>, name: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#448-452' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a function export to the environment.</p>
|
||
</div><h4 id='method.declare_table_export' class="method hidden"><code id='declare_table_export.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_table_export' class='fnname'>declare_table_export</a>(&mut self, table_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.TableIndex.html" title="struct wasmer_clif_fork_wasm::TableIndex">TableIndex</a>, name: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#454-458' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a table export to the environment.</p>
|
||
</div><h4 id='method.declare_memory_export' class="method hidden"><code id='declare_memory_export.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_memory_export' class='fnname'>declare_memory_export</a>(&mut self, memory_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.MemoryIndex.html" title="struct wasmer_clif_fork_wasm::MemoryIndex">MemoryIndex</a>, name: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#460-464' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a memory export to the environment.</p>
|
||
</div><h4 id='method.declare_global_export' class="method hidden"><code id='declare_global_export.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_global_export' class='fnname'>declare_global_export</a>(&mut self, global_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.GlobalIndex.html" title="struct wasmer_clif_fork_wasm::GlobalIndex">GlobalIndex</a>, name: &'data <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#466-470' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares a global export to the environment.</p>
|
||
</div><h4 id='method.declare_start_func' class="method hidden"><code id='declare_start_func.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.declare_start_func' class='fnname'>declare_start_func</a>(&mut self, func_index: <a class="struct" href="../wasmer_clif_fork_wasm/struct.FuncIndex.html" title="struct wasmer_clif_fork_wasm::FuncIndex">FuncIndex</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#472-475' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Declares the optional start function.</p>
|
||
</div><h4 id='method.define_function_body' class="method hidden"><code id='define_function_body.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.define_function_body' class='fnname'>define_function_body</a>(<br> &mut self, <br> body_bytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'data [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> body_offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> <a class="type" href="../wasmer_clif_fork_wasm/type.WasmResult.html" title="type wasmer_clif_fork_wasm::WasmResult">WasmResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/dummy.rs.html#477-499' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the contents of a function body. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#tymethod.define_function_body">Read more</a></p>
|
||
</div><h4 id='method.reserve_signatures' class="method hidden"><code id='reserve_signatures.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_signatures' class='fnname'>reserve_signatures</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#267' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of signatures up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_signatures">Read more</a></p>
|
||
</div><h4 id='method.reserve_imports' class="method hidden"><code id='reserve_imports.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_imports' class='fnname'>reserve_imports</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#274' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of imports up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_imports">Read more</a></p>
|
||
</div><h4 id='method.finish_imports' class="method hidden"><code id='finish_imports.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.finish_imports' class='fnname'>finish_imports</a>(&mut self)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#294' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Notifies the implementation that all imports have been declared.</p>
|
||
</div><h4 id='method.reserve_func_types' class="method hidden"><code id='reserve_func_types.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_func_types' class='fnname'>reserve_func_types</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#298' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of defined functions up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_func_types">Read more</a></p>
|
||
</div><h4 id='method.reserve_tables' class="method hidden"><code id='reserve_tables.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_tables' class='fnname'>reserve_tables</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#305' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of defined tables up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_tables">Read more</a></p>
|
||
</div><h4 id='method.reserve_memories' class="method hidden"><code id='reserve_memories.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_memories' class='fnname'>reserve_memories</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#312' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of defined memories up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_memories">Read more</a></p>
|
||
</div><h4 id='method.reserve_globals' class="method hidden"><code id='reserve_globals.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_globals' class='fnname'>reserve_globals</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#319' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of defined globals up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_globals">Read more</a></p>
|
||
</div><h4 id='method.reserve_exports' class="method hidden"><code id='reserve_exports.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_exports' class='fnname'>reserve_exports</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#326' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of exports up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_exports">Read more</a></p>
|
||
</div><h4 id='method.finish_exports' class="method hidden"><code id='finish_exports.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.finish_exports' class='fnname'>finish_exports</a>(&mut self)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#341' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Notifies the implementation that all exports have been declared.</p>
|
||
</div><h4 id='method.reserve_table_elements' class="method hidden"><code id='reserve_table_elements.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_table_elements' class='fnname'>reserve_table_elements</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#348' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of element initializers up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_table_elements">Read more</a></p>
|
||
</div><h4 id='method.reserve_data_initializers' class="method hidden"><code id='reserve_data_initializers.v'>fn <a href='../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_data_initializers' class='fnname'>reserve_data_initializers</a>(&mut self, _num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code><a class='srclink' href='../src/wasmer_clif_fork_wasm/environ/spec.rs.html#371' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Provides the number of data initializers up front. By default this does nothing, but implementations can use this to preallocate memory if desired. <a href="../wasmer_clif_fork_wasm/trait.ModuleEnvironment.html#method.reserve_data_initializers">Read more</a></p>
|
||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../wasmer_clif_fork_wasm/struct.DummyEnvironment.html" title="struct wasmer_clif_fork_wasm::DummyEnvironment">DummyEnvironment</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../wasmer_clif_fork_wasm/struct.DummyEnvironment.html" title="struct wasmer_clif_fork_wasm::DummyEnvironment">DummyEnvironment</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../wasmer_clif_fork_wasm/struct.DummyEnvironment.html" title="struct wasmer_clif_fork_wasm::DummyEnvironment">DummyEnvironment</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../wasmer_clif_fork_wasm/struct.DummyEnvironment.html" title="struct wasmer_clif_fork_wasm::DummyEnvironment">DummyEnvironment</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../wasmer_clif_fork_wasm/struct.DummyEnvironment.html" title="struct wasmer_clif_fork_wasm::DummyEnvironment">DummyEnvironment</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#552-554' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#543-548' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#545-547' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "wasmer_clif_fork_wasm";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |