123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <!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 `Error` struct in crate `failure`.">
- <meta name="keywords" content="rust, rustlang, rust-lang, Error">
- <title>failure::Error - 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="../main.css" id="themeStyle">
- <script src="../storage.js"></script>
-
-
-
- </head>
- <body class="rustdoc struct">
- <!--[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">☰</div>
-
- <p class='location'>Struct Error</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.cause">cause</a><a href="#method.backtrace">backtrace</a><a href="#method.context">context</a><a href="#method.compat">compat</a><a href="#method.downcast">downcast</a><a href="#method.root_cause">root_cause</a><a href="#method.downcast_ref">downcast_ref</a><a href="#method.downcast_mut">downcast_mut</a><a href="#method.causes">causes</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-From%3CError%3E">From<Error></a><a href="#impl-ResultExt%3CT%2C%20Error%3E">ResultExt<T, Error></a><a href="#impl-From%3CF%3E">From<F></a><a href="#impl-Display">Display</a><a href="#impl-Debug">Debug</a></div></div><p class='location'><a href='index.html'>failure</a></p><script>window.sidebarCurrent = {name: 'Error', ty: 'struct', 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">
- <input class="search-input" name="search"
- autocomplete="off"
- placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
- type="search">
- </div>
- </form>
- </nav>
- <section id='main' class="content">
- <h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>failure</a>::<wbr><a class="struct" href=''>Error</a></span><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'>−</span>]
- </a>
- </span><a class='srclink' href='../src/failure/error.rs.html#21-23' title='goto source code'>[src]</a></span></h1>
- <pre class='rust struct'>pub struct Error { /* fields omitted */ }</pre><div class='docblock'><p>The <code>Error</code> type, which can contain any failure.</p>
- <p>Functions which accumulate many kinds of errors should return this type.
- All failures can be converted into it, so functions which catch those
- errors can be tried with <code>?</code> inside of a function that returns this kind
- of error.</p>
- <p>In addition to implementing <code>Debug</code> and <code>Display</code>, this type carries <code>Backtrace</code>
- information, and can be downcast into the failure that underlies it for
- more detailed inspection.</p>
- </div>
- <h2 id='methods' class='small-section-header'>
- Methods<a href='#methods' class='anchor'></a>
- </h2>
- <h3 id='impl' class='impl'><span class='in-band'><code>impl <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a></code><a href='#impl' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#42-138' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.cause' class="method"><span id='cause.v' class='invisible'><code>pub fn <a href='#method.cause' class='fnname'>cause</a>(&self) -> &<a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#46-48' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a reference to the underlying cause of this <code>Error</code>. Unlike the
- method on <code>Fail</code>, this does not return an <code>Option</code>. The <code>Error</code> type
- always has an underlying failure.</p>
- </div><h4 id='method.backtrace' class="method"><span id='backtrace.v' class='invisible'><code>pub fn <a href='#method.backtrace' class='fnname'>backtrace</a>(&self) -> &<a class="struct" href="../failure/struct.Backtrace.html" title="struct failure::Backtrace">Backtrace</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#55-57' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Gets a reference to the <code>Backtrace</code> for this <code>Error</code>.</p>
- <p>If the failure this wrapped carried a backtrace, that backtrace will
- be returned. Otherwise, the backtrace will have been constructed at
- the point that failure was cast into the <code>Error</code> type.</p>
- </div><h4 id='method.context' class="method"><span id='context.v' class='invisible'><code>pub fn <a href='#method.context' class='fnname'>context</a><D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static>(<br> self, <br> context: D<br>) -> <a class="struct" href="../failure/struct.Context.html" title="struct failure::Context">Context</a><D></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#72-74' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Provides context for this <code>Error</code>.</p>
- <p>This can provide additional information about this error, appropriate
- to the semantics of the current layer. That is, if you have a
- lower-level error, such as an IO error, you can provide additional context
- about what that error means in the context of your function. This
- gives users of this function more information about what has gone
- wrong.</p>
- <p>This takes any type that implements <code>Display</code>, as well as
- <code>Send</code>/<code>Sync</code>/<code>'static</code>. In practice, this means it can take a <code>String</code>
- or a string literal, or a failure, or some other custom context-carrying
- type.</p>
- </div><h4 id='method.compat' class="method"><span id='compat.v' class='invisible'><code>pub fn <a href='#method.compat' class='fnname'>compat</a>(self) -> <a class="struct" href="../failure/struct.Compat.html" title="struct failure::Compat">Compat</a><<a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#81-83' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Wraps <code>Error</code> in a compatibility type.</p>
- <p>This type implements the <code>Error</code> trait from <code>std::error</code>. If you need
- to pass failure's <code>Error</code> to an interface that takes any <code>Error</code>, you
- can use this method to get a compatible type.</p>
- </div><h4 id='method.downcast' class="method"><span id='downcast.v' class='invisible'><code>pub fn <a href='#method.downcast' class='fnname'>downcast</a><T: <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#91-108' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Attempts to downcast this <code>Error</code> to a particular <code>Fail</code> type.</p>
- <p>This downcasts by value, returning an owned <code>T</code> if the underlying
- failure is of the type <code>T</code>. For this reason it returns a <code>Result</code> - in
- the case that the underlying error is of a different type, the
- original <code>Error</code> is returned.</p>
- </div><h4 id='method.root_cause' class="method"><span id='root_cause.v' class='invisible'><code>pub fn <a href='#method.root_cause' class='fnname'>root_cause</a>(&self) -> &<a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#112-114' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns the "root cause" of this error - the last value in the
- cause chain which does not return an underlying <code>cause</code>.</p>
- </div><h4 id='method.downcast_ref' class="method"><span id='downcast_ref.v' class='invisible'><code>pub fn <a href='#method.downcast_ref' class='fnname'>downcast_ref</a><T: <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#120-122' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Attempts to downcast this <code>Error</code> to a particular <code>Fail</code> type by
- reference.</p>
- <p>If the underlying error is not of type <code>T</code>, this will return <code>None</code>.</p>
- </div><h4 id='method.downcast_mut' class="method"><span id='downcast_mut.v' class='invisible'><code>pub fn <a href='#method.downcast_mut' class='fnname'>downcast_mut</a><T: <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#128-130' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Attempts to downcast this <code>Error</code> to a particular <code>Fail</code> type by
- mutable reference.</p>
- <p>If the underlying error is not of type <code>T</code>, this will return <code>None</code>.</p>
- </div><h4 id='method.causes' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <a class="struct" href="../failure/struct.Causes.html" title="struct failure::Causes">Causes</a><'f></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../failure/struct.Causes.html" title="struct failure::Causes">Causes</a><'f></h3><code class="content"><span class="where fmt-newline">impl<'f> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="struct" href="../failure/struct.Causes.html" title="struct failure::Causes">Causes</a><'f></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &'f <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>;</span></code></div></div><span id='causes.v' class='invisible'><code>pub fn <a href='#method.causes' class='fnname'>causes</a>(&self) -> <a class="struct" href="../failure/struct.Causes.html" title="struct failure::Causes">Causes</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#135-137' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a iterator over the causes of the <code>Error</code>, beginning with
- the failure returned by the <code>cause</code> method and ending with the failure
- returned by <code>root_cause</code>.</p>
- </div></div>
- <h2 id='implementations' class='small-section-header'>
- Trait Implementations<a href='#implementations' class='anchor'></a>
- </h2>
- <h3 id='impl-From%3CError%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">StdError</a>></code><a href='#impl-From%3CError%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/compat.rs.html#37-41' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><R></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><R></h3><code class="content"><span class="where fmt-newline">impl<R> <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><R> <span class="where fmt-newline">where<br> R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></span><span class="where fmt-newline">impl<W> <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><W> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></span><span class="where fmt-newline">impl<I> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><I> <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = <I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><span id='from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(error: <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">StdError</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/compat.rs.html#38-40' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-ResultExt%3CT%2C%20Error%3E' class='impl'><span class='in-band'><code>impl<T> <a class="trait" href="../failure/trait.ResultExt.html" title="trait failure::ResultExt">ResultExt</a><T, <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>> for <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>></code><a href='#impl-ResultExt%3CT%2C%20Error%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/result_ext.rs.html#49-69' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.compat-1' class="method"><span id='compat.v-1' class='invisible'><code>fn <a href='../failure/trait.ResultExt.html#tymethod.compat' class='fnname'>compat</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <a class="struct" href="../failure/struct.Compat.html" title="struct failure::Compat">Compat</a><<a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/result_ext.rs.html#50-52' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Wraps the error in <code>Compat</code> to make it compatible with older error handling APIs that expect <code>std::error::Error</code>. <a href="../failure/trait.ResultExt.html#tymethod.compat">Read more</a></p>
- </div><h4 id='method.context-1' class="method"><span id='context.v-1' class='invisible'><code>fn <a href='../failure/trait.ResultExt.html#tymethod.context' class='fnname'>context</a><D>(self, context: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <a class="struct" href="../failure/struct.Context.html" title="struct failure::Context">Context</a><D>> <span class="where fmt-newline">where<br> D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/result_ext.rs.html#54-58' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Wraps the error type in a context type.</p>
- </div><h4 id='method.with_context' class="method"><span id='with_context.v' class='invisible'><code>fn <a href='../failure/trait.ResultExt.html#tymethod.with_context' class='fnname'>with_context</a><F, D>(self, f: F) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <a class="struct" href="../failure/struct.Context.html" title="struct failure::Context">Context</a><D>> <span class="where fmt-newline">where<br> 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>(&<a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a>) -> D,<br> D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/result_ext.rs.html#60-68' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Wraps the error type in a context type generated by looking at the error value. <a href="../failure/trait.ResultExt.html#tymethod.with_context">Read more</a></p>
- </div></div><h3 id='impl-From%3CF%3E' class='impl'><span class='in-band'><code>impl<F: <a class="trait" href="../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><F> for <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a></code><a href='#impl-From%3CF%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#30-40' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(failure: F) -> <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#31-39' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-Display' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a></code><a href='#impl-Display' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#140-144' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#141-143' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
- </div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../failure/struct.Error.html" title="struct failure::Error">Error</a></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#146-154' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/failure/error.rs.html#147-153' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
- </div></div></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>⏎</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>
- </div>
- </div>
- </aside>
-
- <script>
- window.rootPath = "../";
- window.currentCrate = "failure";
- </script>
- <script src="../main.js"></script>
- <script defer src="../search-index.js"></script>
- </body>
- </html>
|