Files
tantivy/master/combine/trait.ParseError.html
2019-06-16 03:00:46 +00:00

38 lines
39 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `ParseError` trait in crate `combine`."><meta name="keywords" content="rust, rustlang, rust-lang, ParseError"><title>combine::ParseError - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../combine/index.html'><img src='../rust-logo.png' alt='logo' width='100'></a><p class='location'>Trait ParseError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.StreamError">StreamError</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.add">add</a><a href="#tymethod.empty">empty</a><a href="#tymethod.from_error">from_error</a><a href="#tymethod.into_other">into_other</a><a href="#tymethod.is_unexpected_end_of_input">is_unexpected_end_of_input</a><a href="#tymethod.set_expected">set_expected</a><a href="#tymethod.set_position">set_position</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.add_expected">add_expected</a><a href="#method.add_message">add_message</a><a href="#method.add_unexpected">add_unexpected</a><a href="#method.clear_expected">clear_expected</a><a href="#method.merge">merge</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>combine</a></p><script>window.sidebarCurrent = {name: 'ParseError', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../src/combine/error.rs.html#284-337' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>combine</a>::<wbr><a class="trait" href=''>ParseError</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait ParseError&lt;Item, Range, Position&gt;: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> {
type <a href='#associatedtype.StreamError' class="type">StreamError</a>: <a class="trait" href="../combine/error/trait.StreamError.html" title="trait combine::error::StreamError">StreamError</a>&lt;Item, Range&gt;;
fn <a href='#tymethod.empty' class='fnname'>empty</a>(position: Position) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.from_error' class='fnname'>from_error</a>(position: Position, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.set_position' class='fnname'>set_position</a>(&amp;mut self, position: Position);
<div class='item-spacer'></div> fn <a href='#tymethod.add' class='fnname'>add</a>(&amp;mut self, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>);
<div class='item-spacer'></div> fn <a href='#tymethod.set_expected' class='fnname'>set_expected</a>&lt;F&gt;(self_: &amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;, info: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>, f: F)<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;)</span>;
<div class='item-spacer'></div> fn <a href='#tymethod.is_unexpected_end_of_input' class='fnname'>is_unexpected_end_of_input</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.into_other' class='fnname'>into_other</a>&lt;T&gt;(self) -&gt; T<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../combine/trait.ParseError.html" title="trait combine::ParseError">ParseError</a>&lt;Item, Range, Position&gt;</span>;
fn <a href='#method.merge' class='fnname'>merge</a>(self, other: Self) -&gt; Self { ... }
<div class='item-spacer'></div> fn <a href='#method.add_expected' class='fnname'>add_expected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;) { ... }
<div class='item-spacer'></div> fn <a href='#method.add_unexpected' class='fnname'>add_unexpected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;) { ... }
<div class='item-spacer'></div> fn <a href='#method.add_message' class='fnname'>add_message</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;) { ... }
<div class='item-spacer'></div> fn <a href='#method.clear_expected' class='fnname'>clear_expected</a>(&amp;mut self) { ... }
}</pre></div><div class='docblock'><p>Trait which defines a combine parse error.</p>
<p>A parse error is composed of zero or more <code>StreamError</code> instances which gets added to it as
errors are encountered during parsing.</p>
</div>
<h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.StreamError' class='method'><code id='StreamError.t'>type <a href='#associatedtype.StreamError' class="type">StreamError</a>: <a class="trait" href="../combine/error/trait.StreamError.html" title="trait combine::error::StreamError">StreamError</a>&lt;Item, Range&gt;</code></h3></div><span class='loading-content'>Loading content...</span>
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.empty' class='method'><code id='empty.v'>fn <a href='#tymethod.empty' class='fnname'>empty</a>(position: Position) -&gt; Self</code></h3><div class='docblock'><p>Constructs an empty error.</p>
<p>An empty error is expected to be cheap to create as it is frequently created and discarded.</p>
</div><h3 id='tymethod.from_error' class='method'><code id='from_error.v'>fn <a href='#tymethod.from_error' class='fnname'>from_error</a>(position: Position, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>) -&gt; Self</code></h3><div class='docblock'><p>Creates a <code>ParseError</code> from a single <code>Self::StreamError</code></p>
</div><h3 id='tymethod.set_position' class='method'><code id='set_position.v'>fn <a href='#tymethod.set_position' class='fnname'>set_position</a>(&amp;mut self, position: Position)</code></h3><div class='docblock'><p>Sets the position of this <code>ParseError</code></p>
</div><h3 id='tymethod.add' class='method'><code id='add.v'>fn <a href='#tymethod.add' class='fnname'>add</a>(&amp;mut self, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>)</code></h3><div class='docblock'><p>Adds a <code>StreamError</code> to <code>self</code>.</p>
<p>It is up to each individual error type to define what adding an error does, some may push
it to a vector while others may only keep <code>self</code> or <code>err</code> to avoid allocation</p>
</div><h3 id='tymethod.set_expected' class='method'><code id='set_expected.v'>fn <a href='#tymethod.set_expected' class='fnname'>set_expected</a>&lt;F&gt;(self_: &amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;, info: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;),&nbsp;</span></code></h3><div class='docblock'><p>Sets <code>info</code> as the <em>only</em> <code>Expected</code> error of <code>self</code></p>
</div><h3 id='tymethod.is_unexpected_end_of_input' class='method'><code id='is_unexpected_end_of_input.v'>fn <a href='#tymethod.is_unexpected_end_of_input' class='fnname'>is_unexpected_end_of_input</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h3><h3 id='tymethod.into_other' class='method'><code id='into_other.v'>fn <a href='#tymethod.into_other' class='fnname'>into_other</a>&lt;T&gt;(self) -&gt; T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../combine/trait.ParseError.html" title="trait combine::ParseError">ParseError</a>&lt;Item, Range, Position&gt;,&nbsp;</span></code></h3><div class='docblock'><p>Does a best-effort conversion of <code>self</code> into another <code>ParseError</code></p>
</div></div><span class='loading-content'>Loading content...</span>
<h2 id='provided-methods' class='small-section-header'>Provided methods<a href='#provided-methods' class='anchor'></a></h2><div class='methods'><h3 id='method.merge' class='method'><code id='merge.v'>fn <a href='#method.merge' class='fnname'>merge</a>(self, other: Self) -&gt; Self</code></h3><div class='docblock'><p>Merges two errors. If they exist at the same position the errors of <code>other</code> are
added to <code>self</code> (using the semantics of <code>add</code>). If they are not at the same
position the error furthest ahead are returned, ignoring the other <code>ParseError</code>.</p>
</div><h3 id='method.add_expected' class='method'><code id='add_expected.v'>fn <a href='#method.add_expected' class='fnname'>add_expected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code></h3><h3 id='method.add_unexpected' class='method'><code id='add_unexpected.v'>fn <a href='#method.add_unexpected' class='fnname'>add_unexpected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code></h3><h3 id='method.add_message' class='method'><code id='add_message.v'>fn <a href='#method.add_message' class='fnname'>add_message</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code></h3><h3 id='method.clear_expected' class='method'><code id='clear_expected.v'>fn <a href='#method.clear_expected' class='fnname'>clear_expected</a>(&amp;mut self)</code></h3><div class='docblock'><p>Removes any expected errors currently in <code>self</code></p>
</div></div><span class='loading-content'>Loading content...</span>
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-ParseError%3CItem%2C%20Range%2C%20Position%3E' class='impl'><code class='in-band'>impl&lt;Item, Range, Position&gt; ParseError&lt;Item, Range, Position&gt; for <a class="enum" href="../combine/error/enum.StringStreamError.html" title="enum combine::error::StringStreamError">StringStreamError</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Position: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code><a href='#impl-ParseError%3CItem%2C%20Range%2C%20Position%3E' class='anchor'></a><a class='srclink' href='../src/combine/error.rs.html#567-612' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.StreamError-1' class="type"><code id='StreamError.t-1'>type <a href='#associatedtype.StreamError-1' class="type">StreamError</a> = Self</code></h4><h4 id='method.empty' class="method hidden"><code id='empty.v-1'>fn <a href='#method.empty' class='fnname'>empty</a>(_position: Position) -&gt; Self</code><a class='srclink' href='../src/combine/error.rs.html#573-575' title='goto source code'>[src]</a></h4><h4 id='method.from_error' class="method hidden"><code id='from_error.v-1'>fn <a href='#method.from_error' class='fnname'>from_error</a>(_: Position, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>) -&gt; Self</code><a class='srclink' href='../src/combine/error.rs.html#577-579' title='goto source code'>[src]</a></h4><h4 id='method.set_position' class="method hidden"><code id='set_position.v-1'>fn <a href='#method.set_position' class='fnname'>set_position</a>(&amp;mut self, _position: Position)</code><a class='srclink' href='../src/combine/error.rs.html#582' title='goto source code'>[src]</a></h4><h4 id='method.add' class="method hidden"><code id='add.v-1'>fn <a href='#method.add' class='fnname'>add</a>(&amp;mut self, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>)</code><a class='srclink' href='../src/combine/error.rs.html#585-590' title='goto source code'>[src]</a></h4><h4 id='method.set_expected' class="method hidden"><code id='set_expected.v-1'>fn <a href='#method.set_expected' class='fnname'>set_expected</a>&lt;F&gt;(self_: &amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;, info: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;),&nbsp;</span></code><a class='srclink' href='../src/combine/error.rs.html#593-599' title='goto source code'>[src]</a></h4><h4 id='method.is_unexpected_end_of_input' class="method hidden"><code id='is_unexpected_end_of_input.v-1'>fn <a href='#method.is_unexpected_end_of_input' class='fnname'>is_unexpected_end_of_input</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/combine/error.rs.html#601-603' title='goto source code'>[src]</a></h4><h4 id='method.into_other' class="method hidden"><code id='into_other.v-1'>fn <a href='#method.into_other' class='fnname'>into_other</a>&lt;T&gt;(self) -&gt; T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../combine/trait.ParseError.html" title="trait combine::ParseError">ParseError</a>&lt;Item, Range, Position&gt;,&nbsp;</span></code><a class='srclink' href='../src/combine/error.rs.html#606-611' title='goto source code'>[src]</a></h4><h4 id='method.merge-1' class="method"><code id='merge.v-1'>fn <a href='../combine/trait.ParseError.html#method.merge' class='fnname'>merge</a>(self, other: Self) -&gt; Self</code><a class='srclink' href='../src/combine/error.rs.html#301-303' title='goto source code'>[src]</a></h4><h4 id='method.add_expected-1' class="method"><code id='add_expected.v-1'>fn <a href='../combine/trait.ParseError.html#method.add_expected' class='fnname'>add_expected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#311-313' title='goto source code'>[src]</a></h4><h4 id='method.add_unexpected-1' class="method"><code id='add_unexpected.v-1'>fn <a href='../combine/trait.ParseError.html#method.add_unexpected' class='fnname'>add_unexpected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#315-317' title='goto source code'>[src]</a></h4><h4 id='method.add_message-1' class="method"><code id='add_message.v-1'>fn <a href='../combine/trait.ParseError.html#method.add_message' class='fnname'>add_message</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#319-321' title='goto source code'>[src]</a></h4><h4 id='method.clear_expected-1' class="method"><code id='clear_expected.v-1'>fn <a href='../combine/trait.ParseError.html#method.clear_expected' class='fnname'>clear_expected</a>(&amp;mut self)</code><a class='srclink' href='../src/combine/error.rs.html#329' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParseError%3CItem%2C%20Range%2C%20Position%3E-1' class='impl'><code class='in-band'>impl&lt;Item, Range, Position&gt; ParseError&lt;Item, Range, Position&gt; for <a class="enum" href="../combine/error/enum.UnexpectedParse.html" title="enum combine::error::UnexpectedParse">UnexpectedParse</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Position: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code><a href='#impl-ParseError%3CItem%2C%20Range%2C%20Position%3E-1' class='anchor'></a><a class='srclink' href='../src/combine/error.rs.html#424-470' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.StreamError-2' class="type"><code id='StreamError.t-2'>type <a href='#associatedtype.StreamError-2' class="type">StreamError</a> = Self</code></h4><h4 id='method.empty-1' class="method hidden"><code id='empty.v-2'>fn <a href='#method.empty-1' class='fnname'>empty</a>(_position: Position) -&gt; Self</code><a class='srclink' href='../src/combine/error.rs.html#430-432' title='goto source code'>[src]</a></h4><h4 id='method.from_error-1' class="method hidden"><code id='from_error.v-2'>fn <a href='#method.from_error-1' class='fnname'>from_error</a>(_: Position, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>) -&gt; Self</code><a class='srclink' href='../src/combine/error.rs.html#435-437' title='goto source code'>[src]</a></h4><h4 id='method.set_position-1' class="method hidden"><code id='set_position.v-2'>fn <a href='#method.set_position-1' class='fnname'>set_position</a>(&amp;mut self, _position: Position)</code><a class='srclink' href='../src/combine/error.rs.html#440' title='goto source code'>[src]</a></h4><h4 id='method.add-1' class="method hidden"><code id='add.v-2'>fn <a href='#method.add-1' class='fnname'>add</a>(&amp;mut self, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>)</code><a class='srclink' href='../src/combine/error.rs.html#443-448' title='goto source code'>[src]</a></h4><h4 id='method.set_expected-1' class="method hidden"><code id='set_expected.v-2'>fn <a href='#method.set_expected-1' class='fnname'>set_expected</a>&lt;F&gt;(self_: &amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;, info: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;),&nbsp;</span></code><a class='srclink' href='../src/combine/error.rs.html#451-457' title='goto source code'>[src]</a></h4><h4 id='method.is_unexpected_end_of_input-1' class="method hidden"><code id='is_unexpected_end_of_input.v-2'>fn <a href='#method.is_unexpected_end_of_input-1' class='fnname'>is_unexpected_end_of_input</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/combine/error.rs.html#459-461' title='goto source code'>[src]</a></h4><h4 id='method.into_other-1' class="method hidden"><code id='into_other.v-2'>fn <a href='#method.into_other-1' class='fnname'>into_other</a>&lt;T&gt;(self) -&gt; T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../combine/trait.ParseError.html" title="trait combine::ParseError">ParseError</a>&lt;Item, Range, Position&gt;,&nbsp;</span></code><a class='srclink' href='../src/combine/error.rs.html#464-469' title='goto source code'>[src]</a></h4><h4 id='method.merge-2' class="method"><code id='merge.v-2'>fn <a href='../combine/trait.ParseError.html#method.merge' class='fnname'>merge</a>(self, other: Self) -&gt; Self</code><a class='srclink' href='../src/combine/error.rs.html#301-303' title='goto source code'>[src]</a></h4><h4 id='method.add_expected-2' class="method"><code id='add_expected.v-2'>fn <a href='../combine/trait.ParseError.html#method.add_expected' class='fnname'>add_expected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#311-313' title='goto source code'>[src]</a></h4><h4 id='method.add_unexpected-2' class="method"><code id='add_unexpected.v-2'>fn <a href='../combine/trait.ParseError.html#method.add_unexpected' class='fnname'>add_unexpected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#315-317' title='goto source code'>[src]</a></h4><h4 id='method.add_message-2' class="method"><code id='add_message.v-2'>fn <a href='../combine/trait.ParseError.html#method.add_message' class='fnname'>add_message</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#319-321' title='goto source code'>[src]</a></h4><h4 id='method.clear_expected-2' class="method"><code id='clear_expected.v-2'>fn <a href='../combine/trait.ParseError.html#method.clear_expected' class='fnname'>clear_expected</a>(&amp;mut self)</code><a class='srclink' href='../src/combine/error.rs.html#329' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParseError%3CItem%2C%20Range%2C%20Position%3E-2' class='impl'><code class='in-band'>impl&lt;Item, Range, Position&gt; ParseError&lt;Item, Range, Position&gt; for <a class="enum" href="../combine/stream/easy/enum.Error.html" title="enum combine::stream::easy::Error">Error</a>&lt;Item, Range&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Item: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Range: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Position: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code><a href='#impl-ParseError%3CItem%2C%20Range%2C%20Position%3E-2' class='anchor'></a><a class='srclink' href='../src/combine/stream/easy.rs.html#305-349' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.StreamError-3' class="type"><code id='StreamError.t-3'>type <a href='#associatedtype.StreamError-3' class="type">StreamError</a> = Self</code></h4><h4 id='method.empty-2' class="method hidden"><code id='empty.v-3'>fn <a href='#method.empty-2' class='fnname'>empty</a>(_: Position) -&gt; Self</code><a class='srclink' href='../src/combine/stream/easy.rs.html#313-315' title='goto source code'>[src]</a></h4><h4 id='method.from_error-2' class="method hidden"><code id='from_error.v-3'>fn <a href='#method.from_error-2' class='fnname'>from_error</a>(_: Position, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>) -&gt; Self</code><a class='srclink' href='../src/combine/stream/easy.rs.html#317-319' title='goto source code'>[src]</a></h4><h4 id='method.set_position-2' class="method hidden"><code id='set_position.v-3'>fn <a href='#method.set_position-2' class='fnname'>set_position</a>(&amp;mut self, _position: Position)</code><a class='srclink' href='../src/combine/stream/easy.rs.html#322' title='goto source code'>[src]</a></h4><h4 id='method.add-2' class="method hidden"><code id='add.v-3'>fn <a href='#method.add-2' class='fnname'>add</a>(&amp;mut self, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>)</code><a class='srclink' href='../src/combine/stream/easy.rs.html#325-327' title='goto source code'>[src]</a></h4><h4 id='method.set_expected-2' class="method hidden"><code id='set_expected.v-3'>fn <a href='#method.set_expected-2' class='fnname'>set_expected</a>&lt;F&gt;(self_: &amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;, info: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;),&nbsp;</span></code><a class='srclink' href='../src/combine/stream/easy.rs.html#330-336' title='goto source code'>[src]</a></h4><h4 id='method.is_unexpected_end_of_input-2' class="method hidden"><code id='is_unexpected_end_of_input.v-3'>fn <a href='#method.is_unexpected_end_of_input-2' class='fnname'>is_unexpected_end_of_input</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/combine/stream/easy.rs.html#338-340' title='goto source code'>[src]</a></h4><h4 id='method.into_other-2' class="method hidden"><code id='into_other.v-3'>fn <a href='#method.into_other-2' class='fnname'>into_other</a>&lt;T&gt;(self) -&gt; T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../combine/trait.ParseError.html" title="trait combine::ParseError">ParseError</a>&lt;Item, Range, Position&gt;,&nbsp;</span></code><a class='srclink' href='../src/combine/stream/easy.rs.html#343-348' title='goto source code'>[src]</a></h4><h4 id='method.merge-3' class="method"><code id='merge.v-3'>fn <a href='../combine/trait.ParseError.html#method.merge' class='fnname'>merge</a>(self, other: Self) -&gt; Self</code><a class='srclink' href='../src/combine/error.rs.html#301-303' title='goto source code'>[src]</a></h4><h4 id='method.add_expected-3' class="method"><code id='add_expected.v-3'>fn <a href='../combine/trait.ParseError.html#method.add_expected' class='fnname'>add_expected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#311-313' title='goto source code'>[src]</a></h4><h4 id='method.add_unexpected-3' class="method"><code id='add_unexpected.v-3'>fn <a href='../combine/trait.ParseError.html#method.add_unexpected' class='fnname'>add_unexpected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#315-317' title='goto source code'>[src]</a></h4><h4 id='method.add_message-3' class="method"><code id='add_message.v-3'>fn <a href='../combine/trait.ParseError.html#method.add_message' class='fnname'>add_message</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#319-321' title='goto source code'>[src]</a></h4><h4 id='method.clear_expected-3' class="method"><code id='clear_expected.v-3'>fn <a href='../combine/trait.ParseError.html#method.clear_expected' class='fnname'>clear_expected</a>(&amp;mut self)</code><a class='srclink' href='../src/combine/error.rs.html#329' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParseError%3CItem%2C%20Range%2C%20Position%3E-3' class='impl'><code class='in-band'>impl&lt;Item, Range, Position&gt; ParseError&lt;Item, Range, Position&gt; for <a class="struct" href="../combine/stream/easy/struct.Errors.html" title="struct combine::stream::easy::Errors">Errors</a>&lt;Item, Range, Position&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Item: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Range: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Position: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,&nbsp;</span></code><a href='#impl-ParseError%3CItem%2C%20Range%2C%20Position%3E-3' class='anchor'></a><a class='srclink' href='../src/combine/stream/easy.rs.html#351-428' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.StreamError-4' class="type"><code id='StreamError.t-4'>type <a href='#associatedtype.StreamError-4' class="type">StreamError</a> = <a class="enum" href="../combine/stream/easy/enum.Error.html" title="enum combine::stream::easy::Error">Error</a>&lt;Item, Range&gt;</code></h4><h4 id='method.empty-3' class="method hidden"><code id='empty.v-4'>fn <a href='#method.empty-3' class='fnname'>empty</a>(pos: Position) -&gt; Self</code><a class='srclink' href='../src/combine/stream/easy.rs.html#360-362' title='goto source code'>[src]</a></h4><h4 id='method.from_error-3' class="method hidden"><code id='from_error.v-4'>fn <a href='#method.from_error-3' class='fnname'>from_error</a>(position: Position, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>) -&gt; Self</code><a class='srclink' href='../src/combine/stream/easy.rs.html#364-366' title='goto source code'>[src]</a></h4><h4 id='method.set_position-3' class="method hidden"><code id='set_position.v-4'>fn <a href='#method.set_position-3' class='fnname'>set_position</a>(&amp;mut self, position: Position)</code><a class='srclink' href='../src/combine/stream/easy.rs.html#369-371' title='goto source code'>[src]</a></h4><h4 id='method.merge-4' class="method hidden"><code id='merge.v-4'>fn <a href='#method.merge-4' class='fnname'>merge</a>(self, other: Self) -&gt; Self</code><a class='srclink' href='../src/combine/stream/easy.rs.html#374-376' title='goto source code'>[src]</a></h4><h4 id='method.add-3' class="method hidden"><code id='add.v-4'>fn <a href='#method.add-3' class='fnname'>add</a>(&amp;mut self, err: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>)</code><a class='srclink' href='../src/combine/stream/easy.rs.html#379-381' title='goto source code'>[src]</a></h4><h4 id='method.set_expected-3' class="method hidden"><code id='set_expected.v-4'>fn <a href='#method.set_expected-3' class='fnname'>set_expected</a>&lt;F&gt;(self_: &amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;, info: Self::<a class="type" href="../combine/trait.ParseError.html#associatedtype.StreamError" title="type combine::ParseError::StreamError">StreamError</a>, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="../combine/error/struct.Tracked.html" title="struct combine::error::Tracked">Tracked</a>&lt;Self&gt;),&nbsp;</span></code><a class='srclink' href='../src/combine/stream/easy.rs.html#384-405' title='goto source code'>[src]</a></h4><h4 id='method.clear_expected-4' class="method hidden"><code id='clear_expected.v-4'>fn <a href='#method.clear_expected-4' class='fnname'>clear_expected</a>(&amp;mut self)</code><a class='srclink' href='../src/combine/stream/easy.rs.html#407-412' title='goto source code'>[src]</a></h4><h4 id='method.is_unexpected_end_of_input-3' class="method hidden"><code id='is_unexpected_end_of_input.v-4'>fn <a href='#method.is_unexpected_end_of_input-3' class='fnname'>is_unexpected_end_of_input</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/combine/stream/easy.rs.html#414-416' title='goto source code'>[src]</a></h4><h4 id='method.into_other-3' class="method hidden"><code id='into_other.v-4'>fn <a href='#method.into_other-3' class='fnname'>into_other</a>&lt;T&gt;(self) -&gt; T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../combine/trait.ParseError.html" title="trait combine::ParseError">ParseError</a>&lt;Item, Range, Position&gt;,&nbsp;</span></code><a class='srclink' href='../src/combine/stream/easy.rs.html#419-427' title='goto source code'>[src]</a></h4><h4 id='method.add_expected-4' class="method"><code id='add_expected.v-4'>fn <a href='../combine/trait.ParseError.html#method.add_expected' class='fnname'>add_expected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#311-313' title='goto source code'>[src]</a></h4><h4 id='method.add_unexpected-4' class="method"><code id='add_unexpected.v-4'>fn <a href='../combine/trait.ParseError.html#method.add_unexpected' class='fnname'>add_unexpected</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#315-317' title='goto source code'>[src]</a></h4><h4 id='method.add_message-4' class="method"><code id='add_message.v-4'>fn <a href='../combine/trait.ParseError.html#method.add_message' class='fnname'>add_message</a>(&amp;mut self, info: <a class="enum" href="../combine/error/enum.Info.html" title="enum combine::error::Info">Info</a>&lt;Item, Range&gt;)</code><a class='srclink' href='../src/combine/error.rs.html#319-321' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
src="../implementors/combine/trait.ParseError.js">
</script></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "combine";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>