edlang/winnow/stream/trait.Accumulate.html
2024-08-01 07:04:26 +00:00

15 lines
24 KiB
HTML

<!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="Abstracts something which can extend an `Extend`. Used to build modified input slices in `escaped_transform`"><title>Accumulate in winnow::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="winnow" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0 (051478957 2024-07-21)" data-channel="1.80.0" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../winnow/index.html">winnow</a><span class="version">0.6.18</span></h2></div><h2 class="location"><a href="#">Accumulate</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.accumulate">accumulate</a></li><li><a href="#tymethod.initial">initial</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Accumulate%3CT%3E-for-()">()</a></li><li><a href="#impl-Accumulate%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E">BTreeMap&lt;K, V&gt;</a></li><li><a href="#impl-Accumulate%3CK%3E-for-BTreeSet%3CK%3E">BTreeSet&lt;K&gt;</a></li><li><a href="#impl-Accumulate%3C(K,+V)%3E-for-HashMap%3CK,+V,+S%3E">HashMap&lt;K, V, S&gt;</a></li><li><a href="#impl-Accumulate%3CK%3E-for-HashSet%3CK,+S%3E">HashSet&lt;K, S&gt;</a></li><li><a href="#impl-Accumulate%3C%26str%3E-for-String">String</a></li><li><a href="#impl-Accumulate%3Cchar%3E-for-String">String</a></li><li><a href="#impl-Accumulate%3C%26%5BT%5D%3E-for-Vec%3CT%3E">Vec&lt;T&gt;</a></li><li><a href="#impl-Accumulate%3CT%3E-for-Vec%3CT%3E">Vec&lt;T&gt;</a></li><li><a href="#impl-Accumulate%3CT%3E-for-usize">usize</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In winnow::stream</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">winnow</a>::<wbr><a href="index.html">stream</a>::<wbr><a class="trait" href="#">Accumulate</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/winnow/stream/mod.rs.html#2954-2959">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Accumulate&lt;T&gt;: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
// Required methods
fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, acc: T);
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Abstracts something which can extend an <code>Extend</code>.
Used to build modified input slices in <code>escaped_transform</code></p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.initial" class="method"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2956">source</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Create a new <code>Extend</code> of the correct type</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.accumulate" class="method"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2958">source</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, acc: T)</h4></section></summary><div class="docblock"><p>Accumulate the input into an accumulator</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.80.0/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3Cchar%3E-for-String" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3010-3022">source</a><a href="#impl-Accumulate%3Cchar%3E-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.char.html">char</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></section></summary><div class="impl-items"><section id="method.initial" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3012-3017">source</a><a href="#method.initial" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3019-3021">source</a><a href="#method.accumulate" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, acc: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.char.html">char</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3C%26str%3E-for-String" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3025-3037">source</a><a href="#impl-Accumulate%3C%26str%3E-for-String" class="anchor">§</a><h3 class="code-header">impl&lt;'i&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;&amp;'i <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></section></summary><div class="impl-items"><section id="method.initial-1" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3027-3032">source</a><a href="#method.initial-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-1" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3034-3036">source</a><a href="#method.accumulate-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, acc: &amp;'i <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3C%26%5BT%5D%3E-for-Vec%3CT%3E" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2995-3007">source</a><a href="#impl-Accumulate%3C%26%5BT%5D%3E-for-Vec%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'i, T: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;&amp;'i <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.slice.html">[T]</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.initial-2" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2997-3002">source</a><a href="#method.initial-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-2" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3004-3006">source</a><a href="#method.accumulate-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, acc: &amp;'i <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.slice.html">[T]</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3CK%3E-for-BTreeSet%3CK%3E" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3077-3089">source</a><a href="#impl-Accumulate%3CK%3E-for-BTreeSet%3CK%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;K&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;K&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,</div></h3></section></summary><div class="impl-items"><section id="method.initial-3" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3082-3084">source</a><a href="#method.initial-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(_capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-3" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3086-3088">source</a><a href="#method.accumulate-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, key: K)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3CK%3E-for-HashSet%3CK,+S%3E" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3092-3109">source</a><a href="#impl-Accumulate%3CK%3E-for-HashSet%3CK,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, S&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;K&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;K, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
S: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><section id="method.initial-4" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3098-3104">source</a><a href="#method.initial-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-4" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3106-3108">source</a><a href="#method.accumulate-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, key: K)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3040-3052">source</a><a href="#impl-Accumulate%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.tuple.html">(K, V)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, V&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,</div></h3></section></summary><div class="impl-items"><section id="method.initial-5" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3045-3047">source</a><a href="#method.initial-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(_capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-5" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3049-3051">source</a><a href="#method.accumulate-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, (key, value): <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.tuple.html">(K, V)</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3C(K,+V)%3E-for-HashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3055-3074">source</a><a href="#impl-Accumulate%3C(K,+V)%3E-for-HashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.tuple.html">(K, V)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
S: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><section id="method.initial-6" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3061-3069">source</a><a href="#method.initial-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-6" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#3071-3073">source</a><a href="#method.accumulate-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, (key, value): <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.tuple.html">(K, V)</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3CT%3E-for-()" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2961-2966">source</a><a href="#impl-Accumulate%3CT%3E-for-()" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;T&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.unit.html">()</a></h3></section></summary><div class="impl-items"><section id="method.initial-7" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2963">source</a><a href="#method.initial-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(_capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-7" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2965">source</a><a href="#method.accumulate-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, _acc: T)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3CT%3E-for-usize" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2968-2977">source</a><a href="#impl-Accumulate%3CT%3E-for-usize" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;T&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><section id="method.initial-8" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2970-2972">source</a><a href="#method.initial-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(_capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-8" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2974-2976">source</a><a href="#method.accumulate-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, _acc: T)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Accumulate%3CT%3E-for-Vec%3CT%3E" class="impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2980-2992">source</a><a href="#impl-Accumulate%3CT%3E-for-Vec%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Accumulate.html" title="trait winnow::stream::Accumulate">Accumulate</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.initial-9" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2982-2987">source</a><a href="#method.initial-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.initial" class="fn">initial</a>(capacity: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;) -&gt; Self</h4></section><section id="method.accumulate-9" class="method trait-impl"><a class="src rightside" href="../../src/winnow/stream/mod.rs.html#2989-2991">source</a><a href="#method.accumulate-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accumulate" class="fn">accumulate</a>(&amp;mut self, acc: T)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/winnow/stream/trait.Accumulate.js" data-ignore-extern-crates="alloc,std" async></script></section></div></main></body></html>