mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 18:32:15 +00:00
74 lines
44 KiB
HTML
74 lines
44 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 `ParserState` enum in crate `wasmparser`."><meta name="keywords" content="rust, rustlang, rust-lang, ParserState"><title>wasmparser::ParserState - 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 enum"><!--[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='../wasmparser/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Enum ParserState</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Error">Error</a><a href="#variant.Initial">Initial</a><a href="#variant.BeginWasm">BeginWasm</a><a href="#variant.EndWasm">EndWasm</a><a href="#variant.BeginSection">BeginSection</a><a href="#variant.EndSection">EndSection</a><a href="#variant.SkippingSection">SkippingSection</a><a href="#variant.ReadingCustomSection">ReadingCustomSection</a><a href="#variant.ReadingSectionRawData">ReadingSectionRawData</a><a href="#variant.SectionRawData">SectionRawData</a><a href="#variant.TypeSectionEntry">TypeSectionEntry</a><a href="#variant.ImportSectionEntry">ImportSectionEntry</a><a href="#variant.FunctionSectionEntry">FunctionSectionEntry</a><a href="#variant.TableSectionEntry">TableSectionEntry</a><a href="#variant.MemorySectionEntry">MemorySectionEntry</a><a href="#variant.ExportSectionEntry">ExportSectionEntry</a><a href="#variant.NameSectionEntry">NameSectionEntry</a><a href="#variant.StartSectionEntry">StartSectionEntry</a><a href="#variant.DataCountSectionEntry">DataCountSectionEntry</a><a href="#variant.BeginInitExpressionBody">BeginInitExpressionBody</a><a href="#variant.InitExpressionOperator">InitExpressionOperator</a><a href="#variant.EndInitExpressionBody">EndInitExpressionBody</a><a href="#variant.BeginFunctionBody">BeginFunctionBody</a><a href="#variant.FunctionBodyLocals">FunctionBodyLocals</a><a href="#variant.CodeOperator">CodeOperator</a><a href="#variant.EndFunctionBody">EndFunctionBody</a><a href="#variant.SkippingFunctionBody">SkippingFunctionBody</a><a href="#variant.BeginPassiveElementSectionEntry">BeginPassiveElementSectionEntry</a><a href="#variant.BeginActiveElementSectionEntry">BeginActiveElementSectionEntry</a><a href="#variant.ElementSectionEntryBody">ElementSectionEntryBody</a><a href="#variant.EndElementSectionEntry">EndElementSectionEntry</a><a href="#variant.BeginPassiveDataSectionEntry">BeginPassiveDataSectionEntry</a><a href="#variant.BeginActiveDataSectionEntry">BeginActiveDataSectionEntry</a><a href="#variant.EndDataSectionEntry">EndDataSectionEntry</a><a href="#variant.BeginDataSectionEntryBody">BeginDataSectionEntryBody</a><a href="#variant.DataSectionEntryBodyChunk">DataSectionEntryBodyChunk</a><a href="#variant.EndDataSectionEntryBody">EndDataSectionEntryBody</a><a href="#variant.BeginGlobalSectionEntry">BeginGlobalSectionEntry</a><a href="#variant.EndGlobalSectionEntry">EndGlobalSectionEntry</a><a href="#variant.RelocSectionHeader">RelocSectionHeader</a><a href="#variant.RelocSectionEntry">RelocSectionEntry</a><a href="#variant.LinkingSectionEntry">LinkingSectionEntry</a><a href="#variant.SourceMappingURL">SourceMappingURL</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</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'>wasmparser</a></p><script>window.sidebarCurrent = {name: 'ParserState', ty: 'enum', 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/wasmparser/parser.rs.html#70-139' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='index.html'>wasmparser</a>::<wbr><a class="enum" href=''>ParserState</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum ParserState<'a> {
|
||
Error(<a class="struct" href="../wasmparser/struct.BinaryReaderError.html" title="struct wasmparser::BinaryReaderError">BinaryReaderError</a>),
|
||
Initial,
|
||
BeginWasm {
|
||
version: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
},
|
||
EndWasm,
|
||
BeginSection {
|
||
code: <a class="enum" href="../wasmparser/enum.SectionCode.html" title="enum wasmparser::SectionCode">SectionCode</a><'a>,
|
||
range: <a class="struct" href="../wasmparser/struct.Range.html" title="struct wasmparser::Range">Range</a>,
|
||
},
|
||
EndSection,
|
||
SkippingSection,
|
||
ReadingCustomSection(<a class="enum" href="../wasmparser/enum.CustomSectionKind.html" title="enum wasmparser::CustomSectionKind">CustomSectionKind</a>),
|
||
ReadingSectionRawData,
|
||
SectionRawData(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>),
|
||
TypeSectionEntry(<a class="struct" href="../wasmparser/struct.FuncType.html" title="struct wasmparser::FuncType">FuncType</a>),
|
||
ImportSectionEntry {
|
||
module: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
field: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
ty: <a class="enum" href="../wasmparser/enum.ImportSectionEntryType.html" title="enum wasmparser::ImportSectionEntryType">ImportSectionEntryType</a>,
|
||
},
|
||
FunctionSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
|
||
TableSectionEntry(<a class="struct" href="../wasmparser/struct.TableType.html" title="struct wasmparser::TableType">TableType</a>),
|
||
MemorySectionEntry(<a class="struct" href="../wasmparser/struct.MemoryType.html" title="struct wasmparser::MemoryType">MemoryType</a>),
|
||
ExportSectionEntry {
|
||
field: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
kind: <a class="enum" href="../wasmparser/enum.ExternalKind.html" title="enum wasmparser::ExternalKind">ExternalKind</a>,
|
||
index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
},
|
||
NameSectionEntry(<a class="enum" href="../wasmparser/enum.NameEntry.html" title="enum wasmparser::NameEntry">NameEntry</a><'a>),
|
||
StartSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
|
||
DataCountSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
|
||
BeginInitExpressionBody,
|
||
InitExpressionOperator(<a class="enum" href="../wasmparser/enum.Operator.html" title="enum wasmparser::Operator">Operator</a><'a>),
|
||
EndInitExpressionBody,
|
||
BeginFunctionBody {
|
||
range: <a class="struct" href="../wasmparser/struct.Range.html" title="struct wasmparser::Range">Range</a>,
|
||
},
|
||
FunctionBodyLocals {
|
||
locals: <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="enum" href="../wasmparser/enum.Type.html" title="enum wasmparser::Type">Type</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>>,
|
||
},
|
||
CodeOperator(<a class="enum" href="../wasmparser/enum.Operator.html" title="enum wasmparser::Operator">Operator</a><'a>),
|
||
EndFunctionBody,
|
||
SkippingFunctionBody,
|
||
BeginPassiveElementSectionEntry(<a class="enum" href="../wasmparser/enum.Type.html" title="enum wasmparser::Type">Type</a>),
|
||
BeginActiveElementSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
|
||
ElementSectionEntryBody(<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>>),
|
||
EndElementSectionEntry,
|
||
BeginPassiveDataSectionEntry,
|
||
BeginActiveDataSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
|
||
EndDataSectionEntry,
|
||
BeginDataSectionEntryBody(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
|
||
DataSectionEntryBodyChunk(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>),
|
||
EndDataSectionEntryBody,
|
||
BeginGlobalSectionEntry(<a class="struct" href="../wasmparser/struct.GlobalType.html" title="struct wasmparser::GlobalType">GlobalType</a>),
|
||
EndGlobalSectionEntry,
|
||
RelocSectionHeader(<a class="enum" href="../wasmparser/enum.SectionCode.html" title="enum wasmparser::SectionCode">SectionCode</a><'a>),
|
||
RelocSectionEntry(<a class="struct" href="../wasmparser/struct.RelocEntry.html" title="struct wasmparser::RelocEntry">RelocEntry</a>),
|
||
LinkingSectionEntry(<a class="enum" href="../wasmparser/enum.LinkingType.html" title="enum wasmparser::LinkingType">LinkingType</a>),
|
||
SourceMappingURL(&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
|
||
}</pre></div><h2 id='variants' class='variants small-section-header'>
|
||
Variants<a href='#variants' class='anchor'></a></h2>
|
||
<span id="variant.Error" class="variant small-section-header"><a href="#variant.Error" class="anchor field"></a><code id='Error.v'>Error(<a class="struct" href="../wasmparser/struct.BinaryReaderError.html" title="struct wasmparser::BinaryReaderError">BinaryReaderError</a>)</code></span><span id="variant.Initial" class="variant small-section-header"><a href="#variant.Initial" class="anchor field"></a><code id='Initial.v'>Initial</code></span><span id="variant.BeginWasm" class="variant small-section-header"><a href="#variant.BeginWasm" class="anchor field"></a><code id='BeginWasm.v'>BeginWasm</code></span><span class='autohide sub-variant' id='variant.BeginWasm.fields'><h3>Fields of <b>BeginWasm</b></h3><div><span id="variant.BeginWasm.field.version" class="variant small-section-header"><a href="#variant.BeginWasm.field.version" class="anchor field"></a><code id='BeginWasm.v.version.v'>version: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></div></span><span id="variant.EndWasm" class="variant small-section-header"><a href="#variant.EndWasm" class="anchor field"></a><code id='EndWasm.v'>EndWasm</code></span><span id="variant.BeginSection" class="variant small-section-header"><a href="#variant.BeginSection" class="anchor field"></a><code id='BeginSection.v'>BeginSection</code></span><span class='autohide sub-variant' id='variant.BeginSection.fields'><h3>Fields of <b>BeginSection</b></h3><div><span id="variant.BeginSection.field.code" class="variant small-section-header"><a href="#variant.BeginSection.field.code" class="anchor field"></a><code id='BeginSection.v.code.v'>code: <a class="enum" href="../wasmparser/enum.SectionCode.html" title="enum wasmparser::SectionCode">SectionCode</a><'a></code></span><span id="variant.BeginSection.field.range" class="variant small-section-header"><a href="#variant.BeginSection.field.range" class="anchor field"></a><code id='BeginSection.v.range.v'>range: <a class="struct" href="../wasmparser/struct.Range.html" title="struct wasmparser::Range">Range</a></code></span></div></span><span id="variant.EndSection" class="variant small-section-header"><a href="#variant.EndSection" class="anchor field"></a><code id='EndSection.v'>EndSection</code></span><span id="variant.SkippingSection" class="variant small-section-header"><a href="#variant.SkippingSection" class="anchor field"></a><code id='SkippingSection.v'>SkippingSection</code></span><span id="variant.ReadingCustomSection" class="variant small-section-header"><a href="#variant.ReadingCustomSection" class="anchor field"></a><code id='ReadingCustomSection.v'>ReadingCustomSection(<a class="enum" href="../wasmparser/enum.CustomSectionKind.html" title="enum wasmparser::CustomSectionKind">CustomSectionKind</a>)</code></span><span id="variant.ReadingSectionRawData" class="variant small-section-header"><a href="#variant.ReadingSectionRawData" class="anchor field"></a><code id='ReadingSectionRawData.v'>ReadingSectionRawData</code></span><span id="variant.SectionRawData" class="variant small-section-header"><a href="#variant.SectionRawData" class="anchor field"></a><code id='SectionRawData.v'>SectionRawData(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>)</code></span><span id="variant.TypeSectionEntry" class="variant small-section-header"><a href="#variant.TypeSectionEntry" class="anchor field"></a><code id='TypeSectionEntry.v'>TypeSectionEntry(<a class="struct" href="../wasmparser/struct.FuncType.html" title="struct wasmparser::FuncType">FuncType</a>)</code></span><span id="variant.ImportSectionEntry" class="variant small-section-header"><a href="#variant.ImportSectionEntry" class="anchor field"></a><code id='ImportSectionEntry.v'>ImportSectionEntry</code></span><span class='autohide sub-variant' id='variant.ImportSectionEntry.fields'><h3>Fields of <b>ImportSectionEntry</b></h3><div><span id="variant.ImportSectionEntry.field.module" class="variant small-section-header"><a href="#variant.ImportSectionEntry.field.module" class="anchor field"></a><code id='ImportSectionEntry.v.module.v'>module: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span><span id="variant.ImportSectionEntry.field.field" class="variant small-section-header"><a href="#variant.ImportSectionEntry.field.field" class="anchor field"></a><code id='ImportSectionEntry.v.field.v'>field: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span><span id="variant.ImportSectionEntry.field.ty" class="variant small-section-header"><a href="#variant.ImportSectionEntry.field.ty" class="anchor field"></a><code id='ImportSectionEntry.v.ty.v'>ty: <a class="enum" href="../wasmparser/enum.ImportSectionEntryType.html" title="enum wasmparser::ImportSectionEntryType">ImportSectionEntryType</a></code></span></div></span><span id="variant.FunctionSectionEntry" class="variant small-section-header"><a href="#variant.FunctionSectionEntry" class="anchor field"></a><code id='FunctionSectionEntry.v'>FunctionSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span id="variant.TableSectionEntry" class="variant small-section-header"><a href="#variant.TableSectionEntry" class="anchor field"></a><code id='TableSectionEntry.v'>TableSectionEntry(<a class="struct" href="../wasmparser/struct.TableType.html" title="struct wasmparser::TableType">TableType</a>)</code></span><span id="variant.MemorySectionEntry" class="variant small-section-header"><a href="#variant.MemorySectionEntry" class="anchor field"></a><code id='MemorySectionEntry.v'>MemorySectionEntry(<a class="struct" href="../wasmparser/struct.MemoryType.html" title="struct wasmparser::MemoryType">MemoryType</a>)</code></span><span id="variant.ExportSectionEntry" class="variant small-section-header"><a href="#variant.ExportSectionEntry" class="anchor field"></a><code id='ExportSectionEntry.v'>ExportSectionEntry</code></span><span class='autohide sub-variant' id='variant.ExportSectionEntry.fields'><h3>Fields of <b>ExportSectionEntry</b></h3><div><span id="variant.ExportSectionEntry.field.field" class="variant small-section-header"><a href="#variant.ExportSectionEntry.field.field" class="anchor field"></a><code id='ExportSectionEntry.v.field.v'>field: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span><span id="variant.ExportSectionEntry.field.kind" class="variant small-section-header"><a href="#variant.ExportSectionEntry.field.kind" class="anchor field"></a><code id='ExportSectionEntry.v.kind.v'>kind: <a class="enum" href="../wasmparser/enum.ExternalKind.html" title="enum wasmparser::ExternalKind">ExternalKind</a></code></span><span id="variant.ExportSectionEntry.field.index" class="variant small-section-header"><a href="#variant.ExportSectionEntry.field.index" class="anchor field"></a><code id='ExportSectionEntry.v.index.v'>index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></div></span><span id="variant.NameSectionEntry" class="variant small-section-header"><a href="#variant.NameSectionEntry" class="anchor field"></a><code id='NameSectionEntry.v'>NameSectionEntry(<a class="enum" href="../wasmparser/enum.NameEntry.html" title="enum wasmparser::NameEntry">NameEntry</a><'a>)</code></span><span id="variant.StartSectionEntry" class="variant small-section-header"><a href="#variant.StartSectionEntry" class="anchor field"></a><code id='StartSectionEntry.v'>StartSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span id="variant.DataCountSectionEntry" class="variant small-section-header"><a href="#variant.DataCountSectionEntry" class="anchor field"></a><code id='DataCountSectionEntry.v'>DataCountSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span id="variant.BeginInitExpressionBody" class="variant small-section-header"><a href="#variant.BeginInitExpressionBody" class="anchor field"></a><code id='BeginInitExpressionBody.v'>BeginInitExpressionBody</code></span><span id="variant.InitExpressionOperator" class="variant small-section-header"><a href="#variant.InitExpressionOperator" class="anchor field"></a><code id='InitExpressionOperator.v'>InitExpressionOperator(<a class="enum" href="../wasmparser/enum.Operator.html" title="enum wasmparser::Operator">Operator</a><'a>)</code></span><span id="variant.EndInitExpressionBody" class="variant small-section-header"><a href="#variant.EndInitExpressionBody" class="anchor field"></a><code id='EndInitExpressionBody.v'>EndInitExpressionBody</code></span><span id="variant.BeginFunctionBody" class="variant small-section-header"><a href="#variant.BeginFunctionBody" class="anchor field"></a><code id='BeginFunctionBody.v'>BeginFunctionBody</code></span><span class='autohide sub-variant' id='variant.BeginFunctionBody.fields'><h3>Fields of <b>BeginFunctionBody</b></h3><div><span id="variant.BeginFunctionBody.field.range" class="variant small-section-header"><a href="#variant.BeginFunctionBody.field.range" class="anchor field"></a><code id='BeginFunctionBody.v.range.v'>range: <a class="struct" href="../wasmparser/struct.Range.html" title="struct wasmparser::Range">Range</a></code></span></div></span><span id="variant.FunctionBodyLocals" class="variant small-section-header"><a href="#variant.FunctionBodyLocals" class="anchor field"></a><code id='FunctionBodyLocals.v'>FunctionBodyLocals</code></span><span class='autohide sub-variant' id='variant.FunctionBodyLocals.fields'><h3>Fields of <b>FunctionBodyLocals</b></h3><div><span id="variant.FunctionBodyLocals.field.locals" class="variant small-section-header"><a href="#variant.FunctionBodyLocals.field.locals" class="anchor field"></a><code id='FunctionBodyLocals.v.locals.v'>locals: <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="enum" href="../wasmparser/enum.Type.html" title="enum wasmparser::Type">Type</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>></code></span></div></span><span id="variant.CodeOperator" class="variant small-section-header"><a href="#variant.CodeOperator" class="anchor field"></a><code id='CodeOperator.v'>CodeOperator(<a class="enum" href="../wasmparser/enum.Operator.html" title="enum wasmparser::Operator">Operator</a><'a>)</code></span><span id="variant.EndFunctionBody" class="variant small-section-header"><a href="#variant.EndFunctionBody" class="anchor field"></a><code id='EndFunctionBody.v'>EndFunctionBody</code></span><span id="variant.SkippingFunctionBody" class="variant small-section-header"><a href="#variant.SkippingFunctionBody" class="anchor field"></a><code id='SkippingFunctionBody.v'>SkippingFunctionBody</code></span><span id="variant.BeginPassiveElementSectionEntry" class="variant small-section-header"><a href="#variant.BeginPassiveElementSectionEntry" class="anchor field"></a><code id='BeginPassiveElementSectionEntry.v'>BeginPassiveElementSectionEntry(<a class="enum" href="../wasmparser/enum.Type.html" title="enum wasmparser::Type">Type</a>)</code></span><span id="variant.BeginActiveElementSectionEntry" class="variant small-section-header"><a href="#variant.BeginActiveElementSectionEntry" class="anchor field"></a><code id='BeginActiveElementSectionEntry.v'>BeginActiveElementSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span id="variant.ElementSectionEntryBody" class="variant small-section-header"><a href="#variant.ElementSectionEntryBody" class="anchor field"></a><code id='ElementSectionEntryBody.v'>ElementSectionEntryBody(<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>>)</code></span><span id="variant.EndElementSectionEntry" class="variant small-section-header"><a href="#variant.EndElementSectionEntry" class="anchor field"></a><code id='EndElementSectionEntry.v'>EndElementSectionEntry</code></span><span id="variant.BeginPassiveDataSectionEntry" class="variant small-section-header"><a href="#variant.BeginPassiveDataSectionEntry" class="anchor field"></a><code id='BeginPassiveDataSectionEntry.v'>BeginPassiveDataSectionEntry</code></span><span id="variant.BeginActiveDataSectionEntry" class="variant small-section-header"><a href="#variant.BeginActiveDataSectionEntry" class="anchor field"></a><code id='BeginActiveDataSectionEntry.v'>BeginActiveDataSectionEntry(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span id="variant.EndDataSectionEntry" class="variant small-section-header"><a href="#variant.EndDataSectionEntry" class="anchor field"></a><code id='EndDataSectionEntry.v'>EndDataSectionEntry</code></span><span id="variant.BeginDataSectionEntryBody" class="variant small-section-header"><a href="#variant.BeginDataSectionEntryBody" class="anchor field"></a><code id='BeginDataSectionEntryBody.v'>BeginDataSectionEntryBody(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><span id="variant.DataSectionEntryBodyChunk" class="variant small-section-header"><a href="#variant.DataSectionEntryBodyChunk" class="anchor field"></a><code id='DataSectionEntryBodyChunk.v'>DataSectionEntryBodyChunk(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>)</code></span><span id="variant.EndDataSectionEntryBody" class="variant small-section-header"><a href="#variant.EndDataSectionEntryBody" class="anchor field"></a><code id='EndDataSectionEntryBody.v'>EndDataSectionEntryBody</code></span><span id="variant.BeginGlobalSectionEntry" class="variant small-section-header"><a href="#variant.BeginGlobalSectionEntry" class="anchor field"></a><code id='BeginGlobalSectionEntry.v'>BeginGlobalSectionEntry(<a class="struct" href="../wasmparser/struct.GlobalType.html" title="struct wasmparser::GlobalType">GlobalType</a>)</code></span><span id="variant.EndGlobalSectionEntry" class="variant small-section-header"><a href="#variant.EndGlobalSectionEntry" class="anchor field"></a><code id='EndGlobalSectionEntry.v'>EndGlobalSectionEntry</code></span><span id="variant.RelocSectionHeader" class="variant small-section-header"><a href="#variant.RelocSectionHeader" class="anchor field"></a><code id='RelocSectionHeader.v'>RelocSectionHeader(<a class="enum" href="../wasmparser/enum.SectionCode.html" title="enum wasmparser::SectionCode">SectionCode</a><'a>)</code></span><span id="variant.RelocSectionEntry" class="variant small-section-header"><a href="#variant.RelocSectionEntry" class="anchor field"></a><code id='RelocSectionEntry.v'>RelocSectionEntry(<a class="struct" href="../wasmparser/struct.RelocEntry.html" title="struct wasmparser::RelocEntry">RelocEntry</a>)</code></span><span id="variant.LinkingSectionEntry" class="variant small-section-header"><a href="#variant.LinkingSectionEntry" class="anchor field"></a><code id='LinkingSectionEntry.v'>LinkingSectionEntry(<a class="enum" href="../wasmparser/enum.LinkingType.html" title="enum wasmparser::LinkingType">LinkingType</a>)</code></span><span id="variant.SourceMappingURL" class="variant small-section-header"><a href="#variant.SourceMappingURL" class="anchor field"></a><code id='SourceMappingURL.v'>SourceMappingURL(&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code></span><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Debug' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../wasmparser/enum.ParserState.html" title="enum wasmparser::ParserState">ParserState</a><'a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/wasmparser/parser.rs.html#69' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/wasmparser/parser.rs.html#69' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">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-Sync' class='impl'><code class='in-band'>impl<'a> <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="enum" href="../wasmparser/enum.ParserState.html" title="enum wasmparser::ParserState">ParserState</a><'a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl<'a> <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="enum" href="../wasmparser/enum.ParserState.html" title="enum wasmparser::ParserState">ParserState</a><'a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<'a> <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="enum" href="../wasmparser/enum.ParserState.html" title="enum wasmparser::ParserState">ParserState</a><'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> <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="enum" href="../wasmparser/enum.ParserState.html" title="enum wasmparser::ParserState">ParserState</a><'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> <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="enum" href="../wasmparser/enum.ParserState.html" title="enum wasmparser::ParserState">ParserState</a><'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-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-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-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-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-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-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 = "wasmparser";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |