2019-09-16 15:54:50 -07:00

69 lines
40 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Flags` struct in crate `cranelift_codegen`."><meta name="keywords" content="rust, rustlang, rust-lang, Flags"><title>cranelift_codegen::settings::Flags - 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 Flags</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.allones_funcaddrs">allones_funcaddrs</a><a href="#method.avoid_div_traps">avoid_div_traps</a><a href="#method.baldrdash_prologue_words">baldrdash_prologue_words</a><a href="#method.colocated_libcalls">colocated_libcalls</a><a href="#method.enable_atomics">enable_atomics</a><a href="#method.enable_float">enable_float</a><a href="#method.enable_nan_canonicalization">enable_nan_canonicalization</a><a href="#method.enable_simd">enable_simd</a><a href="#method.enable_verifier">enable_verifier</a><a href="#method.is_pic">is_pic</a><a href="#method.jump_tables_enabled">jump_tables_enabled</a><a href="#method.new">new</a><a href="#method.opt_level">opt_level</a><a href="#method.predicate_view">predicate_view</a><a href="#method.probestack_enabled">probestack_enabled</a><a href="#method.probestack_func_adjusts_sp">probestack_func_adjusts_sp</a><a href="#method.probestack_size_log2">probestack_size_log2</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Display">Display</a><a href="#impl-From%3C%26%27a%20Flags%3E">From&lt;&amp;&#39;a Flags&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-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.html'>cranelift_codegen</a>::<wbr><a href='index.html'>settings</a></p><script>window.sidebarCurrent = {name: 'Flags', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#3-5' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>cranelift_codegen</a>::<wbr><a href='index.html'>settings</a>::<wbr><a class="struct" href=''>Flags</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Flags { /* fields omitted */ }</pre></div><div class='docblock'><p>Flags group <code>shared</code>.</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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#6-16' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(builder: <a class="struct" href="../../cranelift_codegen/settings/struct.Builder.html" title="struct cranelift_codegen::settings::Builder">Builder</a>) -&gt; Self</code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#9-15' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create flags shared settings group.</p>
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl <a class="struct" href="../../cranelift_codegen/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#49-171' title='goto source code'>[src]</a></h3><div class='docblock'><p>User-defined settings.</p>
</div><div class='impl-items'><h4 id='method.predicate_view' class="method"><code id='predicate_view.v'>pub fn <a href='#method.predicate_view' class='fnname'>predicate_view</a>(&amp;self) -&gt; <a class="struct" href="../../cranelift_codegen/settings/struct.PredicateView.html" title="struct cranelift_codegen::settings::PredicateView">PredicateView</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#51-53' title='goto source code'>[src]</a></h4><div class='docblock'><p>Get a view of the boolean predicates.</p>
</div><h4 id='method.opt_level' class="method"><code id='opt_level.v'>pub fn <a href='#method.opt_level' class='fnname'>opt_level</a>(&amp;self) -&gt; <a class="enum" href="../../cranelift_codegen/settings/enum.OptLevel.html" title="enum cranelift_codegen::settings::OptLevel">OptLevel</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#63-78' title='goto source code'>[src]</a></h4><div class='docblock'><p>Optimization level:</p>
<ul>
<li>default: Very profitable optimizations enabled, none slow.</li>
<li>best: Enable all optimizations</li>
<li>fastest: Optimize for compile time by disabling most optimizations.</li>
</ul>
</div><h4 id='method.baldrdash_prologue_words' class="method"><code id='baldrdash_prologue_words.v'>pub fn <a href='#method.baldrdash_prologue_words' class='fnname'>baldrdash_prologue_words</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='docblock'><p>Number of pointer-sized words pushed by the baldrdash prologue.</p>
<p>Functions with the <code>baldrdash</code> calling convention don't generate their
own prologue and epilogue. They depend on externally generated code
that pushes a fixed number of words in the prologue and restores them
in the epilogue.</p>
<p>This setting configures the number of pointer-sized words pushed on the
stack when the Cranelift-generated code is entered. This includes the
pushed return address on x86.</p>
</div><h4 id='method.probestack_size_log2' class="method"><code id='probestack_size_log2.v'>pub fn <a href='#method.probestack_size_log2' class='fnname'>probestack_size_log2</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#98-100' title='goto source code'>[src]</a></h4><div class='docblock'><p>The log2 of the size of the stack guard region.</p>
<p>Stack frames larger than this size will have stack overflow checked
by calling the probestack function.</p>
<p>The default is 12, which translates to a size of 4096.</p>
</div><h4 id='method.enable_verifier' class="method"><code id='enable_verifier.v'>pub fn <a href='#method.enable_verifier' class='fnname'>enable_verifier</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#105-107' title='goto source code'>[src]</a></h4><div class='docblock'><p>Run the Cranelift IR verifier at strategic times during compilation.</p>
<p>This makes compilation slower but catches many bugs. The verifier is
disabled by default, except when reading Cranelift IR from a text file.</p>
</div><h4 id='method.is_pic' class="method"><code id='is_pic.v'>pub fn <a href='#method.is_pic' class='fnname'>is_pic</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enable Position-Independent Code generation</p>
</div><h4 id='method.colocated_libcalls' class="method"><code id='colocated_libcalls.v'>pub fn <a href='#method.colocated_libcalls' class='fnname'>colocated_libcalls</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#117-119' title='goto source code'>[src]</a></h4><div class='docblock'><p>Use colocated libcalls.</p>
<p>Generate code that assumes that libcalls can be declared &quot;colocated&quot;,
meaning they will be defined along with the current function, such that
they can use more efficient addressing.</p>
</div><h4 id='method.avoid_div_traps' class="method"><code id='avoid_div_traps.v'>pub fn <a href='#method.avoid_div_traps' class='fnname'>avoid_div_traps</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock'><p>Generate explicit checks around native division instructions to avoid
their trapping.</p>
<p>This is primarily used by SpiderMonkey which doesn't install a signal
handler for SIGFPE, but expects a SIGILL trap for division by zero.</p>
<p>On ISAs like ARM where the native division instructions don't trap,
this setting has no effect - explicit checks are always inserted.</p>
</div><h4 id='method.enable_float' class="method"><code id='enable_float.v'>pub fn <a href='#method.enable_float' class='fnname'>enable_float</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#134-136' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enable the use of floating-point instructions</p>
<p>Disabling use of floating-point instructions is not yet implemented.</p>
</div><h4 id='method.enable_nan_canonicalization' class="method"><code id='enable_nan_canonicalization.v'>pub fn <a href='#method.enable_nan_canonicalization' class='fnname'>enable_nan_canonicalization</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#142-144' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enable NaN canonicalization</p>
<p>This replaces NaNs with a single canonical value, for users requiring
entirely deterministic WebAssembly computation. This is not required
by the WebAssembly spec, so it is not enabled by default.</p>
</div><h4 id='method.enable_simd' class="method"><code id='enable_simd.v'>pub fn <a href='#method.enable_simd' class='fnname'>enable_simd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#146-148' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enable the use of SIMD instructions.</p>
</div><h4 id='method.enable_atomics' class="method"><code id='enable_atomics.v'>pub fn <a href='#method.enable_atomics' class='fnname'>enable_atomics</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#150-152' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enable the use of atomic instructions</p>
</div><h4 id='method.allones_funcaddrs' class="method"><code id='allones_funcaddrs.v'>pub fn <a href='#method.allones_funcaddrs' class='fnname'>allones_funcaddrs</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#154-156' title='goto source code'>[src]</a></h4><div class='docblock'><p>Emit not-yet-relocated function addresses as all-ones bit patterns.</p>
</div><h4 id='method.probestack_enabled' class="method"><code id='probestack_enabled.v'>pub fn <a href='#method.probestack_enabled' class='fnname'>probestack_enabled</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#159-161' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enable the use of stack probes, for calling conventions which support this
functionality.</p>
</div><h4 id='method.probestack_func_adjusts_sp' class="method"><code id='probestack_func_adjusts_sp.v'>pub fn <a href='#method.probestack_func_adjusts_sp' class='fnname'>probestack_func_adjusts_sp</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#164-166' title='goto source code'>[src]</a></h4><div class='docblock'><p>Set this to true of the stack probe function modifies the stack pointer
itself.</p>
</div><h4 id='method.jump_tables_enabled' class="method"><code id='jump_tables_enabled.v'>pub fn <a href='#method.jump_tables_enabled' class='fnname'>jump_tables_enabled</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#168-170' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enable the use of jump tables in generated machine code.</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-From%3C%26%27a%20Flags%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="../../cranelift_codegen/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a>&gt; for <a class="struct" href="../../cranelift_codegen/settings/struct.FlagsOrIsa.html" title="struct cranelift_codegen::settings::FlagsOrIsa">FlagsOrIsa</a>&lt;'a&gt;</code><a href='#impl-From%3C%26%27a%20Flags%3E' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/settings.rs.html#352-356' 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>(flags: &amp;'a <a class="struct" href="../../cranelift_codegen/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a>) -&gt; <a class="struct" href="../../cranelift_codegen/settings/struct.FlagsOrIsa.html" title="struct cranelift_codegen::settings::FlagsOrIsa">FlagsOrIsa</a></code><a class='srclink' href='../../src/cranelift_codegen/settings.rs.html#353-355' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#302-314' 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, f: &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/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#303-313' 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-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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#1' 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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a class='srclink' href='../../src/cranelift_codegen/Users/syrusakbary/Development/wasmer/target/release/build/cranelift-codegen-107194823cb14791/out/settings.rs.html#1' 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-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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <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/settings/struct.Flags.html" title="struct cranelift_codegen::settings::Flags">Flags</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#552-554' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>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>