mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-29 12:22:18 +00:00
14 lines
35 KiB
HTML
14 lines
35 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 `SectionReader` trait in crate `wasmparser`."><meta name="keywords" content="rust, rustlang, rust-lang, SectionReader"><title>wasmparser::SectionReader - 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 trait"><!--[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'>Trait SectionReader</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Item">Item</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.eof">eof</a><a href="#tymethod.original_position">original_position</a><a href="#tymethod.read">read</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.ensure_end">ensure_end</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>wasmparser</a></p><script>window.sidebarCurrent = {name: 'SectionReader', ty: 'trait', 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/readers/section_reader.rs.html#18-32' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>wasmparser</a>::<wbr><a class="trait" href=''>SectionReader</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait SectionReader {
|
||
type <a href='#associatedtype.Item' class="type">Item</a>;
|
||
fn <a href='#tymethod.read' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.eof' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.original_position' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
|
||
|
||
fn <a href='#method.ensure_end' class='fnname'>ensure_end</a>(&self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> { ... }
|
||
}</pre></div>
|
||
<h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.Item' class='method'><code id='Item.t'>type <a href='#associatedtype.Item' class="type">Item</a></code></h3></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.read' class='method'><code id='read.v'>fn <a href='#tymethod.read' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code></h3><h3 id='tymethod.eof' class='method'><code id='eof.v'>fn <a href='#tymethod.eof' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h3><h3 id='tymethod.original_position' class='method'><code id='original_position.v'>fn <a href='#tymethod.original_position' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></h3></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='provided-methods' class='small-section-header'>Provided methods<a href='#provided-methods' class='anchor'></a></h2><div class='methods'><h3 id='method.ensure_end' class='method'><code id='ensure_end.v'>fn <a href='#method.ensure_end' class='fnname'>ensure_end</a>(&self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></h3></div><span class='loading-content'>Loading content...</span>
|
||
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-SectionReader' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.CodeSectionReader.html" title="struct wasmparser::CodeSectionReader">CodeSectionReader</a><'a></code><a href='#impl-SectionReader' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/code_section.rs.html#199-210' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-1' class="type"><code id='Item.t-1'>type <a href='#associatedtype.Item-1' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.FunctionBody.html" title="struct wasmparser::FunctionBody">FunctionBody</a><'a></code></h4><h4 id='method.read' class="method hidden"><code id='read.v-1'>fn <a href='#method.read' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/code_section.rs.html#201-203' title='goto source code'>[src]</a></h4><h4 id='method.eof' class="method hidden"><code id='eof.v-1'>fn <a href='#method.eof' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/code_section.rs.html#204-206' title='goto source code'>[src]</a></h4><h4 id='method.original_position' class="method hidden"><code id='original_position.v-1'>fn <a href='#method.original_position' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/code_section.rs.html#207-209' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-1' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.DataSectionReader.html" title="struct wasmparser::DataSectionReader">DataSectionReader</a><'a></code><a href='#impl-SectionReader-1' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/data_section.rs.html#131-142' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-2' class="type"><code id='Item.t-2'>type <a href='#associatedtype.Item-2' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.Data.html" title="struct wasmparser::Data">Data</a><'a></code></h4><h4 id='method.read-1' class="method hidden"><code id='read.v-2'>fn <a href='#method.read-1' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/data_section.rs.html#133-135' title='goto source code'>[src]</a></h4><h4 id='method.eof-1' class="method hidden"><code id='eof.v-2'>fn <a href='#method.eof-1' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/data_section.rs.html#136-138' title='goto source code'>[src]</a></h4><h4 id='method.original_position-1' class="method hidden"><code id='original_position.v-2'>fn <a href='#method.original_position-1' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/data_section.rs.html#139-141' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-2' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.ElementSectionReader.html" title="struct wasmparser::ElementSectionReader">ElementSectionReader</a><'a></code><a href='#impl-SectionReader-2' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/element_section.rs.html#208-219' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-3' class="type"><code id='Item.t-3'>type <a href='#associatedtype.Item-3' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.Element.html" title="struct wasmparser::Element">Element</a><'a></code></h4><h4 id='method.read-2' class="method hidden"><code id='read.v-3'>fn <a href='#method.read-2' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/element_section.rs.html#210-212' title='goto source code'>[src]</a></h4><h4 id='method.eof-2' class="method hidden"><code id='eof.v-3'>fn <a href='#method.eof-2' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/element_section.rs.html#213-215' title='goto source code'>[src]</a></h4><h4 id='method.original_position-2' class="method hidden"><code id='original_position.v-3'>fn <a href='#method.original_position-2' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/element_section.rs.html#216-218' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-3' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.ExportSectionReader.html" title="struct wasmparser::ExportSectionReader">ExportSectionReader</a><'a></code><a href='#impl-SectionReader-3' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/export_section.rs.html#78-89' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-4' class="type"><code id='Item.t-4'>type <a href='#associatedtype.Item-4' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.Export.html" title="struct wasmparser::Export">Export</a><'a></code></h4><h4 id='method.read-3' class="method hidden"><code id='read.v-4'>fn <a href='#method.read-3' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/export_section.rs.html#80-82' title='goto source code'>[src]</a></h4><h4 id='method.eof-3' class="method hidden"><code id='eof.v-4'>fn <a href='#method.eof-3' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/export_section.rs.html#83-85' title='goto source code'>[src]</a></h4><h4 id='method.original_position-3' class="method hidden"><code id='original_position.v-4'>fn <a href='#method.original_position-3' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/export_section.rs.html#86-88' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-4' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.FunctionSectionReader.html" title="struct wasmparser::FunctionSectionReader">FunctionSectionReader</a><'a></code><a href='#impl-SectionReader-4' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/function_section.rs.html#60-71' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-5' class="type"><code id='Item.t-5'>type <a href='#associatedtype.Item-5' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></h4><h4 id='method.read-4' class="method hidden"><code id='read.v-5'>fn <a href='#method.read-4' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/function_section.rs.html#62-64' title='goto source code'>[src]</a></h4><h4 id='method.eof-4' class="method hidden"><code id='eof.v-5'>fn <a href='#method.eof-4' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/function_section.rs.html#65-67' title='goto source code'>[src]</a></h4><h4 id='method.original_position-4' class="method hidden"><code id='original_position.v-5'>fn <a href='#method.original_position-4' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/function_section.rs.html#68-70' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-5' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.GlobalSectionReader.html" title="struct wasmparser::GlobalSectionReader">GlobalSectionReader</a><'a></code><a href='#impl-SectionReader-5' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/global_section.rs.html#82-93' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-6' class="type"><code id='Item.t-6'>type <a href='#associatedtype.Item-6' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.Global.html" title="struct wasmparser::Global">Global</a><'a></code></h4><h4 id='method.read-5' class="method hidden"><code id='read.v-6'>fn <a href='#method.read-5' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/global_section.rs.html#84-86' title='goto source code'>[src]</a></h4><h4 id='method.eof-5' class="method hidden"><code id='eof.v-6'>fn <a href='#method.eof-5' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/global_section.rs.html#87-89' title='goto source code'>[src]</a></h4><h4 id='method.original_position-5' class="method hidden"><code id='original_position.v-6'>fn <a href='#method.original_position-5' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/global_section.rs.html#90-92' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-6' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.ImportSectionReader.html" title="struct wasmparser::ImportSectionReader">ImportSectionReader</a><'a></code><a href='#impl-SectionReader-6' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/import_section.rs.html#83-94' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-7' class="type"><code id='Item.t-7'>type <a href='#associatedtype.Item-7' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.Import.html" title="struct wasmparser::Import">Import</a><'a></code></h4><h4 id='method.read-6' class="method hidden"><code id='read.v-7'>fn <a href='#method.read-6' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/import_section.rs.html#85-87' title='goto source code'>[src]</a></h4><h4 id='method.eof-6' class="method hidden"><code id='eof.v-7'>fn <a href='#method.eof-6' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/import_section.rs.html#88-90' title='goto source code'>[src]</a></h4><h4 id='method.original_position-6' class="method hidden"><code id='original_position.v-7'>fn <a href='#method.original_position-6' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/import_section.rs.html#91-93' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-7' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.LinkingSectionReader.html" title="struct wasmparser::LinkingSectionReader">LinkingSectionReader</a><'a></code><a href='#impl-SectionReader-7' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/linking_section.rs.html#49-60' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-8' class="type"><code id='Item.t-8'>type <a href='#associatedtype.Item-8' class="type">Item</a> = <a class="enum" href="../wasmparser/enum.LinkingType.html" title="enum wasmparser::LinkingType">LinkingType</a></code></h4><h4 id='method.read-7' class="method hidden"><code id='read.v-8'>fn <a href='#method.read-7' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/linking_section.rs.html#51-53' title='goto source code'>[src]</a></h4><h4 id='method.eof-7' class="method hidden"><code id='eof.v-8'>fn <a href='#method.eof-7' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/linking_section.rs.html#54-56' title='goto source code'>[src]</a></h4><h4 id='method.original_position-7' class="method hidden"><code id='original_position.v-8'>fn <a href='#method.original_position-7' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/linking_section.rs.html#57-59' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-8' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.MemorySectionReader.html" title="struct wasmparser::MemorySectionReader">MemorySectionReader</a><'a></code><a href='#impl-SectionReader-8' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/memory_section.rs.html#65-76' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-9' class="type"><code id='Item.t-9'>type <a href='#associatedtype.Item-9' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.MemoryType.html" title="struct wasmparser::MemoryType">MemoryType</a></code></h4><h4 id='method.read-8' class="method hidden"><code id='read.v-9'>fn <a href='#method.read-8' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/memory_section.rs.html#67-69' title='goto source code'>[src]</a></h4><h4 id='method.eof-8' class="method hidden"><code id='eof.v-9'>fn <a href='#method.eof-8' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/memory_section.rs.html#70-72' title='goto source code'>[src]</a></h4><h4 id='method.original_position-8' class="method hidden"><code id='original_position.v-9'>fn <a href='#method.original_position-8' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/memory_section.rs.html#73-75' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-9' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.NameSectionReader.html" title="struct wasmparser::NameSectionReader">NameSectionReader</a><'a></code><a href='#impl-SectionReader-9' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/name_section.rs.html#213-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-10' class="type"><code id='Item.t-10'>type <a href='#associatedtype.Item-10' class="type">Item</a> = <a class="enum" href="../wasmparser/enum.Name.html" title="enum wasmparser::Name">Name</a><'a></code></h4><h4 id='method.read-9' class="method hidden"><code id='read.v-10'>fn <a href='#method.read-9' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/name_section.rs.html#215-217' title='goto source code'>[src]</a></h4><h4 id='method.eof-9' class="method hidden"><code id='eof.v-10'>fn <a href='#method.eof-9' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/name_section.rs.html#218-220' title='goto source code'>[src]</a></h4><h4 id='method.original_position-9' class="method hidden"><code id='original_position.v-10'>fn <a href='#method.original_position-9' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/name_section.rs.html#221-223' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-10' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.ProducersSectionReader.html" title="struct wasmparser::ProducersSectionReader">ProducersSectionReader</a><'a></code><a href='#impl-SectionReader-10' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/producers_section.rs.html#166-177' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-11' class="type"><code id='Item.t-11'>type <a href='#associatedtype.Item-11' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.ProducersField.html" title="struct wasmparser::ProducersField">ProducersField</a><'a></code></h4><h4 id='method.read-10' class="method hidden"><code id='read.v-11'>fn <a href='#method.read-10' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/producers_section.rs.html#168-170' title='goto source code'>[src]</a></h4><h4 id='method.eof-10' class="method hidden"><code id='eof.v-11'>fn <a href='#method.eof-10' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/producers_section.rs.html#171-173' title='goto source code'>[src]</a></h4><h4 id='method.original_position-10' class="method hidden"><code id='original_position.v-11'>fn <a href='#method.original_position-10' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/producers_section.rs.html#174-176' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-11' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.RelocSectionReader.html" title="struct wasmparser::RelocSectionReader">RelocSectionReader</a><'a></code><a href='#impl-SectionReader-11' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/reloc_section.rs.html#89-100' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-12' class="type"><code id='Item.t-12'>type <a href='#associatedtype.Item-12' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.Reloc.html" title="struct wasmparser::Reloc">Reloc</a></code></h4><h4 id='method.read-11' class="method hidden"><code id='read.v-12'>fn <a href='#method.read-11' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/reloc_section.rs.html#91-93' title='goto source code'>[src]</a></h4><h4 id='method.eof-11' class="method hidden"><code id='eof.v-12'>fn <a href='#method.eof-11' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/reloc_section.rs.html#94-96' title='goto source code'>[src]</a></h4><h4 id='method.original_position-11' class="method hidden"><code id='original_position.v-12'>fn <a href='#method.original_position-11' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/reloc_section.rs.html#97-99' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-12' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.TableSectionReader.html" title="struct wasmparser::TableSectionReader">TableSectionReader</a><'a></code><a href='#impl-SectionReader-12' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/table_section.rs.html#64-75' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-13' class="type"><code id='Item.t-13'>type <a href='#associatedtype.Item-13' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.TableType.html" title="struct wasmparser::TableType">TableType</a></code></h4><h4 id='method.read-12' class="method hidden"><code id='read.v-13'>fn <a href='#method.read-12' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/table_section.rs.html#66-68' title='goto source code'>[src]</a></h4><h4 id='method.eof-12' class="method hidden"><code id='eof.v-13'>fn <a href='#method.eof-12' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/table_section.rs.html#69-71' title='goto source code'>[src]</a></h4><h4 id='method.original_position-12' class="method hidden"><code id='original_position.v-13'>fn <a href='#method.original_position-12' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/table_section.rs.html#72-74' title='goto source code'>[src]</a></h4></div><h3 id='impl-SectionReader-13' class='impl'><code class='in-band'>impl<'a> SectionReader for <a class="struct" href="../wasmparser/struct.TypeSectionReader.html" title="struct wasmparser::TypeSectionReader">TypeSectionReader</a><'a></code><a href='#impl-SectionReader-13' class='anchor'></a><a class='srclink' href='../src/wasmparser/readers/type_section.rs.html#61-72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Item-14' class="type"><code id='Item.t-14'>type <a href='#associatedtype.Item-14' class="type">Item</a> = <a class="struct" href="../wasmparser/struct.FuncType.html" title="struct wasmparser::FuncType">FuncType</a></code></h4><h4 id='method.read-13' class="method hidden"><code id='read.v-14'>fn <a href='#method.read-13' class='fnname'>read</a>(&mut self) -> <a class="type" href="../wasmparser/type.Result.html" title="type wasmparser::Result">Result</a><Self::<a class="type" href="../wasmparser/trait.SectionReader.html#associatedtype.Item" title="type wasmparser::SectionReader::Item">Item</a>></code><a class='srclink' href='../src/wasmparser/readers/type_section.rs.html#63-65' title='goto source code'>[src]</a></h4><h4 id='method.eof-13' class="method hidden"><code id='eof.v-14'>fn <a href='#method.eof-13' class='fnname'>eof</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasmparser/readers/type_section.rs.html#66-68' title='goto source code'>[src]</a></h4><h4 id='method.original_position-13' class="method hidden"><code id='original_position.v-14'>fn <a href='#method.original_position-13' class='fnname'>original_position</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/wasmparser/readers/type_section.rs.html#69-71' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
|
||
src="../implementors/wasmparser/trait.SectionReader.js">
|
||
</script></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> |