<!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="An object describing the configuration of a `Regex`."><title>Config in regex_automata::meta - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><linkrel="stylesheet"href="../../static.files/normalize-76eba96aa4d2e634.css"><linkrel="stylesheet"href="../../static.files/rustdoc-ac92e1bbe349e143.css"><metaname="rustdoc-vars"data-root-path="../../"data-static-root-path="../../static.files/"data-current-crate="regex_automata"data-themes=""data-resource-suffix=""data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)"data-channel="1.76.0"data-search-js="search-2b6ce74ff89ae146.js"data-settings-js="settings-4313503d2e1961c2.js"><scriptsrc="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../static.files/main-305769736d49e732.js"></script><noscript><linkrel="stylesheet"href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><linkrel="alternate icon"type="image/png"href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><linkrel="alternate icon"type="image/png"href="../../static.files/favicon-32x32-422f7d1d52889060.png"><linkrel="icon"type="image/svg+xml"href="../../static.files/favicon-2c020d218678b618.svg"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button></nav><navclass="sidebar"><divclass="sidebar-crate"><h2><ahref="../../regex_automata/index.html">regex_automata</a><spanclass="version">0.4.6</span></h2></div><h2class="location"><ahref="#">Config</a></h2><divclass="sidebar-elems"><section><h3><ahref="#implementations">Methods</a></h3><ulclass="block method"><li><ahref="#method.auto_prefilter">auto_prefilter</a></li><li><ahref="#method.backtrack">backtrack</a></li><li><ahref="#method.byte_classes">byte_classes</a></li><li><ahref="#method.dfa">dfa</a></li><li><ahref="#method.dfa_size_limit">dfa_size_limit</a></li><li><ahref="#method.dfa_state_limit">dfa_state_limit</a></li><li><ahref="#method.get_auto_prefilter">get_auto_prefilter</a></li><li><ahref="#method.get_backtrack">get_backtrack</a></li><li><ahref="#method.get_byte_classes">get_byte_classes</a></li><li><ahref="#method.get_dfa">get_dfa</a></li><li><ahref="#method.get_dfa_size_limit">get_dfa_size_limit</a></li><li><ahref="#method.get_dfa_state_limit">get_dfa_state_limit</a></li><li><ahref="#method.get_hybrid">get_hybrid</a></li><li><ahref="#method.get_hybrid_cache_capacity">get_hybrid_cache_capacity</a></li><li><ahref="#method.get_line_terminator">get_line_terminator</a></li><li><ahref="#method.get_match_kind">get_match_kind</a></li><li><ahref="#method.get_nfa_size_limit">get_nfa_size_limit</a></li><li><ahref="#method.get_onepass">get_onepass</a></li><li><ahref="#method.get_onepass_size_limit">get_onepass_size_limit</a></li><li><ahref="#method.get_prefilter">get_prefilter</a></li><li><ahref="#method.get_utf8_empty">get_utf8_empty</a></li><li><ahref="#method.get_which_captures">get_which_captures</a></li><li><ahref="#method.hybrid">hybrid</a></li><li><ahref="#method.hybrid_cache_capacity">hybrid_cache_capacity</a></li><li><ahre
<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../../regex_automata/all.html"title="show sidebar"></a></div><inputclass="search-input"name="search"aria-label="Run search in the documentation"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"tabindex="-1"><ahref="../../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Struct <ahref="../index.html">regex_automata</a>::<wbr><ahref="index.html">meta</a>::<wbr><aclass="struct"href="#">Config</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../../src/regex_automata/meta/regex.rs.html#2428-2452">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub struct Config { <spanclass="comment">/* private fields */</span> }</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>An object describing the configuration of a <code>Regex</code>.</p>
<p>This configuration only includes options for the
non-syntax behavior of a <code>Regex</code>, and can be applied via the
<ahref="struct.Builder.html#method.configure"title="method regex_automata::meta::Builder::configure"><code>Builder::configure</code></a> method. For configuring the syntax options, see
</div></details><h2id="implementations"class="section-header">Implementations<ahref="#implementations"class="anchor">§</a></h2><divid="implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Config"class="impl"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2454-3235">source</a><ahref="#impl-Config"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.new"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2456-2458">source</a><h4class="code-header">pub fn <ahref="#method.new"class="fn">new</a>() -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Create a new configuration object for a <code>Regex</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.match_kind"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2490-2492">source</a><h4class="code-header">pub fn <ahref="#method.match_kind"class="fn">match_kind</a>(self, kind: <aclass="enum"href="../enum.MatchKind.html"title="enum regex_automata::MatchKind">MatchKind</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Set the match semantics for a <code>Regex</code>.</p>
<p>The default value is <ahref="../enum.MatchKind.html#variant.LeftmostFirst"title="variant regex_automata::MatchKind::LeftmostFirst"><code>MatchKind::LeftmostFirst</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.utf8_empty"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2531-2533">source</a><h4class="code-header">pub fn <ahref="#method.utf8_empty"class="fn">utf8_empty</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Toggles whether empty matches are permitted to occur between the code
units of a UTF-8 encoded codepoint.</p>
<p>This should generally be enabled when search a <code>&str</code> or anything that
you otherwise know is valid UTF-8. It should be disabled in all other
cases. Namely, if the haystack is not valid UTF-8 and this is enabled,
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.auto_prefilter"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2558-2560">source</a><h4class="code-header">pub fn <ahref="#method.auto_prefilter"class="fn">auto_prefilter</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Toggles whether automatic prefilter support is enabled.</p>
<p>If this is disabled and <ahref="struct.Config.html#method.prefilter"title="method regex_automata::meta::Config::prefilter"><code>Config::prefilter</code></a> is not set, then the
meta regex engine will not use any prefilters. This can sometimes
be beneficial in cases where you know (or have measured) that the
prefilter leads to overall worse search performance.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.prefilter"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2627-2629">source</a><h4class="code-header">pub fn <ahref="#method.prefilter"class="fn">prefilter</a>(self, pre: <aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../util/prefilter/struct.Prefilter.html"title="struct regex_automata::util::prefilter::Prefilter">Prefilter</a>>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Overrides and sets the prefilter to use inside a <code>Regex</code>.</p>
<p>This permits one to forcefully set a prefilter in cases where the
caller knows better than whatever the automatic prefilter logic is
capable of.</p>
<p>By default, this is set to <code>None</code> and an automatic prefilter will be
used if one could be built. (Assuming <ahref="struct.Config.html#method.auto_prefilter"title="method regex_automata::meta::Config::auto_prefilter"><code>Config::auto_prefilter</code></a> is
<h5id="example-incorrect-prefilters-can-lead-to-incorrect-results"><ahref="#example-incorrect-prefilters-can-lead-to-incorrect-results">Example: incorrect prefilters can lead to incorrect results!</a></h5>
<p>Be warned that setting an incorrect prefilter can lead to missed
matches. So if you use this option, ensure your prefilter can <em>never</em>
report false negatives. (A false positive is, on the other hand, quite
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.which_captures"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2697-2700">source</a><h4class="code-header">pub fn <ahref="#method.which_captures"class="fn">which_captures</a>(self, which_captures: <aclass="enum"href="../nfa/thompson/enum.WhichCaptures.html"title="enum regex_automata::nfa::thompson::WhichCaptures">WhichCaptures</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Configures what kinds of groups are compiled as “capturing” in the
underlying regex engine.</p>
<p>This is set to <ahref="../nfa/thompson/enum.WhichCaptures.html#variant.All"title="variant regex_automata::nfa::thompson::WhichCaptures::All"><code>WhichCaptures::All</code></a> by default. Callers may wish to
use <ahref="../nfa/thompson/enum.WhichCaptures.html#variant.Implicit"title="variant regex_automata::nfa::thompson::WhichCaptures::Implicit"><code>WhichCaptures::Implicit</code></a> in cases where one wants avoid the
overhead of capture states for explicit groups.</p>
<p>Note that another approach to avoiding the overhead of capture groups
is by using non-capturing groups in the regex pattern. That is,
<code>(?:a)</code> instead of <code>(a)</code>. This option is useful when you can’t control
the concrete syntax but know that you don’t need the underlying capture
states. For example, using <code>WhichCaptures::Implicit</code> will behave as if
all explicit capturing groups in the pattern were non-capturing.</p>
<p>Setting this to <code>WhichCaptures::None</code> is usually not the right thing to
do. When no capture states are compiled, some regex engines (such as
the <code>PikeVM</code>) won’t be able to report match offsets. This will manifest
<p>And now we show the behavior when we only include implicit capture
groups. In this case, we can only find the overall match span, but the
spans of any other explicit group don’t exist because they are treated
as non-capturing. (In effect, when <code>WhichCaptures::Implicit</code> is used,
there is no real point in using <ahref="struct.Regex.html#method.captures"title="method regex_automata::meta::Regex::captures"><code>Regex::captures</code></a> since it will never
be able to report more information than <ahref="struct.Regex.html#method.find"title="method regex_automata::meta::Regex::find"><code>Regex::find</code></a>.)</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.nfa_size_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2752-2754">source</a><h4class="code-header">pub fn <ahref="#method.nfa_size_limit"class="fn">nfa_size_limit</a>(self, limit: <aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Sets the size limit, in bytes, to enforce on the construction of every
NFA build by the meta regex engine.</p>
<p>Setting it to <code>None</code> disables the limit. This is not recommended if
you’re compiling untrusted patterns.</p>
<p>Note that this limit is applied to <em>each</em> NFA built, and if any of
them exceed the limit, then construction will fail. This limit does
<em>not</em> correspond to the total memory used by all NFAs in the meta regex
engine.</p>
<p>This defaults to some reasonable number that permits most reasonable
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.onepass_size_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2784-2786">source</a><h4class="code-header">pub fn <ahref="#method.onepass_size_limit"class="fn">onepass_size_limit</a>(self, limit: <aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Sets the size limit, in bytes, for the one-pass DFA.</p>
<p>Setting it to <code>None</code> disables the limit. Disabling the limit is
strongly discouraged when compiling untrusted patterns. Even if the
patterns are trusted, it still may not be a good idea, since a one-pass
DFA can use a lot of memory. With that said, as the size of a regex
increases, the likelihood of it being one-pass likely decreases.</p>
<p>This defaults to some reasonable number that permits most reasonable
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.hybrid_cache_capacity"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2826-2828">source</a><h4class="code-header">pub fn <ahref="#method.hybrid_cache_capacity"class="fn">hybrid_cache_capacity</a>(self, limit: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Set the cache capacity, in bytes, for the lazy DFA.</p>
<p>The cache capacity of the lazy DFA determines approximately how much
heap memory it is allowed to use to store its state transitions. The
state transitions are computed at search time, and if the cache fills
up it, it is cleared. At this point, any previously generated state
transitions are lost and are re-generated if they’re needed again.</p>
<p>This sort of cache filling and clearing works quite well <em>so long as
cache clearing happens infrequently</em>. If it happens too often, then the
meta regex engine will stop using the lazy DFA and switch over to a
different regex engine.</p>
<p>In cases where the cache is cleared too often, it may be possible to
give the cache more space and reduce (or eliminate) how often it is
cleared. Similarly, sometimes a regex is so big that the lazy DFA isn’t
used at all if its cache capacity isn’t big enough.</p>
<p>The capacity set here is a <em>limit</em> on how much memory is used. The
actual memory used is only allocated as it’s needed.</p>
<p>Determining the right value for this is a little tricky and will likely
required some profiling. Enabling the <code>logging</code> feature and setting the
log level to <code>trace</code> will also tell you how often the cache is being
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.dfa_size_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2875-2877">source</a><h4class="code-header">pub fn <ahref="#method.dfa_size_limit"class="fn">dfa_size_limit</a>(self, limit: <aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Sets the size limit, in bytes, for heap memory used for a fully
compiled DFA.</p>
<p><strong>NOTE:</strong> If you increase this, you’ll likely also need to increase
<p>In contrast to the lazy DFA, building a full DFA requires computing
all of its state transitions up front. This can be a very expensive
process, and runs in worst case <code>2^n</code> time and space (where <code>n</code> is
proportional to the size of the regex). However, a full DFA unlocks
some additional optimization opportunities.</p>
<p>Because full DFAs can be so expensive, the default limits for them are
incredibly small. Generally speaking, if your regex is moderately big
or if you’re using Unicode features (<code>\w</code> is Unicode-aware by default
for example), then you can expect that the meta regex engine won’t even
attempt to build a DFA for it.</p>
<p>If this and <ahref="struct.Config.html#method.dfa_state_limit"title="method regex_automata::meta::Config::dfa_state_limit"><code>Config::dfa_state_limit</code></a> are set to <code>None</code>, then the
meta regex will not use any sort of limits when deciding whether to
build a DFA. This in turn makes construction of a <code>Regex</code> take
worst case exponential time and space. Even short patterns can result
in huge space blow ups. So it is strongly recommended to keep some kind
of limit set!</p>
<p>The default is set to a small number that permits some simple regexes
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.dfa_state_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2907-2909">source</a><h4class="code-header">pub fn <ahref="#method.dfa_state_limit"class="fn">dfa_state_limit</a>(self, limit: <aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Sets a limit on the total number of NFA states, beyond which, a full
DFA is not attempted to be compiled.</p>
<p>This limit works in concert with <ahref="struct.Config.html#method.dfa_size_limit"title="method regex_automata::meta::Config::dfa_size_limit"><code>Config::dfa_size_limit</code></a>. Namely,
where as <code>Config::dfa_size_limit</code> is applied by attempting to construct
a DFA, this limit is used to avoid the attempt in the first place. This
is useful to avoid hefty initialization costs associated with building
a DFA for cases where it is obvious the DFA will ultimately be too big.</p>
<p>By default, this is set to a very small number.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.byte_classes"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2938-2940">source</a><h4class="code-header">pub fn <ahref="#method.byte_classes"class="fn">byte_classes</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Whether to attempt to shrink the size of the alphabet for the regex
pattern or not. When enabled, the alphabet is shrunk into a set of
equivalence classes, where every byte in the same equivalence class
cannot discriminate between a match or non-match.</p>
<p><strong>WARNING:</strong> This is only useful for debugging DFAs. Disabling this
does not yield any speed advantages. Indeed, disabling it can result
in much higher memory usage. Disabling byte classes is useful for
debugging the actual generated transitions because it lets one see the
transitions defined on actual bytes instead of the equivalence classes.</p>
<p>This option is enabled by default and should never be disabled unless
one is debugging the meta regex engine’s internals.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.line_terminator"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2972-2974">source</a><h4class="code-header">pub fn <ahref="#method.line_terminator"class="fn">line_terminator</a>(self, byte: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Set the line terminator to be used by the <code>^</code> and <code>$</code> anchors in
multi-line mode.</p>
<p>This option has no effect when CRLF mode is enabled. That is,
regardless of this setting, <code>(?Rm:^)</code> and <code>(?Rm:$)</code> will always treat
<code>\r</code> and <code>\n</code> as line terminators (and will never match between a <code>\r</code>
and a <code>\n</code>).</p>
<p>By default, <code>\n</code> is the line terminator.</p>
<p><strong>Warning</strong>: This does not change the behavior of <code>.</code>. To do that,
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.hybrid"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2986-2988">source</a><h4class="code-header">pub fn <ahref="#method.hybrid"class="fn">hybrid</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Toggle whether the hybrid NFA/DFA (also known as the “lazy DFA”) should
be available for use by the meta regex engine.</p>
<p>Enabling this does not necessarily mean that the lazy DFA will
definitely be used. It just means that it will be <em>available</em> for use
if the meta regex engine thinks it will be useful.</p>
<p>When the <code>hybrid</code> crate feature is enabled, then this is enabled by
default. Otherwise, if the crate feature is disabled, then this is
always disabled, regardless of its setting by the caller.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.dfa"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3000-3002">source</a><h4class="code-header">pub fn <ahref="#method.dfa"class="fn">dfa</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Toggle whether a fully compiled DFA should be available for use by the
meta regex engine.</p>
<p>Enabling this does not necessarily mean that a DFA will definitely be
used. It just means that it will be <em>available</em> for use if the meta
regex engine thinks it will be useful.</p>
<p>When the <code>dfa-build</code> crate feature is enabled, then this is enabled by
default. Otherwise, if the crate feature is disabled, then this is
always disabled, regardless of its setting by the caller.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.onepass"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3016-3018">source</a><h4class="code-header">pub fn <ahref="#method.onepass"class="fn">onepass</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Toggle whether a one-pass DFA should be available for use by the meta
regex engine.</p>
<p>Enabling this does not necessarily mean that a one-pass DFA will
definitely be used. It just means that it will be <em>available</em> for
use if the meta regex engine thinks it will be useful. (Indeed, a
one-pass DFA can only be used when the regex is one-pass. See the
<ahref="crate::dfa::onepass"><code>dfa::onepass</code></a> module for more details.)</p>
<p>When the <code>dfa-onepass</code> crate feature is enabled, then this is enabled
by default. Otherwise, if the crate feature is disabled, then this is
always disabled, regardless of its setting by the caller.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.backtrack"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3030-3032">source</a><h4class="code-header">pub fn <ahref="#method.backtrack"class="fn">backtrack</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass="docblock"><p>Toggle whether a bounded backtracking regex engine should be available
for use by the meta regex engine.</p>
<p>Enabling this does not necessarily mean that a bounded backtracker will
definitely be used. It just means that it will be <em>available</em> for use
if the meta regex engine thinks it will be useful.</p>
<p>When the <code>nfa-backtrack</code> crate feature is enabled, then this is enabled
by default. Otherwise, if the crate feature is disabled, then this is
always disabled, regardless of its setting by the caller.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_match_kind"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3038-3040">source</a><h4class="code-header">pub fn <ahref="#method.get_match_kind"class="fn">get_match_kind</a>(&self) -><aclass="enum"href="../enum.MatchKind.html"title="enum regex_automata::MatchKind">MatchKind</a></h4></section></summary><divclass="docblock"><p>Returns the match kind on this configuration, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_utf8_empty"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3046-3048">source</a><h4class="code-header">pub fn <ahref="#method.get_utf8_empty"class="fn">get_utf8_empty</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether empty matches must fall on valid UTF-8 boundaries, as
set by <ahref="struct.Config.html#method.utf8_empty"title="method regex_automata::meta::Config::utf8_empty"><code>Config::utf8_empty</code></a>.</p>
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_auto_prefilter"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3054-3056">source</a><h4class="code-header">pub fn <ahref="#method.get_auto_prefilter"class="fn">get_auto_prefilter</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether automatic prefilters are enabled, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_prefilter"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3062-3064">source</a><h4class="code-header">pub fn <ahref="#method.get_prefilter"class="fn">get_prefilter</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="../util/prefilter/struct.Prefilter.html"title="struct regex_automata::util::prefilter::Prefilter">Prefilter</a>></h4></section></summary><divclass="docblock"><p>Returns a manually set prefilter, if one was set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_which_captures"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3070-3072">source</a><h4class="code-header">pub fn <ahref="#method.get_which_captures"class="fn">get_which_captures</a>(&self) -><aclass="enum"href="../nfa/thompson/enum.WhichCaptures.html"title="enum regex_automata::nfa::thompson::WhichCaptures">WhichCaptures</a></h4></section></summary><divclass="docblock"><p>Returns the capture configuration, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_nfa_size_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3077-3079">source</a><h4class="code-header">pub fn <ahref="#method.get_nfa_size_limit"class="fn">get_nfa_size_limit</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>></h4></section></summary><divclass="docblock"><p>Returns NFA size limit, as set by <ahref="struct.Config.html#method.nfa_size_limit"title="method regex_automata::meta::Config::nfa_size_limit"><code>Config::nfa_size_limit</code></a>.</p>
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_onepass_size_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3085-3087">source</a><h4class="code-header">pub fn <ahref="#method.get_onepass_size_limit"class="fn">get_onepass_size_limit</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>></h4></section></summary><divclass="docblock"><p>Returns one-pass DFA size limit, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_hybrid_cache_capacity"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3093-3095">source</a><h4class="code-header">pub fn <ahref="#method.get_hybrid_cache_capacity"class="fn">get_hybrid_cache_capacity</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a></h4></section></summary><divclass="docblock"><p>Returns hybrid NFA/DFA cache capacity, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_dfa_size_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3100-3120">source</a><h4class="code-header">pub fn <ahref="#method.get_dfa_size_limit"class="fn">get_dfa_size_limit</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>></h4></section></summary><divclass="docblock"><p>Returns DFA size limit, as set by <ahref="struct.Config.html#method.dfa_size_limit"title="method regex_automata::meta::Config::dfa_size_limit"><code>Config::dfa_size_limit</code></a>.</p>
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_dfa_state_limit"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3126-3129">source</a><h4class="code-header">pub fn <ahref="#method.get_dfa_state_limit"class="fn">get_dfa_state_limit</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>></h4></section></summary><divclass="docblock"><p>Returns DFA size limit in terms of the number of states in the NFA, as
set by <ahref="struct.Config.html#method.dfa_state_limit"title="method regex_automata::meta::Config::dfa_state_limit"><code>Config::dfa_state_limit</code></a>.</p>
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_byte_classes"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3135-3137">source</a><h4class="code-header">pub fn <ahref="#method.get_byte_classes"class="fn">get_byte_classes</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether byte classes are enabled, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_line_terminator"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3143-3145">source</a><h4class="code-header">pub fn <ahref="#method.get_line_terminator"class="fn">get_line_terminator</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a></h4></section></summary><divclass="docblock"><p>Returns the line terminator for this configuration, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_hybrid"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3151-3160">source</a><h4class="code-header">pub fn <ahref="#method.get_hybrid"class="fn">get_hybrid</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether the hybrid NFA/DFA regex engine may be used, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_dfa"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3166-3175">source</a><h4class="code-header">pub fn <ahref="#method.get_dfa"class="fn">get_dfa</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether the DFA regex engine may be used, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_onepass"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3181-3190">source</a><h4class="code-header">pub fn <ahref="#method.get_onepass"class="fn">get_onepass</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether the one-pass DFA regex engine may be used, as set by
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_backtrack"class="method"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#3196-3205">source</a><h4class="code-header">pub fn <ahref="#method.get_backtrack"class="fn">get_backtrack</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether the bounded backtracking regex engine may be used, as
set by <ahref="struct.Config.html#method.backtrack"title="method regex_automata::meta::Config::backtrack"><code>Config::backtrack</code></a>.</p>
<p>If it was not explicitly set, then a default value is returned.</p>
</div></details></div></details></div><h2id="trait-implementations"class="section-header">Trait Implementations<ahref="#trait-implementations"class="anchor">§</a></h2><divid="trait-implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Clone-for-Config"class="impl"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2427">source</a><ahref="#impl-Clone-for-Config"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone"class="method trait-impl"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2427">source</a><ahref="#method.clone"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone"class="fn">clone</a>(&self) -><aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h4></section></summary><divclass='docblock'>Returns a copy of the value. <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_from"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="src"href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><ahref="#method.clone_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from"class="fn">clone_from</a>(&mut self, source: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&Self</a>)</h4></section></summary><divclass='docblock'>Performs copy-assignment from <code>source</code>. <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-Config"class="impl"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2427">source</a><ahref="#impl-Debug-for-Config"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="struct.Config.html"title="struct regex_automata::meta::Config">Config</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2427">source</a><ahref="#method.fmt"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.76.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.76.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Default-for-Config"class="impl"><aclass="src rightside"href="../../src/regex_automata/meta/regex.rs.html#2427">source</a><ahref="#impl-Default-for-Config"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/co
T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#141">source</a><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id"class="fn">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.76.0/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#208">source</a><ahref="#impl-Borrow%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#210">source</a><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow"class="fn">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&T</a></h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#216">source</a><ahref="#impl-BorrowMut%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#217">source</a><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fn">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a></h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#763">source</a><ahref="#impl-From%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#766">source</a><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html#tymethod.from"class="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#747-749">source</a><ahref="#impl-Into%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T<divclass="where">where
<p>That is, this conversion is whatever the implementation of
<code><ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-ToOwned-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#83-85">source</a><ahref="#impl-ToOwned-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Owned"class="associatedtype trait-impl"><ahref="#associatedtype.Owned"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="associatedtype">Owned</a> = T</h4></section></summary><divclass='docblock'>The resulting type after obtaining ownership.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.to_owned"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#88">source</a><ahref="#method.to_owned"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fn">to_owned</a>(&self) -> T</h4></section></summary><divclass='docblock'>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#92">source</a><ahref="#method.clone_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fn">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><divclass='docblock'>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#803-805">source</a><ahref="#impl-TryFrom%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#810">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#788-790">source</a><ahref="#impl-TryInto%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#795">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>