difftastic/rustdoc/nom/trait.Parser.html

62 lines
28 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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="All nom parsers implement this trait"><title>Parser in nom - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-ac92e1bbe349e143.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="nom" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><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">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../nom/index.html">nom</a><span class="version">7.1.3</span></h2></div><h2 class="location"><a href="#">Parser</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.parse">parse</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.and">and</a></li><li><a href="#method.and_then">and_then</a></li><li><a href="#method.flat_map">flat_map</a></li><li><a href="#method.into">into</a></li><li><a href="#method.map">map</a></li><li><a href="#method.or">or</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Parser%3CI,+O,+E%3E-for-Box%3Cdyn+Parser%3CI,+O,+E%3E%3E">Box&lt;dyn Parser&lt;I, O, E&gt; + &#x27;a&gt;</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Parser%3CI,+O,+E%3E-for-Box%3Cdyn+Parser%3CI,+O,+E%3E%3E">Parser&lt;I, O, E&gt;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In crate nom</a></h2></div></nav><div class="sidebar-resizer"></div>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../nom/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="index.html">nom</a>::<wbr><a class="trait" href="#">Parser</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/nom/internal.rs.html#241-318">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 Parser&lt;I, O, E&gt; {
// Required method
fn <a href="#tymethod.parse" class="fn">parse</a>(&amp;mut self, input: I) -&gt; <a class="type" href="type.IResult.html" title="type nom::IResult">IResult</a>&lt;I, O, E&gt;;
// Provided methods
fn <a href="#method.map" class="fn">map</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.Map.html" title="struct nom::Map">Map</a>&lt;Self, G, O&gt;
<span class="where">where G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(O) -&gt; O2,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.flat_map" class="fn">flat_map</a>&lt;G, H, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.FlatMap.html" title="struct nom::FlatMap">FlatMap</a>&lt;Self, G, O&gt;
<span class="where">where G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(O) -&gt; H,
H: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.and_then" class="fn">and_then</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.AndThen.html" title="struct nom::AndThen">AndThen</a>&lt;Self, G, O&gt;
<span class="where">where G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;O, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.and" class="fn">and</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.And.html" title="struct nom::And">And</a>&lt;Self, G&gt;
<span class="where">where G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.or" class="fn">or</a>&lt;G&gt;(self, g: G) -&gt; <a class="struct" href="struct.Or.html" title="struct nom::Or">Or</a>&lt;Self, G&gt;
<span class="where">where G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.into" class="fn">into</a>&lt;O2: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;O&gt;, E2: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;E&gt;&gt;(self) -&gt; <a class="struct" href="struct.Into.html" title="struct nom::Into">Into</a>&lt;Self, O, O2, E, E2&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>All nom parsers implement this trait</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.parse" class="method"><a class="src rightside" href="../src/nom/internal.rs.html#244">source</a><h4 class="code-header">fn <a href="#tymethod.parse" class="fn">parse</a>(&amp;mut self, input: I) -&gt; <a class="type" href="type.IResult.html" title="type nom::IResult">IResult</a>&lt;I, O, E&gt;</h4></section></summary><div class="docblock"><p>A parser takes in input type, and returns a <code>Result</code> containing
either the remaining input and the output value, or an error</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.map" class="method"><a class="src rightside" href="../src/nom/internal.rs.html#247-257">source</a><h4 class="code-header">fn <a href="#method.map" class="fn">map</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.Map.html" title="struct nom::Map">Map</a>&lt;Self, G, O&gt;<div class="where">where
G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(O) -&gt; O2,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Maps a function over the result of a parser</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.flat_map" class="method"><a class="src rightside" href="../src/nom/internal.rs.html#260-271">source</a><h4 class="code-header">fn <a href="#method.flat_map" class="fn">flat_map</a>&lt;G, H, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.FlatMap.html" title="struct nom::FlatMap">FlatMap</a>&lt;Self, G, O&gt;<div class="where">where
G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(O) -&gt; H,
H: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Creates a second parser from the output of the first one, then apply over the rest of the input</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.and_then" class="method"><a class="src rightside" href="../src/nom/internal.rs.html#274-284">source</a><h4 class="code-header">fn <a href="#method.and_then" class="fn">and_then</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.AndThen.html" title="struct nom::AndThen">AndThen</a>&lt;Self, G, O&gt;<div class="where">where
G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;O, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Applies a second parser over the output of the first one</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.and" class="method"><a class="src rightside" href="../src/nom/internal.rs.html#287-293">source</a><h4 class="code-header">fn <a href="#method.and" class="fn">and</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.And.html" title="struct nom::And">And</a>&lt;Self, G&gt;<div class="where">where
G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Applies a second parser after the first one, return their results as a tuple</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method"><a class="src rightside" href="../src/nom/internal.rs.html#296-302">source</a><h4 class="code-header">fn <a href="#method.or" class="fn">or</a>&lt;G&gt;(self, g: G) -&gt; <a class="struct" href="struct.Or.html" title="struct nom::Or">Or</a>&lt;Self, G&gt;<div class="where">where
G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Applies a second parser over the input if the first one failed</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.into" class="method"><a class="src rightside" href="../src/nom/internal.rs.html#306-317">source</a><h4 class="code-header">fn <a href="#method.into" class="fn">into</a>&lt;O2: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;O&gt;, E2: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;E&gt;&gt;(self) -&gt; <a class="struct" href="struct.Into.html" title="struct nom::Into">Into</a>&lt;Self, O, O2, E, E2&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>automatically converts the parsers output and error values to another type, as long as they
implement the <code>From</code> trait</p>
</div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Parser%3CI,+O,+E%3E-for-Box%3Cdyn+Parser%3CI,+O,+E%3E%3E" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#333-337">source</a><a href="#impl-Parser%3CI,+O,+E%3E-for-Box%3Cdyn+Parser%3CI,+O,+E%3E%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I, O, E&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt; for <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt; + 'a&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.parse" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#334-336">source</a><a href="#method.parse" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Parser.html#tymethod.parse" class="fn">parse</a>(&amp;mut self, input: I) -&gt; <a class="type" href="type.IResult.html" title="type nom::IResult">IResult</a>&lt;I, O, E&gt;</h4></section></summary><div class='docblock'>A parser takes in input type, and returns a <code>Result</code> containing
either the remaining input and the output value, or an error</div></details><details class="toggle method-toggle" open><summary><section id="method.map-1" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#247-257">source</a><a href="#method.map-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Parser.html#method.map" class="fn">map</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.Map.html" title="struct nom::Map">Map</a>&lt;Self, G, O&gt;<div class="where">where
G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(O) -&gt; O2,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Maps a function over the result of a parser</div></details><details class="toggle method-toggle" open><summary><section id="method.flat_map-1" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#260-271">source</a><a href="#method.flat_map-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Parser.html#method.flat_map" class="fn">flat_map</a>&lt;G, H, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.FlatMap.html" title="struct nom::FlatMap">FlatMap</a>&lt;Self, G, O&gt;<div class="where">where
G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(O) -&gt; H,
H: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Creates a second parser from the output of the first one, then apply over the rest of the input</div></details><details class="toggle method-toggle" open><summary><section id="method.and_then-1" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#274-284">source</a><a href="#method.and_then-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Parser.html#method.and_then" class="fn">and_then</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.AndThen.html" title="struct nom::AndThen">AndThen</a>&lt;Self, G, O&gt;<div class="where">where
G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;O, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Applies a second parser over the output of the first one</div></details><details class="toggle method-toggle" open><summary><section id="method.and-1" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#287-293">source</a><a href="#method.and-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Parser.html#method.and" class="fn">and</a>&lt;G, O2&gt;(self, g: G) -&gt; <a class="struct" href="struct.And.html" title="struct nom::And">And</a>&lt;Self, G&gt;<div class="where">where
G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Applies a second parser after the first one, return their results as a tuple</div></details><details class="toggle method-toggle" open><summary><section id="method.or-1" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#296-302">source</a><a href="#method.or-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Parser.html#method.or" class="fn">or</a>&lt;G&gt;(self, g: G) -&gt; <a class="struct" href="struct.Or.html" title="struct nom::Or">Or</a>&lt;Self, G&gt;<div class="where">where
G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Applies a second parser over the input if the first one failed</div></details><details class="toggle method-toggle" open><summary><section id="method.into-1" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#306-317">source</a><a href="#method.into-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Parser.html#method.into" class="fn">into</a>&lt;O2: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;O&gt;, E2: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;E&gt;&gt;(self) -&gt; <a class="struct" href="struct.Into.html" title="struct nom::Into">Into</a>&lt;Self, O, O2, E, E2&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>automatically converts the parsers output and error values to another type, as long as they
implement the <code>From</code> trait</div></details></div></details></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-Parser%3CI,+O,+E%3E-for-Box%3Cdyn+Parser%3CI,+O,+E%3E%3E-1" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#333-337">source</a><a href="#impl-Parser%3CI,+O,+E%3E-for-Box%3Cdyn+Parser%3CI,+O,+E%3E%3E-1" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I, O, E&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt; for <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt; + 'a&gt;</h3></section></summary><div class="impl-items"><section id="method.parse-1" class="method trait-impl"><a class="src rightside" href="../src/nom/internal.rs.html#334-336">source</a><a href="#method.parse-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.parse" class="fn">parse</a>(&amp;mut self, input: I) -&gt; <a class="type" href="type.IResult.html" title="type nom::IResult">IResult</a>&lt;I, O, E&gt;</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Parser%3CI,+O2,+E%3E-for-FlatMap%3CF,+G,+O1%3E" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#364-371">source</a><a href="#impl-Parser%3CI,+O2,+E%3E-for-FlatMap%3CF,+G,+O1%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I, O1, O2, E, F: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O1, E&gt;, G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(O1) -&gt; H, H: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt; for <a class="struct" href="struct.FlatMap.html" title="struct nom::FlatMap">FlatMap</a>&lt;F, G, O1&gt;</h3></section><section id="impl-Parser%3CI,+O2,+E%3E-for-Map%3CF,+G,+O1%3E" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#347-354">source</a><a href="#impl-Parser%3CI,+O2,+E%3E-for-Map%3CF,+G,+O1%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I, O1, O2, E, F: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O1, E&gt;, G: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(O1) -&gt; O2&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt; for <a class="struct" href="struct.Map.html" title="struct nom::Map">Map</a>&lt;F, G, O1&gt;</h3></section><section id="impl-Parser%3CI,+(O1,+O2),+E%3E-for-And%3CF,+G%3E" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#398-406">source</a><a href="#impl-Parser%3CI,+(O1,+O2),+E%3E-for-And%3CF,+G%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I, O1, O2, E, F: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O1, E&gt;, G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt;&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.tuple.html">(O1, O2)</a>, E&gt; for <a class="struct" href="struct.And.html" title="struct nom::And">And</a>&lt;F, G&gt;</h3></section><section id="impl-Parser%3CI,+O2,+E%3E-for-AndThen%3CF,+G,+O1%3E" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#381-389">source</a><a href="#impl-Parser%3CI,+O2,+E%3E-for-AndThen%3CF,+G,+O1%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I, O1, O2, E, F: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O1, E&gt;, G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;O1, O2, E&gt;&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E&gt; for <a class="struct" href="struct.AndThen.html" title="struct nom::AndThen">AndThen</a>&lt;F, G, O1&gt;</h3></section><section id="impl-Parser%3CI,+O,+E%3E-for-F" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#320-327">source</a><a href="#impl-Parser%3CI,+O,+E%3E-for-F" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I, O, E, F&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt; for F<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(I) -&gt; <a class="type" href="type.IResult.html" title="type nom::IResult">IResult</a>&lt;I, O, E&gt; + 'a,</div></h3></section><section id="impl-Parser%3CI,+O2,+E2%3E-for-Into%3CF,+O1,+O2,+E1,+E2%3E" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#439-457">source</a><a href="#impl-Parser%3CI,+O2,+E2%3E-for-Into%3CF,+O1,+O2,+E1,+E2%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, O1, O2: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;O1&gt;, E1, E2: <a class="trait" href="error/trait.ParseError.html" title="trait nom::error::ParseError">ParseError</a>&lt;I&gt; + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;E1&gt;, F: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O1, E1&gt;&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O2, E2&gt; for <a class="struct" href="struct.Into.html" title="struct nom::Into">Into</a>&lt;F, O1, O2, E1, E2&gt;</h3></section><section id="impl-Parser%3CI,+O,+E%3E-for-Or%3CF,+G%3E" class="impl"><a class="src rightside" href="../src/nom/internal.rs.html#415-427">source</a><a href="#impl-Parser%3CI,+O,+E%3E-for-Or%3CF,+G%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, I: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, O, E: <a class="trait" href="error/trait.ParseError.html" title="trait nom::error::ParseError">ParseError</a>&lt;I&gt;, F: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt;, G: <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt;&gt; <a class="trait" href="trait.Parser.html" title="trait nom::Parser">Parser</a>&lt;I, O, E&gt; for <a class="struct" href="struct.Or.html" title="struct nom::Or">Or</a>&lt;F, G&gt;</h3></section></div><script src="../trait.impl/nom/internal/trait.Parser.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>