wasmer/rustdoc/cranelift_codegen/cursor/struct.EncCursor.html
2019-09-16 15:54:50 -07:00

67 lines
50 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `EncCursor` struct in crate `cranelift_codegen`."><meta name="keywords" content="rust, rustlang, rust-lang, EncCursor"><title>cranelift_codegen::cursor::EncCursor - 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">&#9776;</div><a href='../../cranelift_codegen/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct EncCursor</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.func">func</a><a href="#structfield.isa">isa</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.built_inst">built_inst</a><a href="#method.display_inst">display_inst</a><a href="#method.ins">ins</a><a href="#method.new">new</a><a href="#method.use_srcloc">use_srcloc</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Cursor">Cursor</a><a href="#impl-InstInserterBase%3C%27c%3E">InstInserterBase&lt;&#39;c&gt;</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&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class='location'><a href='../index.html'>cranelift_codegen</a>::<wbr><a href='index.html'>cursor</a></p><script>window.sidebarCurrent = {name: 'EncCursor', 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'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#651-661' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>cranelift_codegen</a>::<wbr><a href='index.html'>cursor</a>::<wbr><a class="struct" href=''>EncCursor</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct EncCursor&lt;'f&gt; {
pub func: &amp;'f mut <a class="struct" href="../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a>,
pub isa: &amp;'f dyn <a class="trait" href="../../cranelift_codegen/isa/trait.TargetIsa.html" title="trait cranelift_codegen::isa::TargetIsa">TargetIsa</a>,
// some fields omitted
}</pre></div><div class='docblock'><p>Encoding cursor.</p>
<p>An <code>EncCursor</code> can be used to insert instructions that are immediately assigned an encoding.
The cursor holds a mutable reference to the whole function which can be re-borrowed from the
public <code>pos.func</code> member.</p>
</div><h2 id='fields' class='fields small-section-header'>
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.func" class="structfield small-section-header"><a href="#structfield.func" class="anchor field"></a><code id="func.v">func: &amp;'f mut <a class="struct" href="../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code></span><div class='docblock'><p>The referenced function.</p>
</div><span id="structfield.isa" class="structfield small-section-header"><a href="#structfield.isa" class="anchor field"></a><code id="isa.v">isa: &amp;'f dyn <a class="trait" href="../../cranelift_codegen/isa/trait.TargetIsa.html" title="trait cranelift_codegen::isa::TargetIsa">TargetIsa</a></code></span><div class='docblock'><p>The target ISA that will be used to encode instructions.</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&lt;'f&gt; <a class="struct" href="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#663-703' 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>(func: &amp;'f mut <a class="struct" href="../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a>, isa: &amp;'f dyn <a class="trait" href="../../cranelift_codegen/isa/trait.TargetIsa.html" title="trait cranelift_codegen::isa::TargetIsa">TargetIsa</a>) -&gt; Self</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#665-673' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a new <code>EncCursor</code> pointing nowhere.</p>
</div><h4 id='method.use_srcloc' class="method"><code id='use_srcloc.v'>pub fn <a href='#method.use_srcloc' class='fnname'>use_srcloc</a>(&amp;mut self, inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#676-678' title='goto source code'>[src]</a></h4><div class='docblock'><p>Use the source location of <code>inst</code> for future instructions.</p>
</div><h4 id='method.ins' class="method"><code id='ins.v'>pub fn <a href='#method.ins' class='fnname'>ins</a>(&amp;mut self) -&gt; <a class="struct" href="../../cranelift_codegen/ir/struct.InsertBuilder.html" title="struct cranelift_codegen::ir::InsertBuilder">InsertBuilder</a>&lt;&amp;mut <a class="struct" href="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;&gt;</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#685-687' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create an instruction builder that will insert an encoded instruction at the current
position.</p>
<p>The builder will panic if it is used to insert an instruction that can't be encoded for
<code>self.isa</code>.</p>
</div><h4 id='method.built_inst' class="method"><code id='built_inst.v'>pub fn <a href='#method.built_inst' class='fnname'>built_inst</a>(&amp;self) -&gt; <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#693-695' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get the last built instruction.</p>
<p>This returns the last instruction that was built using the <code>ins()</code> method on this cursor.
Panics if no instruction was built.</p>
</div><h4 id='method.display_inst' class="method"><code id='display_inst.v'>pub fn <a href='#method.display_inst' class='fnname'>display_inst</a>(&amp;self, inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>) -&gt; <a class="struct" href="../../cranelift_codegen/ir/dfg/struct.DisplayInst.html" title="struct cranelift_codegen::ir::dfg::DisplayInst">DisplayInst</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#700-702' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return an object that can display <code>inst</code>.</p>
<p>This is a convenience wrapper for the DFG equivalent.</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-Cursor' class='impl'><code class='in-band'>impl&lt;'f&gt; <a class="trait" href="../../cranelift_codegen/cursor/trait.Cursor.html" title="trait cranelift_codegen::cursor::Cursor">Cursor</a> for <a class="struct" href="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</code><a href='#impl-Cursor' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#705-729' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.position' class="method hidden"><code id='position.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#tymethod.position' class='fnname'>position</a>(&amp;self) -&gt; <a class="enum" href="../../cranelift_codegen/cursor/enum.CursorPosition.html" title="enum cranelift_codegen::cursor::CursorPosition">CursorPosition</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#706-708' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Get the current cursor position.</p>
</div><h4 id='method.set_position' class="method hidden"><code id='set_position.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#tymethod.set_position' class='fnname'>set_position</a>(&amp;mut self, pos: <a class="enum" href="../../cranelift_codegen/cursor/enum.CursorPosition.html" title="enum cranelift_codegen::cursor::CursorPosition">CursorPosition</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#710-712' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Set the current position.</p>
</div><h4 id='method.srcloc' class="method hidden"><code id='srcloc.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#tymethod.srcloc' class='fnname'>srcloc</a>(&amp;self) -&gt; <a class="struct" href="../../cranelift_codegen/ir/struct.SourceLoc.html" title="struct cranelift_codegen::ir::SourceLoc">SourceLoc</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#714-716' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Get the source location that should be assigned to new instructions.</p>
</div><h4 id='method.set_srcloc' class="method hidden"><code id='set_srcloc.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#tymethod.set_srcloc' class='fnname'>set_srcloc</a>(&amp;mut self, srcloc: <a class="struct" href="../../cranelift_codegen/ir/struct.SourceLoc.html" title="struct cranelift_codegen::ir::SourceLoc">SourceLoc</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#718-720' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Set the source location that should be assigned to new instructions.</p>
</div><h4 id='method.layout' class="method hidden"><code id='layout.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#tymethod.layout' class='fnname'>layout</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../cranelift_codegen/ir/layout/struct.Layout.html" title="struct cranelift_codegen::ir::layout::Layout">Layout</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#722-724' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Borrow a reference to the function layout that this cursor is navigating.</p>
</div><h4 id='method.layout_mut' class="method hidden"><code id='layout_mut.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#tymethod.layout_mut' class='fnname'>layout_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../../cranelift_codegen/ir/layout/struct.Layout.html" title="struct cranelift_codegen::ir::layout::Layout">Layout</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#726-728' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Borrow a mutable reference to the function layout that this cursor is navigating.</p>
</div><h4 id='method.with_srcloc' class="method hidden"><code id='with_srcloc.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.with_srcloc' class='fnname'>with_srcloc</a>(self, srcloc: <a class="struct" href="../../cranelift_codegen/ir/struct.SourceLoc.html" title="struct cranelift_codegen::ir::SourceLoc">SourceLoc</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#57-63' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Exchange this cursor for one with a set source location. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.with_srcloc">Read more</a></p>
</div><h4 id='method.at_position' class="method hidden"><code id='at_position.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.at_position' class='fnname'>at_position</a>(self, pos: <a class="enum" href="../../cranelift_codegen/cursor/enum.CursorPosition.html" title="enum cranelift_codegen::cursor::CursorPosition">CursorPosition</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#66-72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned at <code>pos</code>.</p>
</div><h4 id='method.at_inst' class="method hidden"><code id='at_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.at_inst' class='fnname'>at_inst</a>(self, inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#87-93' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned at <code>inst</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.at_inst">Read more</a></p>
</div><h4 id='method.at_first_insertion_point' class="method hidden"><code id='at_first_insertion_point.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.at_first_insertion_point' class='fnname'>at_first_insertion_point</a>(self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#110-116' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned at the first insertion point for <code>ebb</code>. This differs from <code>at_first_inst</code> in that it doesn't assume that any instructions have been inserted into <code>ebb</code> yet. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.at_first_insertion_point">Read more</a></p>
</div><h4 id='method.at_first_inst' class="method hidden"><code id='at_first_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.at_first_inst' class='fnname'>at_first_inst</a>(self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#131-137' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned at the first instruction in <code>ebb</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.at_first_inst">Read more</a></p>
</div><h4 id='method.at_last_inst' class="method hidden"><code id='at_last_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.at_last_inst' class='fnname'>at_last_inst</a>(self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#152-158' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned at the last instruction in <code>ebb</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.at_last_inst">Read more</a></p>
</div><h4 id='method.after_inst' class="method hidden"><code id='after_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.after_inst' class='fnname'>after_inst</a>(self, inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#173-179' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned after <code>inst</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.after_inst">Read more</a></p>
</div><h4 id='method.at_top' class="method hidden"><code id='at_top.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.at_top' class='fnname'>at_top</a>(self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#194-200' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned at the top of <code>ebb</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.at_top">Read more</a></p>
</div><h4 id='method.at_bottom' class="method hidden"><code id='at_bottom.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.at_bottom' class='fnname'>at_bottom</a>(self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#215-221' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Rebuild this cursor positioned at the bottom of <code>ebb</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.at_bottom">Read more</a></p>
</div><h4 id='method.current_ebb' class="method hidden"><code id='current_ebb.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.current_ebb' class='fnname'>current_ebb</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>&gt;</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#224-231' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Get the EBB corresponding to the current position.</p>
</div><h4 id='method.current_inst' class="method hidden"><code id='current_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.current_inst' class='fnname'>current_inst</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>&gt;</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#234-240' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Get the instruction corresponding to the current position, if any.</p>
</div><h4 id='method.goto_after_inst' class="method hidden"><code id='goto_after_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_after_inst' class='fnname'>goto_after_inst</a>(&amp;mut self, inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#244-256' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the position after a specific instruction, which must be inserted in the layout. New instructions will be inserted after <code>inst</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_after_inst">Read more</a></p>
</div><h4 id='method.goto_inst' class="method hidden"><code id='goto_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_inst' class='fnname'>goto_inst</a>(&amp;mut self, inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#260-263' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to a specific instruction which must be inserted in the layout. New instructions will be inserted before <code>inst</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_inst">Read more</a></p>
</div><h4 id='method.goto_first_insertion_point' class="method hidden"><code id='goto_first_insertion_point.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_first_insertion_point' class='fnname'>goto_first_insertion_point</a>(&amp;mut self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#268-274' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the position for inserting instructions at the beginning of <code>ebb</code>, which unlike <code>goto_first_inst</code> doesn't assume that any instructions have been inserted into <code>ebb</code> yet. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_first_insertion_point">Read more</a></p>
</div><h4 id='method.goto_first_inst' class="method hidden"><code id='goto_first_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_first_inst' class='fnname'>goto_first_inst</a>(&amp;mut self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#277-280' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the first instruction in <code>ebb</code>.</p>
</div><h4 id='method.goto_last_inst' class="method hidden"><code id='goto_last_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_last_inst' class='fnname'>goto_last_inst</a>(&amp;mut self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#283-286' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the last instruction in <code>ebb</code>.</p>
</div><h4 id='method.goto_top' class="method hidden"><code id='goto_top.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_top' class='fnname'>goto_top</a>(&amp;mut self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#291-294' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the top of <code>ebb</code> which must be inserted into the layout. At this position, instructions cannot be inserted, but <code>next_inst()</code> will move to the first instruction in <code>ebb</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_top">Read more</a></p>
</div><h4 id='method.goto_bottom' class="method hidden"><code id='goto_bottom.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_bottom' class='fnname'>goto_bottom</a>(&amp;mut self, ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#298-301' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the bottom of <code>ebb</code> which must be inserted into the layout. At this position, inserted instructions will be appended to <code>ebb</code>. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.goto_bottom">Read more</a></p>
</div><h4 id='method.next_ebb' class="method hidden"><code id='next_ebb.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.next_ebb' class='fnname'>next_ebb</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>&gt;</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#323-334' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the top of the next EBB in layout order and return it. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.next_ebb">Read more</a></p>
</div><h4 id='method.prev_ebb' class="method hidden"><code id='prev_ebb.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.prev_ebb' class='fnname'>prev_ebb</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>&gt;</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#356-367' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Go to the bottom of the previous EBB in layout order and return it. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.prev_ebb">Read more</a></p>
</div><h4 id='method.next_inst' class="method hidden"><code id='next_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.next_inst' class='fnname'>next_inst</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>&gt;</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#409-437' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Move to the next instruction in the same EBB and return it. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.next_inst">Read more</a></p>
</div><h4 id='method.prev_inst' class="method hidden"><code id='prev_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.prev_inst' class='fnname'>prev_inst</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>&gt;</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#463-491' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Move to the previous instruction in the same EBB and return it. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.prev_inst">Read more</a></p>
</div><h4 id='method.insert_inst' class="method hidden"><code id='insert_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.insert_inst' class='fnname'>insert_inst</a>(&amp;mut self, inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#502-509' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Insert an instruction at the current position. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.insert_inst">Read more</a></p>
</div><h4 id='method.remove_inst' class="method hidden"><code id='remove_inst.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.remove_inst' class='fnname'>remove_inst</a>(&amp;mut self) -&gt; <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#516-521' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Remove the instruction under the cursor. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.remove_inst">Read more</a></p>
</div><h4 id='method.remove_inst_and_step_back' class="method hidden"><code id='remove_inst_and_step_back.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.remove_inst_and_step_back' class='fnname'>remove_inst_and_step_back</a>(&amp;mut self) -&gt; <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#528-533' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Remove the instruction under the cursor. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.remove_inst_and_step_back">Read more</a></p>
</div><h4 id='method.insert_ebb' class="method hidden"><code id='insert_ebb.v'>fn <a href='../../cranelift_codegen/cursor/trait.Cursor.html#method.insert_ebb' class='fnname'>insert_ebb</a>(&amp;mut self, new_ebb: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>)</code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#549-563' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Insert an EBB at the current position and switch to it. <a href="../../cranelift_codegen/cursor/trait.Cursor.html#method.insert_ebb">Read more</a></p>
</div></div><h3 id='impl-InstInserterBase%3C%27c%3E' class='impl'><code class='in-band'>impl&lt;'c, 'f&gt; <a class="trait" href="../../cranelift_codegen/ir/trait.InstInserterBase.html" title="trait cranelift_codegen::ir::InstInserterBase">InstInserterBase</a>&lt;'c&gt; for &amp;'c mut <a class="struct" href="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</code><a href='#impl-InstInserterBase%3C%27c%3E' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#731-765' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.data_flow_graph' class="method hidden"><code id='data_flow_graph.v'>fn <a href='../../cranelift_codegen/ir/trait.InstInserterBase.html#tymethod.data_flow_graph' class='fnname'>data_flow_graph</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../cranelift_codegen/ir/dfg/struct.DataFlowGraph.html" title="struct cranelift_codegen::ir::dfg::DataFlowGraph">DataFlowGraph</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#732-734' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Get an immutable reference to the data flow graph.</p>
</div><h4 id='method.data_flow_graph_mut' class="method hidden"><code id='data_flow_graph_mut.v'>fn <a href='../../cranelift_codegen/ir/trait.InstInserterBase.html#tymethod.data_flow_graph_mut' class='fnname'>data_flow_graph_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../../cranelift_codegen/ir/dfg/struct.DataFlowGraph.html" title="struct cranelift_codegen::ir::dfg::DataFlowGraph">DataFlowGraph</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#736-738' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Get a mutable reference to the data flow graph.</p>
</div><h4 id='method.insert_built_inst' class="method hidden"><code id='insert_built_inst.v'>fn <a href='../../cranelift_codegen/ir/trait.InstInserterBase.html#tymethod.insert_built_inst' class='fnname'>insert_built_inst</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;inst: <a class="struct" href="../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;ctrl_typevar: <a class="struct" href="../../cranelift_codegen/ir/types/struct.Type.html" title="struct cranelift_codegen::ir::types::Type">Type</a><br>) -&gt; &amp;'c mut <a class="struct" href="../../cranelift_codegen/ir/dfg/struct.DataFlowGraph.html" title="struct cranelift_codegen::ir::dfg::DataFlowGraph">DataFlowGraph</a></code><a class='srclink' href='../../src/cranelift_codegen/cursor.rs.html#740-764' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Insert a new instruction which belongs to the DFG.</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&lt;'f&gt; <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="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</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&lt;'f&gt; <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="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</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&lt;'f&gt; <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="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</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&lt;'f&gt; !<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="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</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&lt;'f&gt; !<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="../../cranelift_codegen/cursor/struct.EncCursor.html" title="struct cranelift_codegen::cursor::EncCursor">EncCursor</a>&lt;'f&gt;</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; 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) -&gt; 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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<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>&gt;</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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</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) -&gt; 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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</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> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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>&gt;</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <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>&#9166;</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 = "cranelift_codegen";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>