<!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-5bc39a1768837dd0.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.77.2 (25ef9e3d8 2024-04-09)"data-channel="1.77.2"data-search-js="search-dd67cee4cfa65049.js"data-settings-js="settings-4313503d2e1961c2.js"><scriptsrc="../../static.files/storage-4c98445ec4002617.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../static.files/main-48f368f3872407c8.js"></script><noscript><linkrel="stylesheet"href="../../static.files/noscript-04d5337699b92874.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"title="show sidebar"></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><
<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.77.2/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
<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.77.2/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"><aclass="doc-anchor"href="#example-incorrect-prefilters-can-lead-to-incorrect-results">§</a>Example: incorrect prefilters can lead to incorrect results!</h5>
</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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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
</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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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>
</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.77.2/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>
</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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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
<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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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
<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.77.2/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
</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.77.2/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
</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.77.2/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
</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.77.2/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
</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.77.2/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
</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.77.2/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
<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
</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.77.2/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether empty matches must fall on valid UTF-8 boundaries, as
</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.77.2/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether automatic prefilters are enabled, as set by
</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.77.2/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
</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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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>
</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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.usize.html">usize</a>></h4></section></summary><divclass="docblock"><p>Returns one-pass DFA size limit, as set by
</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.77.2/std/primitive.usize.html">usize</a></h4></section></summary><divclass="docblock"><p>Returns hybrid NFA/DFA cache capacity, as set by
</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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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>
</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.77.2/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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.77.2/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether byte classes are enabled, as set by
</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.77.2/std/primitive.u8.html">u8</a></h4></section></summary><divclass="docblock"><p>Returns the line terminator for this configuration, as set by
</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.77.2/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
</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.77.2/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether the DFA regex engine may be used, as set by
</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.77.2/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
</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.77.2/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether the bounded backtracking regex engine may be used, as
<code><ahref="https://doc.rust-lang.org/1.77.2/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.77.2/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.77.2/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.77.2/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.77.2/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.77.2/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.77.2/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.77.2/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.77.2/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.77.2/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fn">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.77.2/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.77.2/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.77.2/src/core/convert/mod.rs.html#804-806">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.77.2/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.77.2/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-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.77.2/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.77.2/src/core/convert/mod.rs.html#811">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.77.2/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.2/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.77.2/src/core/convert/mod.rs.html#789-791">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.77.2/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.77.2/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"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.2/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.77.2/src/core/convert/mod.rs.html#796">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.77.2/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.2/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>