<!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 `Builder` struct in crate `inkwell`."><metaname="keywords"content="rust, rustlang, rust-lang, Builder"><title>inkwell::builder::Builder - 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 struct"><!--[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='../../inkwell/index.html'><divclass='logo-container'><imgsrc='../../rust-logo.png'alt='logo'></div></a><pclass='location'>Struct Builder</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#methods">Methods</a><divclass="sidebar-links"><ahref="#method.build_address_space_cast">build_address_space_cast</a><ahref="#method.build_aggregate_return">build_aggregate_return</a><ahref="#method.build_alloca">build_alloca</a><ahref="#method.build_and">build_and</a><ahref="#method.build_array_alloca">build_array_alloca</a><ahref="#method.build_array_malloc">build_array_malloc</a><ahref="#method.build_atomicrmw">build_atomicrmw</a><ahref="#method.build_bitcast">build_bitcast</a><ahref="#method.build_call">build_call</a><ahref="#method.build_cast">build_cast</a><ahref="#method.build_cmpxchg">build_cmpxchg</a><ahref="#method.build_conditional_branch">build_conditional_branch</a><ahref="#method.build_extract_element">build_extract_element</a><ahref="#method.build_extract_value">build_extract_value</a><ahref="#method.build_fence">build_fence</a><ahref="#method.build_float_add">build_float_add</a><ahref="#method.build_float_cast">build_float_cast</a><ahref="#method.build_float_compare">build_float_compare</a><ahref="#method.build_float_div">build_float_div</a><ahref="#method.build_float_ext">build_float_ext</a><ahref="#method.build_float_mul">build_float_mul</a><ahref="#method.build_float_neg">build_float_neg</a><ahref="#method.build_float_rem">build_float_rem</a><ahref="#method.build_float_sub">build_float_sub</a><ahref="#method.build_float_to_signed_int">build_float_to_signed_int</a><ahref="#method.build_float_to_unsigned_int">build_float_to_unsigned_int</a><ahref="#method.build_float_trunc">build_float_trunc</a><ahref="#method.build_free">build_free</a><ahref="#method.build_gep">build_gep</a><ahref="#method.build_global_string">build_global_string</a><ahref="#method.build_global_string_ptr">build_global_string_ptr</a><ahref="#method.build_in_bounds_gep">build_in_bounds_gep</a><ahref="#method.build_indirect_branch">build_indirect_branch</a><ahref="#method.build_insert_element">build_insert_element</a><ahref="#method.build_insert_value">build_insert_value</a><ahref="#method.build_int_add">build_int_add</a><ahref="#method.build_int_cast">build_int_cast</a><ahref="#method.build_int_compare">build_int_compare</a><ahref="#method.build_int_exact_signed_div">build_int_exact_signed_div</a><ahref="#method.build_int_mul">build_int_mul</a><ahref="#method.build_int_neg">build_int_neg</a><ahref="#method.build_int_nsw_add">build_int_nsw_add</a><ahref="#method.build_int_nsw_mul">build_int_nsw_mul</a><ahref="#method.build_int_nsw_neg">build_int_nsw_neg</a><ahref="#method.build_int_nsw_sub">build_int_nsw_sub</a><ahref="#method.build_int_nuw_add">build_int_nuw_add</a><ahref="#method.build_int_nuw_mul">build_int_nuw_mul</a><ahr
</div><h4id='method.build_return'class="method"><codeid='build_return.v'>pub fn <ahref='#method.build_return'class='fnname'>build_return</a>(&self, value: <aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&dyn <aclass="trait"href="../../inkwell/values/trait.BasicValue.html"title="trait inkwell::values::BasicValue">BasicValue</a>>) -><aclass="struct"href="../../inkwell/values/struct.InstructionValue.html"title="struct inkwell::values::InstructionValue">InstructionValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#72-78'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds a function return instruction. It should be provided with <code>None</code> if the return type
is void otherwise <code>Some(&value)</code> should be provided.</p>
</div><h4id='method.build_aggregate_return'class="method"><codeid='build_aggregate_return.v'>pub fn <ahref='#method.build_aggregate_return'class='fnname'>build_aggregate_return</a>(<br> &self, <br> values: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="enum"href="../../inkwell/values/enum.BasicValueEnum.html"title="enum inkwell::values::BasicValueEnum">BasicValueEnum</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -><aclass="struct"href="../../inkwell/values/struct.InstructionValue.html"title="struct inkwell::values::InstructionValue">InstructionValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#103-112'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds a function return instruction for a return type which is an aggregate type (ie structs and arrays).
It is not necessary to use this over <code>build_return</code> but may be more convenient to use.</p>
</div><h4id='method.build_call'class="method"><codeid='build_call.v'>pub fn <ahref='#method.build_call'class='fnname'>build_call</a><F>(<br> &self, <br> function: F, <br> args: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="enum"href="../../inkwell/values/enum.BasicValueEnum.html"title="enum inkwell::values::BasicValueEnum">BasicValueEnum</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/values/struct.CallSiteValue.html"title="struct inkwell::values::CallSiteValue">CallSiteValue</a><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="enum"href="../../either/enum.Either.html"title="enum either::Either">Either</a><<aclass="struct"href="../../inkwell/values/struct.FunctionValue.html"title="struct inkwell::values::FunctionValue">FunctionValue</a>, <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>>>, </span></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#142-181'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds a function call instruction. It can take either a <code>FunctionValue</code> or a <code>PointerValue</code>
which is a function pointer. It will panic if the <code>PointerValue</code> is not a function pointer.
This may be turned into a Result in the future, however.</p>
</div><h4id='method.build_gep'class="method"><codeid='build_gep.v'>pub unsafe fn <ahref='#method.build_gep'class='fnname'>build_gep</a>(<br> &self, <br> ptr: <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>, <br> ordered_indexes: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="struct"href="../../inkwell/values/struct.IntValue.html"title="struct inkwell::values::IntValue">IntValue</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#185-194'title='goto source code'>[src]</a></h4><divclass='docblock'><p>GEP is very likely to segfault if indexes are used incorrectly, and is therefore an unsafe function. Maybe we can change this in the future.</p>
</div><h4id='method.build_in_bounds_gep'class="method"><codeid='build_in_bounds_gep.v'>pub unsafe fn <ahref='#method.build_in_bounds_gep'class='fnname'>build_in_bounds_gep</a>(<br> &self, <br> ptr: <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>, <br> ordered_indexes: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="struct"href="../../inkwell/values/struct.IntValue.html"title="struct inkwell::values::IntValue">IntValue</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#199-208'title='goto source code'>[src]</a></h4><divclass='docblock'><p>GEP is very likely to segfault if indexes are used incorrectly, and is therefore an unsafe function. Maybe we can change this in the future.</p>
</div><h4id='method.build_struct_gep'class="method"><codeid='build_struct_gep.v'>pub unsafe fn <ahref='#method.build_struct_gep'class='fnname'>build_struct_gep</a>(<br> &self, <br> ptr: <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>, <br> index: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#214-220'title='goto source code'>[src]</a></h4><divclass='docblock'><p>GEP is very likely to segfault if indexes are used incorrectly, and is therefore an unsafe function. Maybe we can change this in the future.</p>
</div><h4id='method.build_ptr_diff'class="method"><codeid='build_ptr_diff.v'>pub fn <ahref='#method.build_ptr_diff'class='fnname'>build_ptr_diff</a>(<br> &self, <br> lhs_ptr: <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>, <br> rhs_ptr: <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/values/struct.IntValue.html"title="struct inkwell::values::IntValue">IntValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#247-255'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds an instruction which calculates the difference of two pointers.</p>
</div><h4id='method.build_phi'class="method"><codeid='build_phi.v'>pub fn <ahref='#method.build_phi'class='fnname'>build_phi</a><T: <aclass="trait"href="../../inkwell/types/trait.BasicType.html"title="trait inkwell::types::BasicType">BasicType</a>>(&self, type_: T, name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="struct"href="../../inkwell/values/struct.PhiValue.html"title="struct inkwell::values::PhiValue">PhiValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#262-270'title='goto source code'>[src]</a></h4><h4id='method.build_store'class="method"><codeid='build_store.v'>pub fn <ahref='#method.build_store'class='fnname'>build_store</a><V: <aclass="trait"href="../../inkwell/values/trait.BasicValue.html"title="trait inkwell::values::BasicValue">BasicValue</a>>(<br> &self, <br> ptr: <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>, <br> value: V<br>) -><aclass="struct"href="../../inkwell/values/struct.InstructionValue.html"title="struct inkwell::values::InstructionValue">InstructionValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#297-303'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds a store instruction. It allows you to store a value of type <code>T</code> in a pointer to a type <code>T</code>.</p>
</div><h4id='method.build_load'class="method"><codeid='build_load.v'>pub fn <ahref='#method.build_load'class='fnname'>build_load</a>(&self, ptr: <aclass="struct"href="../../inkwell/values/struct.PointerValue.html"title="struct inkwell::values::PointerValue">PointerValue</a>, name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="../../inkwell/values/enum.BasicValueEnum.html"title="enum inkwell::values::BasicValueEnum">BasicValueEnum</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#330-338'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds a load instruction. It allows you to retrieve a value of type <code>T</code> from a pointer to a type <code>T</code>.</p>
</div><h4id='method.build_right_shift'class="method"><codeid='build_right_shift.v'>pub fn <ahref='#method.build_right_shift'class='fnname'>build_right_shift</a><T: <aclass="trait"href="../../inkwell/values/trait.IntMathValue.html"title="trait inkwell::values::IntMathValue">IntMathValue</a>>(<br> &self, <br> lhs: T, <br> rhs: T, <br> sign_extend: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> T</code><aclass='srclink'href='../../src/inkwell/builder.rs.html#889-901'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds an <code>IntValue</code> containing the result of a right shift instruction.</p>
</div><h4id='method.build_insert_element'class="method"><codeid='build_insert_element.v'>pub fn <ahref='#method.build_insert_element'class='fnname'>build_insert_element</a><V: <aclass="trait"href="../../inkwell/values/trait.BasicValue.html"title="trait inkwell::values::BasicValue">BasicValue</a>>(<br> &self, <br> vector: <aclass="struct"href="../../inkwell/values/struct.VectorValue.html"title="struct inkwell::values::VectorValue">VectorValue</a>, <br> element: V, <br> index: <aclass="struct"href="../../inkwell/values/struct.IntValue.html"title="struct inkwell::values::IntValue">IntValue</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/values/struct.VectorValue.html"title="struct inkwell::values::VectorValue">VectorValue</a></code><aclass='srclink'href='../../src/inkwell/builder.rs.html#1319-1327'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Builds an insert element instruction which inserts a <code>BasicValue</code> into a vector
</div></div><h2id='implementations'class='small-section-header'>Trait Implementations<ahref='#implementations'class='anchor'></a></h2><divid='implementations-list'><h3id='impl-Drop'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html"title="trait core::ops::drop::Drop">Drop</a> for <aclass="struct"href="../../inkwell/builder/struct.Builder.html"title="struct inkwell::builder::Builder">Builder</a></code><ahref='#impl-Drop'class='anchor'></a><aclass='srclink'href='../../src/inkwell/builder.rs.html#1569-1575'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.drop'class="method hidden"><codeid='drop.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop'class='fnname'>drop</a>(&mut self)</code><aclass='srclink'href='../../src/inkwell/builder.rs.html#1570-1574'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Executes the destructor for this type. <ahref="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></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="struct"href="../../inkwell/builder/struct.Builder.html"title="struct inkwell::builder::Builder">Builder</a></code><ahref='#impl-Debug'class='anchor'></a><aclass='srclink'href='../../src/inkwell/builder.rs.html#17'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/inkwell/builder.rs.html#17'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-From%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</code><ahref='#impl-From%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#552-554'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from'class="method hidden"><codeid='from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from'class='fnname'>from</a>(t: T) -> T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</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-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-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-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-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></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="inkwell";</script><scriptsrc="../../aliases.js"></script><scriptsrc="../../main.js"></script><scriptdefersrc="../../search-index.js"></script></body></html>