wasmer/rustdoc/cranelift_codegen/ir/function/struct.Function.html

84 lines
53 KiB
HTML
Raw Normal View History

2019-09-06 15:57:44 -07:00
<!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 `Function` struct in crate `cranelift_codegen`."><meta name="keywords" content="rust, rustlang, rust-lang, Function"><title>cranelift_codegen::ir::function::Function - 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 Function</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.name">name</a><a href="#structfield.signature">signature</a><a href="#structfield.stack_slots">stack_slots</a><a href="#structfield.global_values">global_values</a><a href="#structfield.heaps">heaps</a><a href="#structfield.tables">tables</a><a href="#structfield.jump_tables">jump_tables</a><a href="#structfield.dfg">dfg</a><a href="#structfield.layout">layout</a><a href="#structfield.encodings">encodings</a><a href="#structfield.locations">locations</a><a href="#structfield.offsets">offsets</a><a href="#structfield.jt_offsets">jt_offsets</a><a href="#structfield.srclocs">srclocs</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.clear">clear</a><a href="#method.collect_debug_info">collect_debug_info</a><a href="#method.create_global_value">create_global_value</a><a href="#method.create_heap">create_heap</a><a href="#method.create_jump_table">create_jump_table</a><a href="#method.create_stack_slot">create_stack_slot</a><a href="#method.create_table">create_table</a><a href="#method.display">display</a><a href="#method.display_with">display_with</a><a href="#method.encode">encode</a><a href="#method.import_function">import_function</a><a href="#method.import_signature">import_signature</a><a href="#method.inst_offsets">inst_offsets</a><a href="#method.new">new</a><a href="#method.special_param">special_param</a><a href="#method.update_encoding">update_encoding</a><a href="#method.with_name_signature">with_name_signature</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</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-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</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
pub name: <a class="enum" href="../../../cranelift_codegen/ir/enum.ExternalName.html" title="enum cranelift_codegen::ir::ExternalName">ExternalName</a>,
pub signature: <a class="struct" href="../../../cranelift_codegen/ir/struct.Signature.html" title="struct cranelift_codegen::ir::Signature">Signature</a>,
pub stack_slots: <a class="struct" href="../../../cranelift_codegen/ir/stackslot/struct.StackSlots.html" title="struct cranelift_codegen::ir::stackslot::StackSlots">StackSlots</a>,
pub global_values: <a class="struct" href="../../../cranelift_entity/primary/struct.PrimaryMap.html" title="struct cranelift_entity::primary::PrimaryMap">PrimaryMap</a>&lt;<a class="struct" href="../../../cranelift_codegen/ir/entities/struct.GlobalValue.html" title="struct cranelift_codegen::ir::entities::GlobalValue">GlobalValue</a>, <a class="enum" href="../../../cranelift_codegen/ir/enum.GlobalValueData.html" title="enum cranelift_codegen::ir::GlobalValueData">GlobalValueData</a>&gt;,
pub heaps: <a class="struct" href="../../../cranelift_entity/primary/struct.PrimaryMap.html" title="struct cranelift_entity::primary::PrimaryMap">PrimaryMap</a>&lt;<a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Heap.html" title="struct cranelift_codegen::ir::entities::Heap">Heap</a>, <a class="struct" href="../../../cranelift_codegen/ir/struct.HeapData.html" title="struct cranelift_codegen::ir::HeapData">HeapData</a>&gt;,
pub tables: <a class="struct" href="../../../cranelift_entity/primary/struct.PrimaryMap.html" title="struct cranelift_entity::primary::PrimaryMap">PrimaryMap</a>&lt;<a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Table.html" title="struct cranelift_codegen::ir::entities::Table">Table</a>, <a class="struct" href="../../../cranelift_codegen/ir/struct.TableData.html" title="struct cranelift_codegen::ir::TableData">TableData</a>&gt;,
pub jump_tables: <a class="type" href="../../../cranelift_codegen/ir/type.JumpTables.html" title="type cranelift_codegen::ir::JumpTables">JumpTables</a>,
pub dfg: <a class="struct" href="../../../cranelift_codegen/ir/dfg/struct.DataFlowGraph.html" title="struct cranelift_codegen::ir::dfg::DataFlowGraph">DataFlowGraph</a>,
pub layout: <a class="struct" href="../../../cranelift_codegen/ir/layout/struct.Layout.html" title="struct cranelift_codegen::ir::layout::Layout">Layout</a>,
pub encodings: <a class="type" href="../../../cranelift_codegen/ir/type.InstEncodings.html" title="type cranelift_codegen::ir::InstEncodings">InstEncodings</a>,
pub locations: <a class="type" href="../../../cranelift_codegen/ir/type.ValueLocations.html" title="type cranelift_codegen::ir::ValueLocations">ValueLocations</a>,
pub offsets: <a class="type" href="../../../cranelift_codegen/ir/type.EbbOffsets.html" title="type cranelift_codegen::ir::EbbOffsets">EbbOffsets</a>,
pub jt_offsets: <a class="type" href="../../../cranelift_codegen/ir/type.JumpTableOffsets.html" title="type cranelift_codegen::ir::JumpTableOffsets">JumpTableOffsets</a>,
pub srclocs: <a class="type" href="../../../cranelift_codegen/ir/type.SourceLocs.html" title="type cranelift_codegen::ir::SourceLocs">SourceLocs</a>,
}</pre></div><div class='docblock'><p>A function.</p>
<p>Functions can be cloned, but it is not a very fast operation.
The clone will have all the same entity numbers as the original.</p>
</div><h2 id='fields' class='fields small-section-header'>
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code id="name.v">name: <a class="enum" href="../../../cranelift_codegen/ir/enum.ExternalName.html" title="enum cranelift_codegen::ir::ExternalName">ExternalName</a></code></span><div class='docblock'><p>Name of this function. Mostly used by <code>.clif</code> files.</p>
</div><span id="structfield.signature" class="structfield small-section-header"><a href="#structfield.signature" class="anchor field"></a><code id="signature.v">signature: <a class="struct" href="../../../cranelift_codegen/ir/struct.Signature.html" title="struct cranelift_codegen::ir::Signature">Signature</a></code></span><div class='docblock'><p>Signature of this function.</p>
</div><span id="structfield.stack_slots" class="structfield small-section-header"><a href="#structfield.stack_slots" class="anchor field"></a><code id="stack_slots.v">stack_slots: <a class="struct" href="../../../cranelift_codegen/ir/stackslot/struct.StackSlots.html" title="struct cranelift_codegen::ir::stackslot::StackSlots">StackSlots</a></code></span><div class='docblock'><p>Stack slots allocated in this function.</p>
</div><span id="structfield.global_values" class="structfield small-section-header"><a href="#structfield.global_values" class="anchor field"></a><code id="global_values.v">global_values: <a class="struct" href="../../../cranelift_entity/primary/struct.PrimaryMap.html" title="struct cranelift_entity::primary::PrimaryMap">PrimaryMap</a>&lt;<a class="struct" href="../../../cranelift_codegen/ir/entities/struct.GlobalValue.html" title="struct cranelift_codegen::ir::entities::GlobalValue">GlobalValue</a>, <a class="enum" href="../../../cranelift_codegen/ir/enum.GlobalValueData.html" title="enum cranelift_codegen::ir::GlobalValueData">GlobalValueData</a>&gt;</code></span><div class='docblock'><p>Global values referenced.</p>
</div><span id="structfield.heaps" class="structfield small-section-header"><a href="#structfield.heaps" class="anchor field"></a><code id="heaps.v">heaps: <a class="struct" href="../../../cranelift_entity/primary/struct.PrimaryMap.html" title="struct cranelift_entity::primary::PrimaryMap">PrimaryMap</a>&lt;<a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Heap.html" title="struct cranelift_codegen::ir::entities::Heap">Heap</a>, <a class="struct" href="../../../cranelift_codegen/ir/struct.HeapData.html" title="struct cranelift_codegen::ir::HeapData">HeapData</a>&gt;</code></span><div class='docblock'><p>Heaps referenced.</p>
</div><span id="structfield.tables" class="structfield small-section-header"><a href="#structfield.tables" class="anchor field"></a><code id="tables.v">tables: <a class="struct" href="../../../cranelift_entity/primary/struct.PrimaryMap.html" title="struct cranelift_entity::primary::PrimaryMap">PrimaryMap</a>&lt;<a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Table.html" title="struct cranelift_codegen::ir::entities::Table">Table</a>, <a class="struct" href="../../../cranelift_codegen/ir/struct.TableData.html" title="struct cranelift_codegen::ir::TableData">TableData</a>&gt;</code></span><div class='docblock'><p>Tables referenced.</p>
</div><span id="structfield.jump_tables" class="structfield small-section-header"><a href="#structfield.jump_tables" class="anchor field"></a><code id="jump_tables.v">jump_tables: <a class="type" href="../../../cranelift_codegen/ir/type.JumpTables.html" title="type cranelift_codegen::ir::JumpTables">JumpTables</a></code></span><div class='docblock'><p>Jump tables used in this function.</p>
</div><span id="structfield.dfg" class="structfield small-section-header"><a href="#structfield.dfg" class="anchor field"></a><code id="dfg.v">dfg: <a class="struct" href="../../../cranelift_codegen/ir/dfg/struct.DataFlowGraph.html" title="struct cranelift_codegen::ir::dfg::DataFlowGraph">DataFlowGraph</a></code></span><div class='docblock'><p>Data flow graph containing the primary definition of all instructions, EBBs and values.</p>
</div><span id="structfield.layout" class="structfield small-section-header"><a href="#structfield.layout" class="anchor field"></a><code id="layout.v">layout: <a class="struct" href="../../../cranelift_codegen/ir/layout/struct.Layout.html" title="struct cranelift_codegen::ir::layout::Layout">Layout</a></code></span><div class='docblock'><p>Layout of EBBs and instructions in the function body.</p>
</div><span id="structfield.encodings" class="structfield small-section-header"><a href="#structfield.encodings" class="anchor field"></a><code id="encodings.v">encodings: <a class="type" href="../../../cranelift_codegen/ir/type.InstEncodings.html" title="type cranelift_codegen::ir::InstEncodings">InstEncodings</a></code></span><div class='docblock'><p>Encoding recipe and bits for the legal instructions.
Illegal instructions have the <code>Encoding::default()</code> value.</p>
</div><span id="structfield.locations" class="structfield small-section-header"><a href="#structfield.locations" class="anchor field"></a><code id="locations.v">locations: <a class="type" href="../../../cranelift_codegen/ir/type.ValueLocations.html" title="type cranelift_codegen::ir::ValueLocations">ValueLocations</a></code></span><div class='docblock'><p>Location assigned to every value.</p>
</div><span id="structfield.offsets" class="structfield small-section-header"><a href="#structfield.offsets" class="anchor field"></a><code id="offsets.v">offsets: <a class="type" href="../../../cranelift_codegen/ir/type.EbbOffsets.html" title="type cranelift_codegen::ir::EbbOffsets">EbbOffsets</a></code></span><div class='docblock'><p>Code offsets of the EBB headers.</p>
<p>This information is only transiently available after the <code>binemit::relax_branches</code> function
computes it, and it can easily be recomputed by calling that function. It is not included
in the textual IR format.</p>
</div><span id="structfield.jt_offsets" class="structfield small-section-header"><a href="#structfield.jt_offsets" class="anchor field"></a><code id="jt_offsets.v">jt_offsets: <a class="type" href="../../../cranelift_codegen/ir/type.JumpTableOffsets.html" title="type cranelift_codegen::ir::JumpTableOffsets">JumpTableOffsets</a></code></span><div class='docblock'><p>Code offsets of Jump Table headers.</p>
</div><span id="structfield.srclocs" class="structfield small-section-header"><a href="#structfield.srclocs" class="anchor field"></a><code id="srclocs.v">srclocs: <a class="type" href="../../../cranelift_codegen/ir/type.SourceLocs.html" title="type cranelift_codegen::ir::SourceLocs">SourceLocs</a></code></span><div class='docblock'><p>Source locations.</p>
<p>Track the original source location for each instruction. The source locations are not
interpreted by Cranelift, only preserved.</p>
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#79-222' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.with_name_signature' class="method"><code id='with_name_signature.v'>pub fn <a href='#method.with_name_signature' class='fnname'>with_name_signature</a>(name: <a class="enum" href="../../../cranelift_codegen/ir/enum.ExternalName.html" title="enum cranelift_codegen::ir::ExternalName">ExternalName</a>, sig: <a class="struct" href="../../../cranelift_codegen/ir/struct.Signature.html" title="struct cranelift_codegen::ir::Signature">Signature</a>) -&gt; Self</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#81-98' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a function with the given name and signature.</p>
</div><h4 id='method.clear' class="method"><code id='clear.v'>pub fn <a href='#method.clear' class='fnname'>clear</a>(&amp;mut self)</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#101-114' title='goto source code'>[src]</a></h4><div class='docblock'><p>Clear all data structures in this function.</p>
</div><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>() -&gt; Self</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#117-119' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a new empty, anonymous function with a Fast calling convention.</p>
</div><h4 id='method.create_jump_table' class="method"><code id='create_jump_table.v'>pub fn <a href='#method.create_jump_table' class='fnname'>create_jump_table</a>(&amp;mut self, data: <a class="struct" href="../../../cranelift_codegen/ir/jumptable/struct.JumpTableData.html" title="struct cranelift_codegen::ir::jumptable::JumpTableData">JumpTableData</a>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.JumpTable.html" title="struct cranelift_codegen::ir::entities::JumpTable">JumpTable</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#122-124' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a jump table in the function, to be used by <code>br_table</code> instructions.</p>
</div><h4 id='method.create_stack_slot' class="method"><code id='create_stack_slot.v'>pub fn <a href='#method.create_stack_slot' class='fnname'>create_stack_slot</a>(&amp;mut self, data: <a class="struct" href="../../../cranelift_codegen/ir/stackslot/struct.StackSlotData.html" title="struct cranelift_codegen::ir::stackslot::StackSlotData">StackSlotData</a>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.StackSlot.html" title="struct cranelift_codegen::ir::entities::StackSlot">StackSlot</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a stack slot in the function, to be used by <code>stack_load</code>, <code>stack_store</code> and
<code>stack_addr</code> instructions.</p>
</div><h4 id='method.import_signature' class="method"><code id='import_signature.v'>pub fn <a href='#method.import_signature' class='fnname'>import_signature</a>(&amp;mut self, signature: <a class="struct" href="../../../cranelift_codegen/ir/struct.Signature.html" title="struct cranelift_codegen::ir::Signature">Signature</a>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.SigRef.html" title="struct cranelift_codegen::ir::entities::SigRef">SigRef</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#133-135' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a signature which can later be used to declare an external function import.</p>
</div><h4 id='method.import_function' class="method"><code id='import_function.v'>pub fn <a href='#method.import_function' class='fnname'>import_function</a>(&amp;mut self, data: <a class="struct" href="../../../cranelift_codegen/ir/struct.ExtFuncData.html" title="struct cranelift_codegen::ir::ExtFuncData">ExtFuncData</a>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.FuncRef.html" title="struct cranelift_codegen::ir::entities::FuncRef">FuncRef</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#138-140' title='goto source code'>[src]</a></h4><div class='docblock'><p>Declare an external function import.</p>
</div><h4 id='method.create_global_value' class="method"><code id='create_global_value.v'>pub fn <a href='#method.create_global_value' class='fnname'>create_global_value</a>(&amp;mut self, data: <a class="enum" href="../../../cranelift_codegen/ir/enum.GlobalValueData.html" title="enum cranelift_codegen::ir::GlobalValueData">GlobalValueData</a>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.GlobalValue.html" title="struct cranelift_codegen::ir::entities::GlobalValue">GlobalValue</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock'><p>Declares a global value accessible to the function.</p>
</div><h4 id='method.create_heap' class="method"><code id='create_heap.v'>pub fn <a href='#method.create_heap' class='fnname'>create_heap</a>(&amp;mut self, data: <a class="struct" href="../../../cranelift_codegen/ir/struct.HeapData.html" title="struct cranelift_codegen::ir::HeapData">HeapData</a>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Heap.html" title="struct cranelift_codegen::ir::entities::Heap">Heap</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#148-150' title='goto source code'>[src]</a></h4><div class='docblock'><p>Declares a heap accessible to the function.</p>
</div><h4 id='method.create_table' class="method"><code id='create_table.v'>pub fn <a href='#method.create_table' class='fnname'>create_table</a>(&amp;mut self, data: <a class="struct" href="../../../cranelift_codegen/ir/struct.TableData.html" title="struct cranelift_codegen::ir::TableData">TableData</a>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Table.html" title="struct cranelift_codegen::ir::entities::Table">Table</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#153-155' title='goto source code'>[src]</a></h4><div class='docblock'><p>Declares a table accessible to the function.</p>
</div><h4 id='method.display' class="method"><code id='display.v'>pub fn <a href='#method.display' class='fnname'>display</a>&lt;'a, I:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a dyn <a class="trait" href="../../../cranelift_codegen/isa/trait.TargetIsa.html" title="trait cranelift_codegen::isa::TargetIsa">TargetIsa</a>&gt;&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a self, <br>&nbsp;&nbsp;&nbsp;&nbsp;isa: I<br>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/function/struct.DisplayFunction.html" title="struct cranelift_codegen::ir::function::DisplayFunction">DisplayFunction</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#158-163' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return an object that can display this function with correct ISA-specific annotations.</p>
</div><h4 id='method.display_with' class="method"><code id='display_with.v'>pub fn <a href='#method.display_with' class='fnname'>display_with</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a self, <br>&nbsp;&nbsp;&nbsp;&nbsp;annotations: <a class="struct" href="../../../cranelift_codegen/ir/function/struct.DisplayFunctionAnnotations.html" title="struct cranelift_codegen::ir::function::DisplayFunctionAnnotations">DisplayFunctionAnnotations</a>&lt;'a&gt;<br>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/function/struct.DisplayFunction.html" title="struct cranelift_codegen::ir::function::DisplayFunction">DisplayFunction</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#166-171' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return an object that can display this function with correct ISA-specific annotations.</p>
</div><h4 id='method.special_param' class="method"><code id='special_param.v'>pub fn <a href='#method.special_param' class='fnname'>special_param</a>(&amp;self, purpose: <a class="enum" href="../../../cranelift_codegen/ir/enum.ArgumentPurpose.html" title="enum cranelift_codegen::ir::ArgumentPurpose">ArgumentPurpose</a>) -&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.Value.html" title="struct cranelift_codegen::ir::entities::Value">Value</a>&gt;</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#176-181' title='goto source code'>[src]</a></h4><div class='docblock'><p>Find a presumed unique special-purpose function parameter value.</p>
<p>Returns the value of the last <code>purpose</code> parameter, or <code>None</code> if no such parameter exists.</p>
</div><h4 id='method.inst_offsets' class="method"><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.InstOffsetIter.html" title="struct cranelift_codegen::ir::function::InstOffsetIter">InstOffsetIter</a>&lt;'a&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.InstOffsetIter.html" title="struct cranelift_codegen::ir::function::InstOffsetIter">InstOffsetIter</a>&lt;'a&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.InstOffsetIter.html" title="struct cranelift_codegen::ir::function::InstOffsetIter">InstOffsetIter</a>&lt;'a&gt;</span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="type" href="../../../cranelift_codegen/binemit/type.CodeOffset.html" title="type cranelift_codegen::binemit::CodeOffset">CodeOffset</a>, <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Inst.html" title="struct cranelift_codegen::ir::entities::Inst">Inst</a>, <a class="type" href="../../../cranelift_codegen/binemit/type.CodeOffset.html" title="type cranelift_codegen::binemit::CodeOffset">CodeOffset</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span></code></div></div><code id='inst_offsets.v'>pub fn <a href='#method.inst_offsets' class='fnname'>inst_offsets</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a self, <br>&nbsp;&nbsp;&nbsp;&nbsp;ebb: <a class="struct" href="../../../cranelift_codegen/ir/entities/struct.Ebb.html" title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;encinfo: &amp;<a class="struct" href="../../../cranelift_codegen/isa/struct.EncInfo.html" title="struct cranelift_codegen::isa::EncInfo">EncInfo</a><br>) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/function/struct.InstOffsetIter.html" title="struct cranelift_codegen::ir::function::InstOffsetIter">InstOffsetIter</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#192-205' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get an iterator over the instructions in <code>ebb</code>, including offsets and encoded instruction
sizes.</p>
<p>The iterator returns <code>(offset, inst, size)</code> tuples, where <code>offset</code> if the offset in bytes
from the beginning of the function to the instruction, and <code>size</code> is the size of the
instruction in bytes, or 0 for unencoded instructions.</p>
<p>This function can only be used after the code layout has been computed by the
<code>binemit::relax_branches()</code> function.</p>
</div><h4 id='method.update_encoding' class="method"><code id='update_encoding.v'>pub fn <a href='#method.update_encoding' class='fnname'>update_encoding</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut 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;isa: &amp;dyn <a class="trait" href="../../../cranelift_codegen/isa/trait.TargetIsa.html" title="trait cranelift_codegen::isa::TargetIsa">TargetIsa</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="type" href="../../../cranelift_codegen/isa/type.Legalize.html" title="type cranelift_codegen::isa::Legalize">Legalize</a>&gt;</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#208-210' title='goto source code'>[src]</a></h4><div class='docblock'><p>Wrapper around <code>encode</code> which assigns <code>inst</code> the resulting encoding.</p>
</div><h4 id='method.encode' class="method"><code id='encode.v'>pub fn <a href='#method.encode' class='fnname'>encode</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;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;isa: &amp;dyn <a class="trait" href="../../../cranelift_codegen/isa/trait.TargetIsa.html" title="trait cranelift_codegen::isa::TargetIsa">TargetIsa</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../../cranelift_codegen/isa/struct.Encoding.html" title="struct cranelift_codegen::isa::Encoding">Encoding</a>, <a class="type" href="../../../cranelift_codegen/isa/type.Legalize.html" title="type cranelift_codegen::isa::Legalize">Legalize</a>&gt;</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock'><p>Wrapper around <code>TargetIsa::encode</code> for encoding an existing instruction
in the <code>Function</code>.</p>
</div><h4 id='method.collect_debug_info' class="method"><code id='collect_debug_info.v'>pub fn <a href='#method.collect_debug_info' class='fnname'>collect_debug_info</a>(&amp;mut self)</code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#219-221' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts collection of debug information.</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-Display' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#261-265' 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.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <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/cranelift_codegen/ir/function.rs.html#262-264' 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.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl <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="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#267-271' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code id='fmt.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <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/cranelift_codegen/ir/function.rs.html#268-270' 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><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#26' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a class='srclink' href='../../../src/cranelift_codegen/ir/function.rs.html#26' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">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-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../cranelift_codegen/ir/function/struct.Function.html" title="struct cranelift_codegen::ir::function::Function">Function</a></code><a href='#impl-RefUnwindSafe' 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><h3 id='impl-ToString' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> 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/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<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-ToString' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2134-2144' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_string' class="method hidden"><code id='to_string.v'>default fn <a href='https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string' class='fnname'>to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2136-2143' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> 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/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&amp;self) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&amp;self, target: <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/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">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>