blob: a31d30456d59430b5df1f3ecd56ccc6b9f98eccb [file] [log] [blame]
<!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="API documentation for the Rust `Produce` struct in crate `combine`."><meta name="keywords" content="rust, rustlang, rust-lang, Produce"><title>Produce in combine::parser::token - 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" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" 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 struct"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../combine/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../combine/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Produce</a></h2><div class="sidebar-elems"><section><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-Produce%3CInput%2C%20F%3E">Clone</a></li><li><a href="#impl-Copy-for-Produce%3CInput%2C%20F%3E">Copy</a></li><li><a href="#impl-Parser%3CInput%3E-for-Produce%3CInput%2C%20F%3E">Parser&lt;Input&gt;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Produce%3CInput%2C%20F%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Produce%3CInput%2C%20F%3E">Send</a></li><li><a href="#impl-Sync-for-Produce%3CInput%2C%20F%3E">Sync</a></li><li><a href="#impl-Unpin-for-Produce%3CInput%2C%20F%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Produce%3CInput%2C%20F%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Produce%3CInput%2C%20F%3E">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Produce%3CInput%2C%20F%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Produce%3CInput%2C%20F%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Produce%3CInput%2C%20F%3E">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-Produce%3CInput%2C%20F%3E">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-Produce%3CInput%2C%20F%3E">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Produce%3CInput%2C%20F%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Produce%3CInput%2C%20F%3E">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In combine::parser::token</a></h2></div></nav><main><div class="width-limiter"><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"><a href="../../../help.html">?</a></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><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../../index.html">combine</a>::<wbr><a href="../index.html">parser</a>::<wbr><a href="index.html">token</a>::<wbr><a class="struct" href="#">Produce</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></h1><span class="out-of-band"><a class="srclink" href="../../../src/combine/parser/token.rs.html#615">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Produce&lt;Input, F&gt;(_, _);</code></pre></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/token.rs.html#614">source</a><a href="#impl-Clone-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input:&nbsp;Clone, F:&nbsp;Clone&gt; Clone for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/token.rs.html#614">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;</h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Parser%3CInput%3E-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/token.rs.html#616-627">source</a><a href="#impl-Parser%3CInput%3E-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input, F, R&gt; <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt; for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Input: <a class="trait" href="../../trait.Stream.html" title="trait combine::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut() -&gt; R,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="../../trait.Parser.html#associatedtype.Output" class="associatedtype">Output</a> = R</h4></section></summary><div class='docblock'>The type which is returned if the parser is successful.</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.PartialState" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.PartialState" class="anchor"></a><h4 class="code-header">type <a href="../../trait.Parser.html#associatedtype.PartialState" class="associatedtype">PartialState</a> = ()</h4></section></summary><div class='docblock'>Determines the state necessary to resume parsing after more input is supplied. <a href="../../trait.Parser.html#associatedtype.PartialState">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_lazy" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/token.rs.html#624-626">source</a><a href="#method.parse_lazy" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.parse_lazy" class="fnname">parse_lazy</a>(&amp;mut self, _: &amp;mut Input) -&gt; <a class="enum" href="../../enum.ParseResult.html" title="enum combine::ParseResult">ParseResult</a>&lt;R, Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Parses using the stream <code>input</code> by calling <a href="../../trait.StreamOnce.html#tymethod.uncons"><code>Stream::uncons</code></a> one or more times. <a href="../../trait.Parser.html#method.parse_lazy">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#105-113">source</a><a href="#method.parse" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.parse" class="fnname">parse</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: Input<br>) -&gt; Result&lt;(Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>, Input), &lt;Input as <a class="trait" href="../../trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a>&gt;::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Entry point of the parser. Takes some input and tries to parse it. <a href="../../trait.Parser.html#method.parse">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_with_state" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#120-129">source</a><a href="#method.parse_with_state" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.parse_with_state" class="fnname">parse_with_state</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;mut Input,<br>&nbsp;&nbsp;&nbsp;&nbsp;state: &amp;mut Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.PartialState" title="type combine::Parser::PartialState">PartialState</a><br>) -&gt; Result&lt;Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>, &lt;Input as <a class="trait" href="../../trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a>&gt;::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Entry point of the parser when using partial parsing.
Takes some input and tries to parse it. <a href="../../trait.Parser.html#method.parse_with_state">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_stream" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#141-159">source</a><a href="#method.parse_stream" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.parse_stream" class="fnname">parse_stream</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;mut Input<br>) -&gt; <a class="enum" href="../../enum.ParseResult.html" title="enum combine::ParseResult">ParseResult</a>&lt;Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>, &lt;Input as <a class="trait" href="../../trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a>&gt;::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Parses using the stream <code>input</code> by calling <a href="../../trait.StreamOnce.html#tymethod.uncons"><code>Stream::uncons</code></a> one or more times. <a href="../../trait.Parser.html#method.parse_stream">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_error" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#206">source</a><a href="#method.add_error" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.add_error" class="fnname">add_error</a>(&amp;mut self, _error: &amp;mut <a class="struct" href="../../error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;&lt;Input as <a class="trait" href="../../trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a>&gt;::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a>&gt;)</h4></section></summary><div class='docblock'>Adds the first error that would normally be returned by this parser if it failed with an
<code>PeekErr</code> result. <a href="../../trait.Parser.html#method.add_error">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_stream_partial" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#210-228">source</a><a href="#method.parse_stream_partial" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.parse_stream_partial" class="fnname">parse_stream_partial</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;mut Input,<br>&nbsp;&nbsp;&nbsp;&nbsp;state: &amp;mut Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.PartialState" title="type combine::Parser::PartialState">PartialState</a><br>) -&gt; <a class="enum" href="../../enum.ParseResult.html" title="enum combine::ParseResult">ParseResult</a>&lt;Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>, &lt;Input as <a class="trait" href="../../trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a>&gt;::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Like <code>parse_stream</code> but supports partial parsing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.by_ref" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#357-362">source</a><a href="#method.by_ref" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.by_ref" class="fnname">by_ref</a>(&amp;mut self) -&gt; &amp;mut Self<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class='docblock'>Borrows a parser instead of consuming it. <a href="../../trait.Parser.html#method.by_ref">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#379-385">source</a><a href="#method.with" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.with" class="fnname">with</a>&lt;P2&gt;(self, p: P2) -&gt; <a class="struct" href="../sequence/struct.With.html" title="struct combine::parser::sequence::With">With</a>&lt;Self, P2&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;P2: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,</span></h4></section></summary><div class='docblock'>Discards the value of the <code>self</code> parser and returns the value of <code>p</code>.
Fails if any of the parsers fails. <a href="../../trait.Parser.html#method.with">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.skip" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#402-408">source</a><a href="#method.skip" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.skip" class="fnname">skip</a>&lt;P2&gt;(self, p: P2) -&gt; <a class="struct" href="../sequence/struct.Skip.html" title="struct combine::parser::sequence::Skip">Skip</a>&lt;Self, P2&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;P2: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,</span></h4></section></summary><div class='docblock'>Discards the value of the <code>p</code> parser and returns the value of <code>self</code>.
Fails if any of the parsers fails. <a href="../../trait.Parser.html#method.skip">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.and" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#426-432">source</a><a href="#method.and" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.and" class="fnname">and</a>&lt;P2&gt;(self, p: P2) -&gt; (Self, P2)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;P2: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,</span></h4></section></summary><div class='docblock'>Parses with <code>self</code> followed by <code>p</code>.
Succeeds if both parsers succeed, otherwise fails.
Returns a tuple with both values on success. <a href="../../trait.Parser.html#method.and">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.or" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#463-469">source</a><a href="#method.or" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.or" class="fnname">or</a>&lt;P2&gt;(self, p: P2) -&gt; <a class="struct" href="../choice/struct.Or.html" title="struct combine::parser::choice::Or">Or</a>&lt;Self, P2&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;P2: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input, Output = Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>&gt;,</span></h4></section></summary><div class='docblock'>Returns a parser which attempts to parse using <code>self</code>. If <code>self</code> fails without committing
it tries to consume the same input using <code>p</code>. <a href="../../trait.Parser.html#method.or">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.then" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#500-507">source</a><a href="#method.then" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.then" class="fnname">then</a>&lt;N, F&gt;(self, f: F) -&gt; <a class="struct" href="../sequence/struct.Then.html" title="struct combine::parser::sequence::Then">Then</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>) -&gt; N,<br>&nbsp;&nbsp;&nbsp;&nbsp;N: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,</span></h4></section></summary><div class='docblock'>Parses using <code>self</code> and then passes the value to <code>f</code> which returns a parser used to parse
the rest of the input. <a href="../../trait.Parser.html#method.then">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.then_partial" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#539-546">source</a><a href="#method.then_partial" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.then_partial" class="fnname">then_partial</a>&lt;N, F&gt;(self, f: F) -&gt; <a class="struct" href="../sequence/struct.ThenPartial.html" title="struct combine::parser::sequence::ThenPartial">ThenPartial</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;mut Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>) -&gt; N,<br>&nbsp;&nbsp;&nbsp;&nbsp;N: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,</span></h4></section></summary><div class='docblock'>Variant of <a href="../../trait.Parser.html#method.then"><code>then</code></a> which parses using <code>self</code> and then passes the value to <code>f</code> as a <code>&amp;mut</code> reference. <a href="../../trait.Parser.html#method.then_partial">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.then_ref" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#575-582">source</a><a href="#method.then_ref" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.then_ref" class="fnname">then_ref</a>&lt;N, F&gt;(self, f: F) -&gt; <a class="struct" href="../sequence/struct.ThenRef.html" title="struct combine::parser::sequence::ThenRef">ThenRef</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>) -&gt; N,<br>&nbsp;&nbsp;&nbsp;&nbsp;N: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,</span></h4></section></summary><div class='docblock'>Parses using <code>self</code> and then passes a reference to the value to <code>f</code> which returns a parser
used to parse the rest of the input. The value is then combined with the output of <code>f</code>. <a href="../../trait.Parser.html#method.then_ref">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#598-604">source</a><a href="#method.map" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.map" class="fnname">map</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../combinator/struct.Map.html" title="struct combine::parser::combinator::Map">Map</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>) -&gt; B,</span></h4></section></summary><div class='docblock'>Uses <code>f</code> to map over the parsed value. <a href="../../trait.Parser.html#method.map">Read more</a></div></details><section id="method.map_input" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#606-612">source</a><a href="#method.map_input" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.map_input" class="fnname">map_input</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../combinator/struct.MapInput.html" title="struct combine::parser::combinator::MapInput">MapInput</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>, &amp;mut Input) -&gt; B,</span></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flat_map" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#628-634">source</a><a href="#method.flat_map" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.flat_map" class="fnname">flat_map</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../combinator/struct.FlatMap.html" title="struct combine::parser::combinator::FlatMap">FlatMap</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>) -&gt; Result&lt;B, &lt;Input as <a class="trait" href="../../trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a>&gt;::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Uses <code>f</code> to map over the output of <code>self</code>. If <code>f</code> returns an error the parser fails. <a href="../../trait.Parser.html#method.flat_map">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.message" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#658-664">source</a><a href="#method.message" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.message" class="fnname">message</a>&lt;S&gt;(self, msg: S) -&gt; <a class="struct" href="../error/struct.Message.html" title="struct combine::parser::error::Message">Message</a>&lt;Self, S&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: for&lt;'s&gt; <a class="trait" href="../../error/trait.ErrorInfo.html" title="trait combine::error::ErrorInfo">ErrorInfo</a>&lt;'s, Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Token" title="type combine::StreamOnce::Token">Token</a>, Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Range" title="type combine::StreamOnce::Range">Range</a>&gt;,</span></h4></section></summary><div class='docblock'>Parses with <code>self</code> and if it fails, adds the message <code>msg</code> to the error. <a href="../../trait.Parser.html#method.message">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.expected" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#700-706">source</a><a href="#method.expected" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.expected" class="fnname">expected</a>&lt;S&gt;(self, msg: S) -&gt; <a class="struct" href="../error/struct.Expected.html" title="struct combine::parser::error::Expected">Expected</a>&lt;Self, S&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: for&lt;'s&gt; <a class="trait" href="../../error/trait.ErrorInfo.html" title="trait combine::error::ErrorInfo">ErrorInfo</a>&lt;'s, Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Token" title="type combine::StreamOnce::Token">Token</a>, Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Range" title="type combine::StreamOnce::Range">Range</a>&gt;,</span></h4></section></summary><div class='docblock'>Parses with <code>self</code> and if it fails without consuming any input any expected errors are
replaced by <code>msg</code>. <code>msg</code> is then used in error messages as “Expected <code>msg</code>”. <a href="../../trait.Parser.html#method.expected">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.silent" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#730-735">source</a><a href="#method.silent" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.silent" class="fnname">silent</a>(self) -&gt; <a class="struct" href="../error/struct.Silent.html" title="struct combine::parser::error::Silent">Silent</a>&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class='docblock'>Parses with <code>self</code>, if it fails without consuming any input any expected errors that would
otherwise be emitted by <code>self</code> are suppressed. <a href="../../trait.Parser.html#method.silent">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.and_then" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#756-765">source</a><a href="#method.and_then" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.and_then" class="fnname">and_then</a>&lt;F, O, E&gt;(self, f: F) -&gt; <a class="struct" href="../combinator/struct.AndThen.html" title="struct combine::parser::combinator::AndThen">AndThen</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt; + Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>) -&gt; Result&lt;O, E&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;E: Into&lt;&lt;Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Error" title="type combine::StreamOnce::Error">Error</a> as <a class="trait" href="../../trait.ParseError.html" title="trait combine::ParseError">ParseError</a>&lt;Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Token" title="type combine::StreamOnce::Token">Token</a>, Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Range" title="type combine::StreamOnce::Range">Range</a>, Input::<a class="associatedtype" href="../../trait.StreamOnce.html#associatedtype.Position" title="type combine::StreamOnce::Position">Position</a>&gt;&gt;::<a class="associatedtype" href="../../trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>&gt;,</span></h4></section></summary><div class='docblock'>Parses with <code>self</code> and applies <code>f</code> on the result if <code>self</code> parses successfully.
<code>f</code> may optionally fail with an error which is automatically converted to a <code>ParseError</code>. <a href="../../trait.Parser.html#method.and_then">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#790-795">source</a><a href="#method.iter" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.iter" class="fnname">iter</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;mut Input<br>) -&gt; <a class="struct" href="../repeat/struct.Iter.html" title="struct combine::parser::repeat::Iter">Iter</a>&lt;'_, Input, Self, Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.PartialState" title="type combine::Parser::PartialState">PartialState</a>, FirstMode&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../repeat/struct.Iter.html" title="struct combine::parser::repeat::Iter">Iter</a>&lt;'a, Input, P, S, M&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;'a, Input, P, S, M&gt; Iterator for <a class="struct" href="../repeat/struct.Iter.html" title="struct combine::parser::repeat::Iter">Iter</a>&lt;'a, Input, P, S, M&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Input: <a class="trait" href="../../trait.Stream.html" title="trait combine::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: BorrowMut&lt;P::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.PartialState" title="type combine::Parser::PartialState">PartialState</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;M: ParseMode,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = P::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt; + Sized,</span></h4></section></summary><div class='docblock'>Creates an iterator from a parser and a state. Can be used as an alternative to <a href="../../fn.many.html"><code>many</code></a>
when collecting directly into a <code>Extend</code> type is not desirable. <a href="../../trait.Parser.html#method.iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#820-831">source</a><a href="#method.partial_iter" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.partial_iter" class="fnname">partial_iter</a>&lt;'a, 's, M&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;mode: M,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;'a mut Input,<br>&nbsp;&nbsp;&nbsp;&nbsp;partial_state: &amp;'s mut Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.PartialState" title="type combine::Parser::PartialState">PartialState</a><br>) -&gt; <a class="struct" href="../repeat/struct.Iter.html" title="struct combine::parser::repeat::Iter">Iter</a>&lt;'a, Input, Self, &amp;'s mut Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.PartialState" title="type combine::Parser::PartialState">PartialState</a>, M&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../repeat/struct.Iter.html" title="struct combine::parser::repeat::Iter">Iter</a>&lt;'a, Input, P, S, M&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;'a, Input, P, S, M&gt; Iterator for <a class="struct" href="../repeat/struct.Iter.html" title="struct combine::parser::repeat::Iter">Iter</a>&lt;'a, Input, P, S, M&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Input: <a class="trait" href="../../trait.Stream.html" title="trait combine::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: BorrowMut&lt;P::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.PartialState" title="type combine::Parser::PartialState">PartialState</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;M: ParseMode,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = P::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input&gt; + Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;M: ParseMode,</span></h4></section></summary><div class='docblock'>Creates an iterator from a parser and a state. Can be used as an alternative to <a href="../../fn.many.html"><code>many</code></a>
when collecting directly into a <code>Extend</code> type is not desirable. <a href="../../trait.Parser.html#method.partial_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.left" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#889-895">source</a><a href="#method.left" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.left" class="fnname">left</a>&lt;R&gt;(self) -&gt; <a class="enum" href="../combinator/enum.Either.html" title="enum combine::parser::combinator::Either">Either</a>&lt;Self, R&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input, Output = Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>&gt;,</span></h4></section></summary><div class='docblock'>Wraps the parser into the <a href="../combinator/enum.Either.html"><code>Either</code></a> enum which allows combinators such as <a href="../../trait.Parser.html#method.then"><code>then</code></a> to return
multiple different parser types (merging them to one) <a href="../../trait.Parser.html#method.left">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.right" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#923-929">source</a><a href="#method.right" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.right" class="fnname">right</a>&lt;L&gt;(self) -&gt; <a class="enum" href="../combinator/enum.Either.html" title="enum combine::parser::combinator::Either">Either</a>&lt;L, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;L: <a class="trait" href="../../trait.Parser.html" title="trait combine::Parser">Parser</a>&lt;Input, Output = Self::<a class="associatedtype" href="../../trait.Parser.html#associatedtype.Output" title="type combine::Parser::Output">Output</a>&gt;,</span></h4></section></summary><div class='docblock'>Wraps the parser into the <a href="../combinator/enum.Either.html"><code>Either</code></a> enum which allows combinators such as <a href="../../trait.Parser.html#method.then"><code>then</code></a> to return
multiple different parser types (merging them to one) <a href="../../trait.Parser.html#method.right">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.spanned" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/mod.rs.html#950-955">source</a><a href="#method.spanned" class="anchor"></a><h4 class="code-header">fn <a href="../../trait.Parser.html#method.spanned" class="fnname">spanned</a>(self) -&gt; <a class="struct" href="../combinator/struct.Spanned.html" title="struct combine::parser::combinator::Spanned">Spanned</a>&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class='docblock'>Marks errors produced inside the <code>self</code> parser with the span from the start of the parse to
the end of it. <a href="../../trait.Parser.html#method.spanned">Read more</a></div></details></div></details><section id="impl-Copy-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a class="srclink rightside" href="../../../src/combine/parser/token.rs.html#614">source</a><a href="#impl-Copy-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input:&nbsp;Copy, F:&nbsp;Copy&gt; Copy for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;</h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input, F&gt; RefUnwindSafe for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: RefUnwindSafe,</span></h3></section><section id="impl-Send-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-Send-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input, F&gt; Send for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: Send,</span></h3></section><section id="impl-Sync-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-Sync-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input, F&gt; Sync for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: Sync,</span></h3></section><section id="impl-Unpin-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-Unpin-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input, F&gt; Unpin for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: Unpin,</span></h3></section><section id="impl-UnwindSafe-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;Input, F&gt; UnwindSafe for <a class="struct" href="struct.Produce.html" title="struct combine::parser::token::Produce">Produce</a>&lt;Input, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: UnwindSafe,</span></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-Any-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Any for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&amp;self) -&gt; TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Borrow&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; BorrowMut&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; From&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; Into&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: From&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code>[From]&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-ToOwned-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; ToOwned for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Clone,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone_into</a>(&amp;self, target: &amp;mut T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryFrom&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: Into&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Produce%3CInput%2C%20F%3E" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-Produce%3CInput%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryInto&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: TryFrom&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;U as TryFrom&lt;T&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="combine" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>