forked from diesel-rs/diesel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrait.Replacer.html
More file actions
46 lines (44 loc) · 24.9 KB
/
Copy pathtrait.Replacer.html
File metadata and controls
46 lines (44 loc) · 24.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Replacer describes types that can be used to replace matches in a byte string."><meta name="keywords" content="rust, rustlang, rust-lang, Replacer"><title>Replacer in regex::bytes - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../regex/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../regex/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">Replacer</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.replace_append">replace_append</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#provided-methods">Provided Methods</a></h3><ul><li><a href="#method.by_ref">by_ref</a></li><li><a href="#method.no_expansion">no_expansion</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul><li><a href="#impl-Replacer-for-%26%27a%20Cow%3C%27a%2C%20%5Bu8%5D%3E">&'a Cow<'a, [u8]></a></li><li><a href="#impl-Replacer-for-%26%27a%20Vec%3Cu8%3E">&'a Vec<u8></a></li><li><a href="#impl-Replacer-for-%26%27a%20%5Bu8%5D">&'a [u8]</a></li><li><a href="#impl-Replacer-for-Cow%3C%27a%2C%20%5Bu8%5D%3E">Cow<'a, [u8]></a></li><li><a href="#impl-Replacer-for-Vec%3Cu8%3E">Vec<u8></a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In regex::bytes</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../regex/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1">
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Trait <a href="../index.html">regex</a>::<wbr><a href="index.html">bytes</a>::<wbr><a class="trait" href="#">Replacer</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1111-1156">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait Replacer {
fn <a href="#tymethod.replace_append" class="fnname">replace_append</a>(&mut self, caps: &<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>, dst: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>);
fn <a href="#method.no_expansion" class="fnname">no_expansion</a><'r>(&'r mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'r, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>> { ... }
<span class="item-spacer"></span> fn <a href="#method.by_ref" class="fnname">by_ref</a><'r>(&'r mut self) -> <a class="struct" href="struct.ReplacerRef.html" title="struct regex::bytes::ReplacerRef">ReplacerRef</a><'r, Self> { ... }
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Replacer describes types that can be used to replace matches in a byte
string.</p>
<p>In general, users of this crate shouldn’t need to implement this trait,
since implementations are already provided for <code>&[u8]</code> along with other
variants of bytes types and <code>FnMut(&Captures) -> Vec<u8></code> (or any
<code>FnMut(&Captures) -> T</code> where <code>T: AsRef<[u8]></code>), which covers most use cases.</p>
</div></details><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.replace_append" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1119">source</a></div><h4 class="code-header">fn <a href="#tymethod.replace_append" class="fnname">replace_append</a>(&mut self, caps: &<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>, dst: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</h4></div></summary><div class="docblock"><p>Appends text to <code>dst</code> to replace the current match.</p>
<p>The current match is represented by <code>caps</code>, which is guaranteed to
have a match at capture group <code>0</code>.</p>
<p>For example, a no-op replacement would be
<code>dst.extend(&caps[0])</code>.</p>
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="method.no_expansion" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1128-1130">source</a></div><h4 class="code-header">fn <a href="#method.no_expansion" class="fnname">no_expansion</a><'r>(&'r mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'r, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>></h4></div></summary><div class="docblock"><p>Return a fixed unchanging replacement byte string.</p>
<p>When doing replacements, if access to <code>Captures</code> is not needed (e.g.,
the replacement byte string does not need <code>$</code> expansion), then it can
be beneficial to avoid finding sub-captures.</p>
<p>In general, this is called once for every call to <code>replacen</code>.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.by_ref" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1153-1155">source</a></div><h4 class="code-header">fn <a href="#method.by_ref" class="fnname">by_ref</a><'r>(&'r mut self) -> <a class="struct" href="struct.ReplacerRef.html" title="struct regex::bytes::ReplacerRef">ReplacerRef</a><'r, Self></h4></div></summary><div class="docblock"><p>Return a <code>Replacer</code> that borrows and wraps this <code>Replacer</code>.</p>
<p>This is useful when you want to take a generic <code>Replacer</code> (which might
not be cloneable) and use it without consuming it, so it can be used
more than once.</p>
<h5 id="example"><a href="#example">Example</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">regex::bytes</span>::{<span class="ident">Regex</span>, <span class="ident">Replacer</span>};
<span class="kw">fn</span> <span class="ident">replace_all_twice</span><span class="op"><</span><span class="ident">R</span>: <span class="ident">Replacer</span><span class="op">></span>(
<span class="ident">re</span>: <span class="ident">Regex</span>,
<span class="ident">src</span>: <span class="kw-2">&</span>[<span class="ident">u8</span>],
<span class="kw-2">mut</span> <span class="ident">rep</span>: <span class="ident">R</span>,
) -> <span class="ident">Vec</span><span class="op"><</span><span class="ident">u8</span><span class="op">></span> {
<span class="kw">let</span> <span class="ident">dst</span> <span class="op">=</span> <span class="ident">re</span>.<span class="ident">replace_all</span>(<span class="ident">src</span>, <span class="ident">rep</span>.<span class="ident">by_ref</span>());
<span class="kw">let</span> <span class="ident">dst</span> <span class="op">=</span> <span class="ident">re</span>.<span class="ident">replace_all</span>(<span class="kw-2">&</span><span class="ident">dst</span>, <span class="ident">rep</span>.<span class="ident">by_ref</span>());
<span class="ident">dst</span>.<span class="ident">into_owned</span>()
}</code></pre></div>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Replacer-for-%26%27a%20%5Bu8%5D" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1173-1181">source</a></span><a href="#impl-Replacer-for-%26%27a%20%5Bu8%5D" class="anchor"></a><h3 class="code-header in-band">impl<'a> <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for &'a [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]</h3></section></summary><div class="impl-items"><section id="method.replace_append" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1174-1176">source</a></span><a href="#method.replace_append" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.replace_append" class="fnname">replace_append</a>(&mut self, caps: &<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>, dst: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</h4></section><section id="method.no_expansion-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1178-1180">source</a></span><a href="#method.no_expansion-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.no_expansion" class="fnname">no_expansion</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Replacer-for-%26%27a%20Vec%3Cu8%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1183-1191">source</a></span><a href="#impl-Replacer-for-%26%27a%20Vec%3Cu8%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a> <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for &'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></h3></section></summary><div class="impl-items"><section id="method.replace_append-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1184-1186">source</a></span><a href="#method.replace_append-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.replace_append" class="fnname">replace_append</a>(&mut self, caps: &<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>, dst: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</h4></section><section id="method.no_expansion-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1188-1190">source</a></span><a href="#method.no_expansion-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.no_expansion" class="fnname">no_expansion</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Replacer-for-Vec%3Cu8%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1193-1201">source</a></span><a href="#impl-Replacer-for-Vec%3Cu8%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></h3></section></summary><div class="impl-items"><section id="method.replace_append-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1194-1196">source</a></span><a href="#method.replace_append-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.replace_append" class="fnname">replace_append</a>(&mut self, caps: &<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>, dst: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</h4></section><section id="method.no_expansion-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1198-1200">source</a></span><a href="#method.no_expansion-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.no_expansion" class="fnname">no_expansion</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Replacer-for-Cow%3C%27a%2C%20%5Bu8%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1203-1211">source</a></span><a href="#impl-Replacer-for-Cow%3C%27a%2C%20%5Bu8%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a> <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'a, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]></h3></section></summary><div class="impl-items"><section id="method.replace_append-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1204-1206">source</a></span><a href="#method.replace_append-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.replace_append" class="fnname">replace_append</a>(&mut self, caps: &<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>, dst: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</h4></section><section id="method.no_expansion-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1208-1210">source</a></span><a href="#method.no_expansion-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.no_expansion" class="fnname">no_expansion</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Replacer-for-%26%27a%20Cow%3C%27a%2C%20%5Bu8%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1213-1221">source</a></span><a href="#impl-Replacer-for-%26%27a%20Cow%3C%27a%2C%20%5Bu8%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a> <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for &'a <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'a, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]></h3></section></summary><div class="impl-items"><section id="method.replace_append-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1214-1216">source</a></span><a href="#method.replace_append-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.replace_append" class="fnname">replace_append</a>(&mut self, caps: &<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>, dst: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</h4></section><section id="method.no_expansion-5" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1218-1220">source</a></span><a href="#method.no_expansion-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.no_expansion" class="fnname">no_expansion</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-Replacer" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1164-1171">source</a></span><a href="#impl-Replacer" class="anchor"></a><h3 class="code-header in-band">impl<'a, R: <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + 'a> <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for <a class="struct" href="struct.ReplacerRef.html" title="struct regex::bytes::ReplacerRef">ReplacerRef</a><'a, R></h3></section><section id="impl-Replacer-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1252-1260">source</a></span><a href="#impl-Replacer-1" class="anchor"></a><h3 class="code-header in-band">impl<'t> <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for <a class="struct" href="struct.NoExpand.html" title="struct regex::bytes::NoExpand">NoExpand</a><'t></h3></section><section id="impl-Replacer-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/regex/re_bytes.rs.html#1231-1239">source</a></span><a href="#impl-Replacer-2" class="anchor"></a><h3 class="code-header in-band">impl<F, T> <a class="trait" href="trait.Replacer.html" title="trait regex::bytes::Replacer">Replacer</a> for F <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&<a class="struct" href="struct.Captures.html" title="struct regex::bytes::Captures">Captures</a><'_>) -> T,<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>, </span></h3></section></div><script type="text/javascript" src="../../implementors/regex/re_bytes/trait.Replacer.js" data-ignore-extern-crates="std,alloc" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="regex" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (495b21669 2022-07-03)" ></div>
</body></html>