<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `InstructionData` enum in crate `cranelift_codegen`."><metaname="keywords"content="rust, rustlang, rust-lang, InstructionData"><title>cranelift_codegen::ir::instructions::InstructionData - Rust</title><linkrel="stylesheet"type="text/css"href="../../../normalize.css"><linkrel="stylesheet"type="text/css"href="../../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../../../dark.css"><linkrel="stylesheet"type="text/css"href="../../../light.css"id="themeStyle"><scriptsrc="../../../storage.js"></script><noscript><linkrel="stylesheet"href="../../../noscript.css"></noscript><linkrel="shortcut icon"href="../../../favicon.ico"><styletype="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><bodyclass="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../../../cranelift_codegen/index.html'><divclass='logo-container'><imgsrc='../../../rust-logo.png'alt='logo'></div></a><pclass='location'>Enum InstructionData</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#variants">Variants</a><divclass="sidebar-links"><ahref="#variant.Unary">Unary</a><ahref="#variant.UnaryImm">UnaryImm</a><ahref="#variant.UnaryIeee32">UnaryIeee32</a><ahref="#variant.UnaryIeee64">UnaryIeee64</a><ahref="#variant.UnaryBool">UnaryBool</a><ahref="#variant.UnaryGlobalValue">UnaryGlobalValue</a><ahref="#variant.Binary">Binary</a><ahref="#variant.BinaryImm">BinaryImm</a><ahref="#variant.Ternary">Ternary</a><ahref="#variant.MultiAry">MultiAry</a><ahref="#variant.NullAry">NullAry</a><ahref="#variant.InsertLane">InsertLane</a><ahref="#variant.ExtractLane">ExtractLane</a><ahref="#variant.IntCompare">IntCompare</a><ahref="#variant.IntCompareImm">IntCompareImm</a><ahref="#variant.IntCond">IntCond</a><ahref="#variant.FloatCompare">FloatCompare</a><ahref="#variant.FloatCond">FloatCond</a><ahref="#variant.IntSelect">IntSelect</a><ahref="#variant.Jump">Jump</a><ahref="#variant.Branch">Branch</a><ahref="#variant.BranchInt">BranchInt</a><ahref="#variant.BranchFloat">BranchFloat</a><ahref="#variant.BranchIcmp">BranchIcmp</a><ahref="#variant.BranchTable">BranchTable</a><ahref="#variant.BranchTableEntry">BranchTableEntry</a><ahref="#variant.BranchTableBase">BranchTableBase</a><ahref="#variant.IndirectJump">IndirectJump</a><ahref="#variant.Call">Call</a><ahref="#variant.CallIndirect">CallIndirect</a><ahref="#variant.FuncAddr">FuncAddr</a><ahref="#variant.Load">Load</a><ahref="#variant.LoadComplex">LoadComplex</a><ahref="#variant.Store">Store</a><ahref="#variant.StoreComplex">StoreComplex</a><ahref="#variant.StackLoad">StackLoad</a><ahref="#variant.StackStore">StackStore</a><ahref="#variant.HeapAddr">HeapAddr</a><ahref="#variant.TableAddr">TableAddr</a><ahref="#variant.RegMove">RegMove</a><ahref="#variant.CopySpecial">CopySpecial</a><ahref="#variant.RegSpill">RegSpill</a><ahref="#variant.RegFill">RegFill</a><ahref="#variant.Trap">Trap</a><ahref="#variant.CondTrap">CondTrap</a><ahref="#variant.IntCondTrap">IntCondTrap</a><ahref="#variant.FloatCondTrap">FloatCondTrap</a></div><aclass="sidebar-title"href="#methods">Methods</a><divclass="sidebar-links"><ahref="#method.analyze_branch">analyze_branch</a><ahref="#method.analyze_call">analyze_call</a><ahref="#method.arguments">arguments</a><ahref="#method.arguments_mut">arguments_mut</a><ahref="#method.branch_destination">branch_destination</a><ahref="#method.branch_destination_mut">branch_destination_mut</a><ahref="#method.eq">eq</a><ahref="#method.hash">hash</a><ahref="#method.opcode">opcode</a><ahref="#method.put_value_list">put_value_list</a><ahref="#method.take_
</div><h4id='method.typevar_operand'class="method"><codeid='typevar_operand.v'>pub fn <ahref='#method.typevar_operand'class='fnname'>typevar_operand</a>(&self, pool: &<aclass="type"href="../../../cranelift_codegen/ir/instructions/type.ValueListPool.html"title="type cranelift_codegen::ir::instructions::ValueListPool">ValueListPool</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../../../cranelift_codegen/ir/entities/struct.Value.html"title="struct cranelift_codegen::ir::entities::Value">Value</a>></code><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#553-615'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Get the controlling type variable operand.</p>
</div><h4id='method.arguments'class="method"><codeid='arguments.v'>pub fn <ahref='#method.arguments'class='fnname'>arguments</a><'a>(&'a self, pool: &'a <aclass="type"href="../../../cranelift_codegen/ir/instructions/type.ValueListPool.html"title="type cranelift_codegen::ir::instructions::ValueListPool">ValueListPool</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="struct"href="../../../cranelift_codegen/ir/entities/struct.Value.html"title="struct cranelift_codegen::ir::entities::Value">Value</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#618-678'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Get the value arguments to this instruction.</p>
</div><h4id='method.arguments_mut'class="method"><codeid='arguments_mut.v'>pub fn <ahref='#method.arguments_mut'class='fnname'>arguments_mut</a><'a>(<br> &'a mut self, <br> pool: &'a mut <aclass="type"href="../../../cranelift_codegen/ir/instructions/type.ValueListPool.html"title="type cranelift_codegen::ir::instructions::ValueListPool">ValueListPool</a><br>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</a><aclass="struct"href="../../../cranelift_codegen/ir/entities/struct.Value.html"title="struct cranelift_codegen::ir::entities::Value">Value</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#682-742'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Get mutable references to the value arguments to this
</div><h4id='method.take_value_list'class="method"><codeid='take_value_list.v'>pub fn <ahref='#method.take_value_list'class='fnname'>take_value_list</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="type"href="../../../cranelift_codegen/ir/instructions/type.ValueList.html"title="type cranelift_codegen::ir::instructions::ValueList">ValueList</a>></code><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#749-767'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Take out the value list with all the value arguments and return
</div><h4id='method.put_value_list'class="method"><codeid='put_value_list.v'>pub fn <ahref='#method.put_value_list'class='fnname'>put_value_list</a>(&mut self, vlist: <aclass="type"href="../../../cranelift_codegen/ir/instructions/type.ValueList.html"title="type cranelift_codegen::ir::instructions::ValueList">ValueList</a>)</code><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#775-791'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Put back a value list.</p>
<p>This operation requires a reference to a <code>ValueListPool</code> to
hash the contents of any <code>ValueLists</code>.</p>
</div></div><h3id='impl-1'class='impl'><codeclass='in-band'>impl <aclass="enum"href="../../../cranelift_codegen/ir/instructions/enum.InstructionData.html"title="enum cranelift_codegen::ir::instructions::InstructionData">InstructionData</a></code><ahref='#impl-1'class='anchor'></a><aclass='srclink'href='../../../src/cranelift_codegen/ir/instructions.rs.html#165-278'title='goto source code'>[src]</a></h3><divclass='docblock'><p>Analyzing an instruction.</p>
<p>Avoid large matches on instruction formats by using the methods defined here to examine
instructions.</p>
</div><divclass='impl-items'><h4id='method.analyze_branch'class="method"><codeid='analyze_branch.v'>pub fn <ahref='#method.analyze_branch'class='fnname'>analyze_branch</a><'a>(&'a self, pool: &'a <aclass="type"href="../../../cranelift_codegen/ir/instructions/type.ValueListPool.html"title="type cranelift_codegen::ir::instructions::ValueListPool">ValueListPool</a>) -><aclass="enum"href="../../../cranelift_codegen/ir/instructions/enum.BranchInfo.html"title="enum cranelift_codegen::ir::instructions::BranchInfo">BranchInfo</a><'a></code><aclass='srclink'href='../../../src/cranelift_codegen/ir/instructions.rs.html#170-206'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return information about the destination of a branch or jump instruction.</p>
<p>Any instruction that can transfer control to another EBB reveals its possible destinations
here.</p>
</div><h4id='method.branch_destination'class="method"><codeid='branch_destination.v'>pub fn <ahref='#method.branch_destination'class='fnname'>branch_destination</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../../../cranelift_codegen/ir/entities/struct.Ebb.html"title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>></code><aclass='srclink'href='../../../src/cranelift_codegen/ir/instructions.rs.html#212-225'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Get the single destination of this branch instruction, if it is a single destination
branch or jump.</p>
<p>Multi-destination branches like <code>br_table</code> return <code>None</code>.</p>
</div><h4id='method.branch_destination_mut'class="method"><codeid='branch_destination_mut.v'>pub fn <ahref='#method.branch_destination_mut'class='fnname'>branch_destination_mut</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&mut <aclass="struct"href="../../../cranelift_codegen/ir/entities/struct.Ebb.html"title="struct cranelift_codegen::ir::entities::Ebb">Ebb</a>></code><aclass='srclink'href='../../../src/cranelift_codegen/ir/instructions.rs.html#231-259'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Get a mutable reference to the single destination of this branch instruction, if it is a
single destination branch or jump.</p>
<p>Multi-destination branches like <code>br_table</code> return <code>None</code>.</p>
</div><h4id='method.analyze_call'class="method"><codeid='analyze_call.v'>pub fn <ahref='#method.analyze_call'class='fnname'>analyze_call</a><'a>(&'a self, pool: &'a <aclass="type"href="../../../cranelift_codegen/ir/instructions/type.ValueListPool.html"title="type cranelift_codegen::ir::instructions::ValueListPool">ValueListPool</a>) -><aclass="enum"href="../../../cranelift_codegen/ir/instructions/enum.CallInfo.html"title="enum cranelift_codegen::ir::instructions::CallInfo">CallInfo</a><'a></code><aclass='srclink'href='../../../src/cranelift_codegen/ir/instructions.rs.html#264-277'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return information about a call instruction.</p>
<p>Any instruction that can call another function reveals its call signature here.</p>
</div></div><h3id='impl-Debug'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="enum"href="../../../cranelift_codegen/ir/instructions/enum.InstructionData.html"title="enum cranelift_codegen::ir::instructions::InstructionData">InstructionData</a></code><ahref='#impl-Debug'class='anchor'></a><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#252'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.fmt'class="method hidden"><codeid='fmt.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt'class='fnname'>fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></code><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#252'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3id='impl-Clone'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="enum"href="../../../cranelift_codegen/ir/instructions/enum.InstructionData.html"title="enum cranelift_codegen::ir::instructions::InstructionData">InstructionData</a></code><ahref='#impl-Clone'class='anchor'></a><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#252'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.clone'class="method hidden"><codeid='clone.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone'class='fnname'>clone</a>(&self) -><aclass="enum"href="../../../cranelift_codegen/ir/instructions/enum.InstructionData.html"title="enum cranelift_codegen::ir::instructions::InstructionData">InstructionData</a></code><aclass='srclink'href='../../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/opcodes.rs.html#252'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Returns a copy of the value. <ahref="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></div><h3id='impl-TryFrom%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref='#impl-TryFrom%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error'class="type"><codeid='Error.t'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error'class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_from'class="method hidden"><codeid='try_from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from'class='fnname'>try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-Into%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T>, </span></code><ahref='#impl-Into%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#543-548'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.into'class="method hidden"><codeid='into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into'class='fnname'>into</a>(self) -> U</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#545-547'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryInto%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref='#impl-TryInto%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-1'class="type"><codeid='Error.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error'class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="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><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_into'class="method hidden"><codeid='try_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into'class='fnname'>try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-Borrow%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Borrow%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow'class="method hidden"><codeid='borrow.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow'class='fnname'>borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id='impl-BorrowMut%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-BorrowMut%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow_mut'class="method hidden"><codeid='borrow_mut.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut'class='fnname'>borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id='impl-Any'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Any'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.type_id'class="method hidden"><codeid='type_id.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id'class='fnname'>type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3id='impl-ToOwned'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code><ahref='#impl-ToOwned'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Owned'class="type"><codeid='Owned.t'>type <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned'class="type">Owned</a> = T</code></h4><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4id='method.to_owned'class="method hidden"><codeid='to_owned.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned'class='fnname'>to_owned</a>(&self) -> T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4id='method.clone_into'class="method hidden"><codeid='clone_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into'class='fnname'>clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91'title='goto source code'>[src]</a></h4><divclass='stability hidden'><divclass='stab unstable'><details><summary><spanclass='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="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><scriptsrc="../../../aliases.js"></script><scriptsrc="../../../main.js"></script><scriptdefersrc="../../../search-index.js"></script></body></html>