<!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 `ContextRef` struct in crate `inkwell`."><metaname="keywords"content="rust, rustlang, rust-lang, ContextRef"><title>inkwell::context::ContextRef - 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 ContextRef</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#deref-methods">Methods from Deref<Target=Context></a><divclass="sidebar-links"><ahref="#method.append_basic_block">append_basic_block</a><ahref="#method.bool_type">bool_type</a><ahref="#method.const_string">const_string</a><ahref="#method.const_struct">const_struct</a><ahref="#method.create_builder">create_builder</a><ahref="#method.create_enum_attribute">create_enum_attribute</a><ahref="#method.create_module">create_module</a><ahref="#method.create_module_from_ir">create_module_from_ir</a><ahref="#method.create_string_attribute">create_string_attribute</a><ahref="#method.custom_width_int_type">custom_width_int_type</a><ahref="#method.f128_type">f128_type</a><ahref="#method.f16_type">f16_type</a><ahref="#method.f32_type">f32_type</a><ahref="#method.f64_type">f64_type</a><ahref="#method.get_kind_id">get_kind_id</a><ahref="#method.i128_type">i128_type</a><ahref="#method.i16_type">i16_type</a><ahref="#method.i32_type">i32_type</a><ahref="#method.i64_type">i64_type</a><ahref="#method.i8_type">i8_type</a><ahref="#method.insert_basic_block_after">insert_basic_block_after</a><ahref="#method.metadata_node">metadata_node</a><ahref="#method.metadata_string">metadata_string</a><ahref="#method.opaque_struct_type">opaque_struct_type</a><ahref="#method.ppc_f128_type">ppc_f128_type</a><ahref="#method.prepend_basic_block">prepend_basic_block</a><ahref="#method.struct_type">struct_type</a><ahref="#method.void_type">void_type</a><ahref="#method.x86_f80_type">x86_f80_type</a></div><aclass="sidebar-title"href="#implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-Debug">Debug</a><ahref="#impl-Deref">Deref</a><ahref="#impl-Drop">Drop</a><ahref="#impl-Eq">Eq</a><ahref="#impl-PartialEq%3CContextRef%3E">PartialEq<ContextRef></a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-RefUnwindSafe">!RefUnwindSafe</a><ahref="#impl-Send">!Send</a><ahref="#impl-Sync">!Sync</a><ahref="#impl-Unpin">Unpin</a><ahref="#impl-UnwindSafe">UnwindSafe</a></div><aclass="sidebar-title"href="#blanket-implementations">Blanket Implementations</a><divclass="sidebar-links"><ahref="#impl-Any">Any</a><ahref="#impl-Borrow%3CT%3E">Borrow<T></a><ahref="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><ahref="#impl-From%3CT%3E">From<T></a><ahref="#impl-Into%3CU%3E">Into<U></a><ahref="#impl-TryFrom%3CU%3E">TryFrom<U></a><ahref="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><pclass='location'><ahref='../index.html'>inkwell</a>::<wbr><ahref='index.html'>context</a></p><script>window.sidebarCurr
</div><h2id='deref-methods'class='small-section-header'>Methods from <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html"title="trait core::ops::deref::Deref">Deref</a><Target = <aclass="struct"href="../../inkwell/context/struct.Context.html"title="struct inkwell::context::Context">Context</a>><ahref='#deref-methods'class='anchor'></a></h2><divclass='impl-items'><h4id='method.create_builder'class="method"><codeid='create_builder.v'>pub fn <ahref='#method.create_builder'class='fnname'>create_builder</a>(&self) -><aclass="struct"href="../../inkwell/builder/struct.Builder.html"title="struct inkwell::builder::Builder">Builder</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#95-101'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a new <code>Builder</code> for a <code>Context</code>.</p>
</div><h4id='method.create_module'class="method"><codeid='create_module.v'>pub fn <ahref='#method.create_module'class='fnname'>create_module</a>(&self, name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="struct"href="../../inkwell/module/struct.Module.html"title="struct inkwell::module::Module">Module</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#113-121'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a new <code>Module</code> for a <code>Context</code>.</p>
</div><h4id='method.create_module_from_ir'class="method"><codeid='create_module_from_ir.v'>pub fn <ahref='#method.create_module_from_ir'class='fnname'>create_module_from_ir</a>(<br> &self, <br> memory_buffer: <aclass="struct"href="../../inkwell/memory_buffer/struct.MemoryBuffer.html"title="struct inkwell::memory_buffer::MemoryBuffer">MemoryBuffer</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../../inkwell/module/struct.Module.html"title="struct inkwell::module::Module">Module</a>, <aclass="struct"href="../../inkwell/support/struct.LLVMString.html"title="struct inkwell::support::LLVMString">LLVMString</a>></code><aclass='srclink'href='../../src/inkwell/context.rs.html#149-164'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a new <code>Module</code> for the current <code>Context</code> from a <code>MemoryBuffer</code>.</p>
</div><h4id='method.void_type'class="method"><codeid='void_type.v'>pub fn <ahref='#method.void_type'class='fnname'>void_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.VoidType.html"title="struct inkwell::types::VoidType">VoidType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#178-184'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>VoidType</code>. It will be assigned the current context.</p>
</div><h4id='method.bool_type'class="method"><codeid='bool_type.v'>pub fn <ahref='#method.bool_type'class='fnname'>bool_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.IntType.html"title="struct inkwell::types::IntType">IntType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#199-205'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>IntType</code> representing 1 bit width. It will be assigned the current context.</p>
</div><h4id='method.i8_type'class="method"><codeid='i8_type.v'>pub fn <ahref='#method.i8_type'class='fnname'>i8_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.IntType.html"title="struct inkwell::types::IntType">IntType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#220-226'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>IntType</code> representing 8 bit width. It will be assigned the current context.</p>
</div><h4id='method.i16_type'class="method"><codeid='i16_type.v'>pub fn <ahref='#method.i16_type'class='fnname'>i16_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.IntType.html"title="struct inkwell::types::IntType">IntType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#241-247'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>IntType</code> representing 16 bit width. It will be assigned the current context.</p>
</div><h4id='method.i32_type'class="method"><codeid='i32_type.v'>pub fn <ahref='#method.i32_type'class='fnname'>i32_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.IntType.html"title="struct inkwell::types::IntType">IntType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#262-268'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>IntType</code> representing 32 bit width. It will be assigned the current context.</p>
</div><h4id='method.i64_type'class="method"><codeid='i64_type.v'>pub fn <ahref='#method.i64_type'class='fnname'>i64_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.IntType.html"title="struct inkwell::types::IntType">IntType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#283-289'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>IntType</code> representing 64 bit width. It will be assigned the current context.</p>
</div><h4id='method.i128_type'class="method"><codeid='i128_type.v'>pub fn <ahref='#method.i128_type'class='fnname'>i128_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.IntType.html"title="struct inkwell::types::IntType">IntType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#304-309'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>IntType</code> representing 128 bit width. It will be assigned the current context.</p>
</div><h4id='method.custom_width_int_type'class="method"><codeid='custom_width_int_type.v'>pub fn <ahref='#method.custom_width_int_type'class='fnname'>custom_width_int_type</a>(&self, bits: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="struct"href="../../inkwell/types/struct.IntType.html"title="struct inkwell::types::IntType">IntType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#324-330'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>IntType</code> representing a custom bit width. It will be assigned the current context.</p>
</div><h4id='method.f16_type'class="method"><codeid='f16_type.v'>pub fn <ahref='#method.f16_type'class='fnname'>f16_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.FloatType.html"title="struct inkwell::types::FloatType">FloatType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#345-351'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>FloatType</code> representing a 16 bit width. It will be assigned the current context.</p>
</div><h4id='method.f32_type'class="method"><codeid='f32_type.v'>pub fn <ahref='#method.f32_type'class='fnname'>f32_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.FloatType.html"title="struct inkwell::types::FloatType">FloatType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#366-372'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>FloatType</code> representing a 32 bit width. It will be assigned the current context.</p>
</div><h4id='method.f64_type'class="method"><codeid='f64_type.v'>pub fn <ahref='#method.f64_type'class='fnname'>f64_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.FloatType.html"title="struct inkwell::types::FloatType">FloatType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#387-393'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>FloatType</code> representing a 64 bit width. It will be assigned the current context.</p>
</div><h4id='method.x86_f80_type'class="method"><codeid='x86_f80_type.v'>pub fn <ahref='#method.x86_f80_type'class='fnname'>x86_f80_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.FloatType.html"title="struct inkwell::types::FloatType">FloatType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#408-414'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>FloatType</code> representing a 80 bit width. It will be assigned the current context.</p>
</div><h4id='method.f128_type'class="method"><codeid='f128_type.v'>pub fn <ahref='#method.f128_type'class='fnname'>f128_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.FloatType.html"title="struct inkwell::types::FloatType">FloatType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#429-435'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>FloatType</code> representing a 128 bit width. It will be assigned the current context.</p>
</div><h4id='method.ppc_f128_type'class="method"><codeid='ppc_f128_type.v'>pub fn <ahref='#method.ppc_f128_type'class='fnname'>ppc_f128_type</a>(&self) -><aclass="struct"href="../../inkwell/types/struct.FloatType.html"title="struct inkwell::types::FloatType">FloatType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#452-458'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Gets the <code>FloatType</code> representing a 128 bit width. It will be assigned the current context.</p>
<p>PPC is two 64 bits side by side rather than one single 128 bit float.</p>
</div><h4id='method.struct_type'class="method"><codeid='struct_type.v'>pub fn <ahref='#method.struct_type'class='fnname'>struct_type</a>(<br> &self, <br> field_types: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="enum"href="../../inkwell/types/enum.BasicTypeEnum.html"title="enum inkwell::types::BasicTypeEnum">BasicTypeEnum</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> packed: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -><aclass="struct"href="../../inkwell/types/struct.StructType.html"title="struct inkwell::types::StructType">StructType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#475-484'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a <code>StructType</code> definiton from heterogeneous types in the current <code>Context</code>.</p>
</div><h4id='method.opaque_struct_type'class="method"><codeid='opaque_struct_type.v'>pub fn <ahref='#method.opaque_struct_type'class='fnname'>opaque_struct_type</a>(&self, name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="struct"href="../../inkwell/types/struct.StructType.html"title="struct inkwell::types::StructType">StructType</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#500-508'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates an opaque <code>StructType</code> with no type definition yet defined.</p>
</div><h4id='method.append_basic_block'class="method"><codeid='append_basic_block.v'>pub fn <ahref='#method.append_basic_block'class='fnname'>append_basic_block</a>(<br> &self, <br> function: &<aclass="struct"href="../../inkwell/values/struct.FunctionValue.html"title="struct inkwell::values::FunctionValue">FunctionValue</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/basic_block/struct.BasicBlock.html"title="struct inkwell::basic_block::BasicBlock">BasicBlock</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#559-567'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Append a named <code>BasicBlock</code> at the end of the referenced <code>FunctionValue</code>.</p>
</div><h4id='method.insert_basic_block_after'class="method"><codeid='insert_basic_block_after.v'>pub fn <ahref='#method.insert_basic_block_after'class='fnname'>insert_basic_block_after</a>(<br> &self, <br> basic_block: &<aclass="struct"href="../../inkwell/basic_block/struct.BasicBlock.html"title="struct inkwell::basic_block::BasicBlock">BasicBlock</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/basic_block/struct.BasicBlock.html"title="struct inkwell::basic_block::BasicBlock">BasicBlock</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#594-603'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Append a named <code>BasicBlock</code> after the referenced <code>BasicBlock</code>.</p>
</div><h4id='method.prepend_basic_block'class="method"><codeid='prepend_basic_block.v'>pub fn <ahref='#method.prepend_basic_block'class='fnname'>prepend_basic_block</a>(<br> &self, <br> basic_block: &<aclass="struct"href="../../inkwell/basic_block/struct.BasicBlock.html"title="struct inkwell::basic_block::BasicBlock">BasicBlock</a>, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="struct"href="../../inkwell/basic_block/struct.BasicBlock.html"title="struct inkwell::basic_block::BasicBlock">BasicBlock</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#627-635'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Prepend a named <code>BasicBlock</code> before the referenced <code>BasicBlock</code>.</p>
</div><h4id='method.metadata_node'class="method"><codeid='metadata_node.v'>pub fn <ahref='#method.metadata_node'class='fnname'>metadata_node</a>(&self, 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>) -><aclass="struct"href="../../inkwell/values/struct.MetadataValue.html"title="struct inkwell::values::MetadataValue">MetadataValue</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#659-668'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a <code>MetadataValue</code> tuple of heterogeneous types (a "Node") for the current context. It can be assigned to a value.</p>
</div><h4id='method.metadata_string'class="method"><codeid='metadata_string.v'>pub fn <ahref='#method.metadata_string'class='fnname'>metadata_string</a>(&self, string: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="struct"href="../../inkwell/values/struct.MetadataValue.html"title="struct inkwell::values::MetadataValue">MetadataValue</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#687-695'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a <code>MetadataValue</code> string for the current context. It can be assigned to a value.</p>
<spanclass="kw">let</span><spanclass="ident">md_string</span><spanclass="op">=</span><spanclass="ident">context</span>.<spanclass="ident">metadata_string</span>(<spanclass="string">"Floats are awesome!"</span>);
</div><h4id='method.get_kind_id'class="method"><codeid='get_kind_id.v'>pub fn <ahref='#method.get_kind_id'class='fnname'>get_kind_id</a>(&self, key: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#714-718'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Obtains the index of a metadata kind id. If the string doesn't exist, LLVM will add it at index <code>FIRST_CUSTOM_METADATA_KIND_ID</code> onward.</p>
</div><h4id='method.const_string'class="method"><codeid='const_string.v'>pub fn <ahref='#method.const_string'class='fnname'>const_string</a>(&self, string: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, null_terminated: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -><aclass="struct"href="../../inkwell/values/struct.VectorValue.html"title="struct inkwell::values::VectorValue">VectorValue</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#786-792'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a const string which may be null terminated.</p>
<spanclass="macro">assert_eq</span><spanclass="macro">!</span>(<spanclass="ident">string</span>.<spanclass="ident">print_to_string</span>().<spanclass="ident">to_string</span>(), <spanclass="string">"[9 x i8] c\"my_string\""</span>);</pre></div>
</div></div><h2id='implementations'class='small-section-header'>Trait Implementations<ahref='#implementations'class='anchor'></a></h2><divid='implementations-list'><h3id='impl-Eq'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> for <aclass="struct"href="../../inkwell/context/struct.ContextRef.html"title="struct inkwell::context::ContextRef">ContextRef</a></code><ahref='#impl-Eq'class='anchor'></a><aclass='srclink'href='../../src/inkwell/context.rs.html#820'title='goto source code'>[src]</a></h3><divclass='impl-items'></div><h3id='impl-PartialEq%3CContextRef%3E'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><<aclass="struct"href="../../inkwell/context/struct.ContextRef.html"title="struct inkwell::context::ContextRef">ContextRef</a>> for <aclass="struct"href="../../inkwell/context/struct.ContextRef.html"title="struct inkwell::context::ContextRef">ContextRef</a></code><ahref='#impl-PartialEq%3CContextRef%3E'class='anchor'></a><aclass='srclink'href='../../src/inkwell/context.rs.html#820'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.eq'class="method hidden"><codeid='eq.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq'class='fnname'>eq</a>(&self, other: &<aclass="struct"href="../../inkwell/context/struct.ContextRef.html"title="struct inkwell::context::ContextRef">ContextRef</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#820'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></div><h3id='impl-Deref'class='impl'><codeclass='in-band'>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html"title="trait core::ops::deref::Deref">Deref</a> for <aclass="struct"href="../../inkwell/context/struct.ContextRef.html"title="struct inkwell::context::ContextRef">ContextRef</a></code><ahref='#impl-Deref'class='anchor'></a><aclass='srclink'href='../../src/inkwell/context.rs.html#833-839'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Target'class="type"><codeid='Target.t'>type <ahref='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target'class="type">Target</a> = <aclass="struct"href="../../inkwell/context/struct.Context.html"title="struct inkwell::context::Context">Context</a></code></h4><divclass='docblock'><p>The resulting type after dereferencing.</p>
</div><h4id='method.deref'class="method hidden"><codeid='deref.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref'class='fnname'>deref</a>(&self) ->&Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target"title="type core::ops::deref::Deref::Target">Target</a></code><aclass='srclink'href='../../src/inkwell/context.rs.html#836-838'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Dereferences the value.</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/context/struct.ContextRef.html"title="struct inkwell::context::ContextRef">ContextRef</a></code><ahref='#impl-Debug'class='anchor'></a><aclass='srclink'href='../../src/inkwell/context.rs.html#820'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/context.rs.html#820'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>