<!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="A matcher for look-around assertions."><title>LookMatcher in regex_automata::util::look - 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="#">LookMatcher</a></h2><divclass="sidebar-elems"><section><h3><ahref="#implementations">Methods</a></h3><ulclass="block method"><li><ahref="#method.get_line_terminator">get_line_terminator</a></li><li><ahref="#method.is_end">is_end</a></li><li><ahref="#method.is_end_crlf">is_end_crlf</a></li><li><ahref="#method.is_end_lf">is_end_lf</a></li><li><ahref="#method.is_start">is_start</a></li><li><ahref="#method.is_start_crlf">is_start_crlf</a></li><li><ahref="#method.is_start_lf">is_start_lf</a></li><li><ahref="#method.is_word_ascii">is_word_ascii</a></li><li><ahref="#method.is_word_ascii_negate">is_word_ascii_negate</a></li><li><ahref="#method.is_word_end_ascii">is_word_end_ascii</a></li><li><ahref="#method.is_word_end_half_ascii">is_word_end_half_ascii</a></li><li><ahref="#method.is_word_end_half_unicode">is_word_end_half_unicode</a></li><li><ahref="#method.is_word_end_unicode">is_word_end_unicode</a></li><li><ahref="#method.is_word_start_ascii">is_word_start_ascii</a></li><li><ahref="#method.is_word_start_half_ascii">is_word_start_half_ascii</a></li><li><ahref="#method.is_word_start_half_unicode">is_word_start_half_unicode</a></li><li><ahref="#method.is_word_start_unicode">is_word_start_unicode</a></li><li><ahref="#method.is_word_unicode">is_word_unicode</a></li><li><ahref="#method.is_word_unicode_negate">is_word_unicode_negate</a></li><li><ahref="#method.matches">matches</a></li><li><ahref="#method.matches_set">matches_set</a></li><li><ahref="#method.new">new</a></li><li><ahref="#method.set_line_terminator">s
<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">util</a>::<wbr><ahref="index.html">look</a>::<wbr><aclass="struct"href="#">LookMatcher</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/util/look.rs.html#577-579">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub struct LookMatcher { <spanclass="comment">/* private fields */</span> }</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>A matcher for look-around assertions.</p>
<p>This matcher permits configuring aspects of how look-around assertions are
</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-LookMatcher"class="impl"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#581-1261">source</a><ahref="#impl-LookMatcher"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.LookMatcher.html"title="struct regex_automata::util::look::LookMatcher">LookMatcher</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/util/look.rs.html#583-585">source</a><h4class="code-header">pub fn <ahref="#method.new"class="fn">new</a>() -><aclass="struct"href="struct.LookMatcher.html"title="struct regex_automata::util::look::LookMatcher">LookMatcher</a></h4></section></summary><divclass="docblock"><p>Creates a new default matcher for look-around assertions.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.set_line_terminator"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#599-602">source</a><h4class="code-header">pub fn <ahref="#method.set_line_terminator"class="fn">set_line_terminator</a>(&mut self, byte: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>) ->&mut <aclass="struct"href="struct.LookMatcher.html"title="struct regex_automata::util::look::LookMatcher">LookMatcher</a></h4></section></summary><divclass="docblock"><p>Sets the line terminator for use with <code>(?m:^)</code> and <code>(?m:$)</code>.</p>
<p>Namely, instead of <code>^</code> matching after <code>\n</code> and <code>$</code> matching immediately
before a <code>\n</code>, this will cause it to match after and before the byte
given.</p>
<p>It can occasionally be useful to use this to configure the line
terminator to the NUL byte when searching binary data.</p>
<p>Note that this does not apply to CRLF-aware line anchors such as
<code>(?Rm:^)</code> and <code>(?Rm:$)</code>. CRLF-aware line anchors are hard-coded to
use <code>\r</code> and <code>\n</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_line_terminator"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#611-613">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 that was configured for this matcher.</p>
<p>If no line terminator was configured, then this returns <code>\n</code>.</p>
<p>Note that the line terminator should only be used for matching <code>(?m:^)</code>
and <code>(?m:$)</code> assertions. It specifically should <em>not</em> be used for
matching the CRLF aware assertions <code>(?Rm:^)</code> and <code>(?Rm:$)</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.matches"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#635-637">source</a><h4class="code-header">pub fn <ahref="#method.matches"class="fn">matches</a>(&self, look: <aclass="enum"href="enum.Look.html"title="enum regex_automata::util::look::Look">Look</a>, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when the position <code>at</code> in <code>haystack</code> satisfies the given
look-around assertion.</p>
<h5id="panics"><ahref="#panics">Panics</a></h5>
<p>This panics when testing any Unicode word boundary assertion in this
set and when the Unicode word data is not available. Specifically, this
only occurs when the <code>unicode-word-boundary</code> feature is not enabled.</p>
<p>Since it’s generally expected that this routine is called inside of
a matching engine, callers should check the error condition when
building the matching engine. If there is a Unicode word boundary
in the matcher and the data isn’t available, then the matcher should
fail to build.</p>
<p>Callers can check the error condition with <ahref="struct.LookSet.html#method.available"title="method regex_automata::util::look::LookSet::available"><code>LookSet::available</code></a>.</p>
<p>This also may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.matches_set"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#720-727">source</a><h4class="code-header">pub fn <ahref="#method.matches_set"class="fn">matches_set</a>(&self, set: <aclass="struct"href="struct.LookSet.html"title="struct regex_automata::util::look::LookSet">LookSet</a>, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <em>all</em> of the assertions in the given set match at the
<p>This panics when testing any Unicode word boundary assertion in this
set and when the Unicode word data is not available. Specifically, this
only occurs when the <code>unicode-word-boundary</code> feature is not enabled.</p>
<p>Since it’s generally expected that this routine is called inside of
a matching engine, callers should check the error condition when
building the matching engine. If there is a Unicode word boundary
in the matcher and the data isn’t available, then the matcher should
fail to build.</p>
<p>Callers can check the error condition with <ahref="struct.LookSet.html#method.available"title="method regex_automata::util::look::LookSet::available"><code>LookSet::available</code></a>.</p>
<p>This also may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_start"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#907-909">source</a><h4class="code-header">pub fn <ahref="#method.is_start"class="fn">is_start</a>(&self, _haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.Start"title="variant regex_automata::util::look::Look::Start"><code>Look::Start</code></a> is satisfied <code>at</code> the given position
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_end"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#919-921">source</a><h4class="code-header">pub fn <ahref="#method.is_end"class="fn">is_end</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.End"title="variant regex_automata::util::look::Look::End"><code>Look::End</code></a> is satisfied <code>at</code> the given position in
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_start_lf"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#931-933">source</a><h4class="code-header">pub fn <ahref="#method.is_start_lf"class="fn">is_start_lf</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.StartLF"title="variant regex_automata::util::look::Look::StartLF"><code>Look::StartLF</code></a> is satisfied <code>at</code> the given
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_end_lf"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#943-945">source</a><h4class="code-header">pub fn <ahref="#method.is_end_lf"class="fn">is_end_lf</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.EndLF"title="variant regex_automata::util::look::Look::EndLF"><code>Look::EndLF</code></a> is satisfied <code>at</code> the given position
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_start_crlf"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#955-960">source</a><h4class="code-header">pub fn <ahref="#method.is_start_crlf"class="fn">is_start_crlf</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.StartCRLF"title="variant regex_automata::util::look::Look::StartCRLF"><code>Look::StartCRLF</code></a> is satisfied <code>at</code> the given
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_end_crlf"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#970-975">source</a><h4class="code-header">pub fn <ahref="#method.is_end_crlf"class="fn">is_end_crlf</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.EndCRLF"title="variant regex_automata::util::look::Look::EndCRLF"><code>Look::EndCRLF</code></a> is satisfied <code>at</code> the given
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_word_ascii"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#985-990">source</a><h4class="code-header">pub fn <ahref="#method.is_word_ascii"class="fn">is_word_ascii</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordAscii"title="variant regex_automata::util::look::Look::WordAscii"><code>Look::WordAscii</code></a> is satisfied <code>at</code> the given
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_word_ascii_negate"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#1000-1002">source</a><h4class="code-header">pub fn <ahref="#method.is_word_ascii_negate"class="fn">is_word_ascii_negate</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordAsciiNegate"title="variant regex_automata::util::look::Look::WordAsciiNegate"><code>Look::WordAsciiNegate</code></a> is satisfied <code>at</code> the given
) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>, <aclass="struct"href="struct.UnicodeWordBoundaryError.html"title="struct regex_automata::util::look::UnicodeWordBoundaryError">UnicodeWordBoundaryError</a>></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordUnicode"title="variant regex_automata::util::look::Look::WordUnicode"><code>Look::WordUnicode</code></a> is satisfied <code>at</code> the given
) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>, <aclass="struct"href="struct.UnicodeWordBoundaryError.html"title="struct regex_automata::util::look::UnicodeWordBoundaryError">UnicodeWordBoundaryError</a>></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordUnicodeNegate"title="variant regex_automata::util::look::Look::WordUnicodeNegate"><code>Look::WordUnicodeNegate</code></a> is satisfied <code>at</code> the
<p>This returns an error when Unicode word boundary tables
are not available. Specifically, this only occurs when the
<code>unicode-word-boundary</code> feature is not enabled.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_word_start_ascii"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#1099-1104">source</a><h4class="code-header">pub fn <ahref="#method.is_word_start_ascii"class="fn">is_word_start_ascii</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordStartAscii"title="variant regex_automata::util::look::Look::WordStartAscii"><code>Look::WordStartAscii</code></a> is satisfied <code>at</code> the given
<p>This may panic when <code>at > haystack.len()</code>. Note that <code>at == haystack.len()</code> is legal and guaranteed not to panic.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_word_end_ascii"class="method"><aclass="src rightside"href="../../../src/regex_automata/util/look.rs.html#1114-1119">source</a><h4class="code-header">pub fn <ahref="#method.is_word_end_ascii"class="fn">is_word_end_ascii</a>(&self, haystack: &[<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>], at: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordEndAscii"title="variant regex_automata::util::look::Look::WordEndAscii"><code>Look::WordEndAscii</code></a> is satisfied <code>at</code> the given
) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>, <aclass="struct"href="struct.UnicodeWordBoundaryError.html"title="struct regex_automata::util::look::UnicodeWordBoundaryError">UnicodeWordBoundaryError</a>></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordStartUnicode"title="variant regex_automata::util::look::Look::WordStartUnicode"><code>Look::WordStartUnicode</code></a> is satisfied <code>at</code> the
) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>, <aclass="struct"href="struct.UnicodeWordBoundaryError.html"title="struct regex_automata::util::look::UnicodeWordBoundaryError">UnicodeWordBoundaryError</a>></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordEndUnicode"title="variant regex_automata::util::look::Look::WordEndUnicode"><code>Look::WordEndUnicode</code></a> is satisfied <code>at</code> the
) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>, <aclass="struct"href="struct.UnicodeWordBoundaryError.html"title="struct regex_automata::util::look::UnicodeWordBoundaryError">UnicodeWordBoundaryError</a>></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordStartHalfUnicode"title="variant regex_automata::util::look::Look::WordStartHalfUnicode"><code>Look::WordStartHalfUnicode</code></a> is satisfied <code>at</code> the
) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>, <aclass="struct"href="struct.UnicodeWordBoundaryError.html"title="struct regex_automata::util::look::UnicodeWordBoundaryError">UnicodeWordBoundaryError</a>></h4></section></summary><divclass="docblock"><p>Returns true when <ahref="enum.Look.html#variant.WordEndHalfUnicode"title="variant regex_automata::util::look::Look::WordEndHalfUnicode"><code>Look::WordEndHalfUnicode</code></a> is satisfied <code>at</code> the
<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>