<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../../winnow/all.html"title="show sidebar"></a></div><inputclass="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"><divid="help-button"tabindex="-1"><ahref="../../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Enum <ahref="../index.html">winnow</a>::<wbr><ahref="index.html">error</a>::<wbr><aclass="enum"href="#">TreeError</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../../src/winnow/error.rs.html#777-789">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub enum TreeError<I, C = <aclass="enum"href="enum.StrContext.html"title="enum winnow::error::StrContext">StrContext</a>> {
}</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Trace all error paths, particularly for tests</p>
</div></details><h2id="variants"class="variants section-header">Variants<ahref="#variants"class="anchor">§</a></h2><divclass="variants"><sectionid="variant.Base"class="variant"><ahref="#variant.Base"class="anchor">§</a><h3class="code-header">Base(<aclass="struct"href="struct.TreeErrorBase.html"title="struct winnow::error::TreeErrorBase">TreeErrorBase</a><I>)</h3></section><divclass="docblock"><p>Initial error that kicked things off</p>
</div><sectionid="variant.Stack"class="variant"><ahref="#variant.Stack"class="anchor">§</a><h3class="code-header">Stack</h3></section><divclass="sub-variant"id="variant.Stack.fields"><h4>Fields</h4><divclass="sub-variant-field"><spanid="variant.Stack.field.base"class="section-header"><ahref="#variant.Stack.field.base"class="anchor field">§</a><code>base: <aclass="struct"href="https://doc.rust-lang.org/1.77.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><Self></code></span><divclass="docblock"><p>Initial error that kicked things off</p>
</div></div><divclass="sub-variant-field"><spanid="variant.Stack.field.stack"class="section-header"><ahref="#variant.Stack.field.stack"class="anchor field">§</a><code>stack: <aclass="struct"href="https://doc.rust-lang.org/1.77.0/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="enum"href="enum.TreeErrorFrame.html"title="enum winnow::error::TreeErrorFrame">TreeErrorFrame</a><I, C>></code></span><divclass="docblock"><p>Traces added to the error while walking back up the stack</p>
</div><sectionid="variant.Alt"class="variant"><ahref="#variant.Alt"class="anchor">§</a><h3class="code-header">Alt(<aclass="struct"href="https://doc.rust-lang.org/1.77.0/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><Self>)</h3></section><divclass="docblock"><p>All failed branches of an <code>alt</code></p>
) -> Self</h4></section></summary><divclass='docblock'>Append to an existing error custom data <ahref="trait.AddContext.html#method.add_context">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-TreeError%3CI,+C%3E"class="impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#775">source</a><ahref="#impl-Debug-for-TreeError%3CI,+C%3E"class="anchor">§</a><h3class="code-header">impl<I: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a>, C: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a>><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="enum"href="enum.TreeError.html"title="enum winnow::error::TreeError">TreeError</a><I, C></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#775">source</a><ahref="#method.fmt"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.77.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Display-for-TreeError%3CI,+C%3E"class="impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#1066-1070">source</a><ahref="#impl-Display-for-TreeError%3CI,+C%3E"class="anchor">§</a><h3class="code-header">impl<I: <aclass="trait"href="../stream/trait.Stream.html"title="trait winnow::stream::Stream">Stream</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a>, C: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a>><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> for <aclass="enum"href="enum.TreeError.html"title="enum winnow::error::TreeError">TreeError</a><I, C></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt-1"class="method trait-impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#1067-1069">source</a><ahref="#method.fmt-1"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Display.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.77.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Error-for-TreeError%3CI,+C%3E"class="impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#1035-1040">source</a><a
I: <aclass="trait"href="../stream/trait.Stream.html"title="trait winnow::stream::Stream">Stream</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_external_error"class="method trait-impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#963-969">source</a><ahref="#method.from_external_error"class="anchor">§</a><h4class="code-header">fn <ahref="trait.FromExternalError.html#tymethod.from_external_error"class="fn">from_external_error</a>(input: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.reference.html">&I</a>, kind: <aclass="enum"href="enum.ErrorKind.html"title="enum winnow::error::ErrorKind">ErrorKind</a>, e: E) -> Self</h4></section></summary><divclass='docblock'>Like <ahref="trait.ParserError.html#tymethod.from_error_kind"title="associated function winnow::error::ParserError::from_error_kind"><code>ParserError::from_error_kind</code></a> but also include an external error.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-ParserError%3CI%3E-for-TreeError%3CI,+C%3E"class="impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#889-929">source</a><ahref="#impl-ParserError%3CI%3E-for-TreeError%3CI,+C%3E"class="anchor">§</a><h3class="code-header">impl<I, C><aclass="trait"href="trait.ParserError.html"title="trait winnow::error::ParserError">ParserError</a><I> for <aclass="enum"href="enum.TreeError.html"title="enum winnow::error::TreeError">TreeError</a><I, C><divclass="where">where
I: <aclass="trait"href="../stream/trait.Stream.html"title="trait winnow::stream::Stream">Stream</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from_error_kind"class="method trait-impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#893-899">source</a><ahref="#method.from_error_kind"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ParserError.html#tymethod.from_error_kind"class="fn">from_error_kind</a>(input: <aclass="primitive"href="https://doc.rust-lang.org/1.77.0/std/primitive.reference.html">&I</a>, kind: <aclass="enum"href="enum.ErrorKind.html"title="enum winnow::error::ErrorKind">ErrorKind</a>) -> Self</h4></section></summary><divclass='docblock'>Creates an error from the input position and an <ahref="enum.ErrorKind.html"title="enum winnow::error::ErrorKind"><code>ErrorKind</code></a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.append"class="method trait-impl"><aclass="src rightside"href="../../src/winnow/error.rs.html#901-910">source</a><ahref="#method.append"class="anchor">§</a><h4class="code-header">fn <ahref="trait.ParserError.html#tymethod.append"class="fn">append</a>(
<code><ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-ToString-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/alloc/string.rs.html#2600">source</a><ahref="#impl-ToString-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.77.0/alloc/string/trait.ToString.html"title="trait alloc::string::ToString">ToString</a> for T<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.to_string"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/alloc/string.rs.html#2606">source</a><ahref="#method.to_string"class="anchor">§</a><h4class="code-header">default fn <ahref="https://doc.rust-lang.org/1.77.0/alloc/string/trait.ToString.html#tymethod.to_string"class="fn">to_string</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.77.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass='docblock'>Converts the given value to a <code>String</code>. <ahref="https://doc.rust-lang.org/1.77.0/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#804-806">source</a><ahref="#impl-TryFrom%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.77.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#811">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.77.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#789-791">source</a><ahref="#impl-TryInto%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.0/src/core/convert/mod.rs.html#796">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.77.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>