pnmixer-rust/w_result/enum.WResult.html
2017-07-16 23:37:37 +02:00

220 lines
32 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 `WResult` enum in crate `w_result`.">
<meta name="keywords" content="rust, rustlang, rust-lang, WResult">
<title>w_result::WResult - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css">
<link rel="stylesheet" type="text/css" href="../main.css">
</head>
<body class="rustdoc enum">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<p class='location'>Enum WResult</p><div class="block items"><ul><li><a href="#variants">Variants</a></li><li><a href="#methods">Methods</a></li><li><a href="#implementations">Trait Implementations</a></li></ul></div><p class='location'><a href='index.html'>w_result</a></p><script>window.sidebarCurrent = {name: 'WResult', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</nav>
<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'>Enum <a href='index.html'>w_result</a>::<wbr><a class="enum" href=''>WResult</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'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/w_result/lib.rs.html#21-26' title='goto source code'>[src]</a></span></h1>
<pre class='rust enum'><div class="docblock attributes">#[must_use]
</div>pub enum WResult&lt;T, W, E&gt; {
WOk(T,&nbsp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;W&gt;),
WErr(E),
}</pre><div class='docblock'><p>A result type that carries warnings.</p>
</div><h2 id='variants' class='variants'>Variants</h2>
<span id='variant.WOk' class='variant'><span id='WOk.v' class='invisible'><code>WOk(T,&nbsp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;W&gt;)</code></span></span><div class='docblock'><p>Contains the success value along with any accumulated warnings.</p>
</div><span id='variant.WErr' class='variant'><span id='WErr.v' class='invisible'><code>WErr(E)</code></span></span><div class='docblock'><p>Contains the error value.</p>
</div><h2 id='methods'>Methods</h2><h3 class='impl'><span class='in-band'><code>impl&lt;T, W, E&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#28-216' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.is_ok' class="method"><span id='is_ok.v' class='invisible'><code>fn <a href='#method.is_ok' class='fnname'>is_ok</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns true if this <code>WResult</code> is <code>WOk</code></p>
</div><h4 id='method.is_err' class="method"><span id='is_err.v' class='invisible'><code>fn <a href='#method.is_err' class='fnname'>is_err</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns true if this <code>WResult</code> is <code>WErr</code></p>
</div><h4 id='method.is_warn_or_err' class="method"><span id='is_warn_or_err.v' class='invisible'><code>fn <a href='#method.is_warn_or_err' class='fnname'>is_warn_or_err</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns true if this <code>WResult</code> is <code>WErr</code> or if it is <code>WOk</code> but contains warnings.</p>
</div><h4 id='method.ok_discard' class="method"><span id='ok_discard.v' class='invisible'><code>fn <a href='#method.ok_discard' class='fnname'>ok_discard</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</code></span></h4>
<div class='docblock'><p>Converts this <code>WResult</code> to an <code>Option</code> by taking the taking the <code>WOk</code> value or mapping
<code>WErr</code> to <code>None</code>. Any warnings are discarded.</p>
</div><h4 id='method.err' class="method"><span id='err.v' class='invisible'><code>fn <a href='#method.err' class='fnname'>err</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;E&gt;</code></span></h4>
<div class='docblock'><p>Converts this <code>WResult</code> to an <code>Option</code> by taking the <code>WErr</code> variant or mapping <code>WOk</code> to
<code>None</code>.</p>
</div><h4 id='method.ok_werr' class="method"><span id='ok_werr.v' class='invisible'><code>fn <a href='#method.ok_werr' class='fnname'>ok_werr</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</code></span></h4>
<div class='docblock'><p>Converts this <code>WResult</code> to an <code>Option</code> by taking the <code>WOk</code> variant or mapping <code>WErr</code> to
<code>None</code>. This function is similar to <code>ok_discard</code> except if there are any warnings then they
are treated as errors and this function returns <code>None</code>.</p>
</div><h4 id='method.map' class="method"><span id='map.v' class='invisible'><code>fn <a href='#method.map' class='fnname'>map</a>&lt;U, F&gt;(self, op: F) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;U, W, E&gt; <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>(T) -&gt; U,&nbsp;</span></code></span></h4>
<div class='docblock'><p>Map the <code>WOk</code> value of this <code>WResult</code>, if any.</p>
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><code>fn <a href='#method.map_err' class='fnname'>map_err</a>&lt;U, F&gt;(self, op: F) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, U&gt; <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>(E) -&gt; U,&nbsp;</span></code></span></h4>
<div class='docblock'><p>Map the <code>WErr</code> value of this <code>WResult</code>, if any.</p>
</div><h4 id='method.map_warnings' class="method"><span id='map_warnings.v' class='invisible'><code>fn <a href='#method.map_warnings' class='fnname'>map_warnings</a>&lt;U, F&gt;(self, op: F) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, U, E&gt; <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.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(W) -&gt; U,&nbsp;</span></code></span></h4>
<div class='docblock'><p>Map the warnings of this <code>WResult</code>.</p>
</div><h4 id='method.and' class="method"><span id='and.v' class='invisible'><code>fn <a href='#method.and' class='fnname'>and</a>&lt;U&gt;(self, res: <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;U, W, E&gt;) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;U, W, E&gt;</code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code>, returns <code>res</code> with the warnings from <code>self</code> accumulated into the final
result. Otherwise returns the <code>WErr</code> value of <code>self</code>.</p>
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><code>fn <a href='#method.and_then' class='fnname'>and_then</a>&lt;U, V, F&gt;(self, op: F) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;U, V, E&gt; <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>(T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;W&gt;) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;U, V, E&gt;,&nbsp;</span></code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code>, returns the result of applying <code>op</code> to <code>self</code>&#39;s value and warnings.
Otherwise returns the <code>WErr</code> value of <code>self</code>.</p>
</div><h4 id='method.or' class="method"><span id='or.v' class='invisible'><code>fn <a href='#method.or' class='fnname'>or</a>&lt;U&gt;(self, res: <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, U&gt;) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, U&gt;</code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code> returns <code>self</code>. Otherwise returns <code>res</code>.</p>
</div><h4 id='method.or_else' class="method"><span id='or_else.v' class='invisible'><code>fn <a href='#method.or_else' class='fnname'>or_else</a>&lt;U, F&gt;(self, op: F) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, F&gt; <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>(E) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, F&gt;,&nbsp;</span></code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code> returns <code>self</code>. Otherwise returns the result of applying <code>op</code> to
<code>self</code>&#39;s error value.</p>
</div><h4 id='method.result_discard' class="method"><span id='result_discard.v' class='invisible'><code>fn <a href='#method.result_discard' class='fnname'>result_discard</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, E&gt;</code></span></h4>
<div class='docblock'><p>Convert this <code>WResult&lt;T, W, E&gt;</code> to a <code>Result&lt;T, E&gt;</code>, discarding any errors. See also
<code>result_log</code> for a version of this function that logs warnings.</p>
</div><h4 id='method.result_werr_res' class="method"><span id='result_werr_res.v' class='invisible'><code>fn <a href='#method.result_werr_res' class='fnname'>result_werr_res</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;W, E&gt;&gt;</code></span></h4>
<div class='docblock'><p>Convert this <code>WResult&lt;T, W, E&gt;</code> to a <code>Result&lt;T, Result&lt;W, E&gt;&gt;</code>. This is a way to convert
from <code>WResult</code> to <code>Result</code>, treating warnings as errors but allowing <code>W</code> and <code>E</code> to be two
different types. See also <code>result_werr</code> for when <code>W</code> and <code>E</code> are the same type. If there
are multiple warnings the first is returned.</p>
</div><h4 id='method.unwrap_discard_or' class="method"><span id='unwrap_discard_or.v' class='invisible'><code>fn <a href='#method.unwrap_discard_or' class='fnname'>unwrap_discard_or</a>(self, optb: T) -&gt; T</code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code>, unwraps it discarding any warnings. Otherwise returns <code>optb</code>. See also
<code>unwrap_log_or</code> for a version of this function that logs warnings.</p>
</div><h4 id='method.unwrap_or_werr' class="method"><span id='unwrap_or_werr.v' class='invisible'><code>fn <a href='#method.unwrap_or_werr' class='fnname'>unwrap_or_werr</a>(self, optb: T) -&gt; T</code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code> and has no warnings, unwraps it. Otherwise returns <code>optb</code>.</p>
</div><h4 id='method.unwrap_discard_or_else' class="method"><span id='unwrap_discard_or_else.v' class='invisible'><code>fn <a href='#method.unwrap_discard_or_else' class='fnname'>unwrap_discard_or_else</a>&lt;F&gt;(self, op: F) -&gt; T <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>(E) -&gt; T,&nbsp;</span></code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code>, unwraps it discarding any warnings. Otherwise returns the result of
applying <code>op</code> to <code>self</code>&#39;s error value. See also <code>unwrap_log_or_else</code> for a version of this
function that logs warnings.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl&lt;T, E&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, E, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#218-263' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.err_werr' class="method"><span id='err_werr.v' class='invisible'><code>fn <a href='#method.err_werr' class='fnname'>err_werr</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;E&gt;</code></span></h4>
<div class='docblock'><p>Take the error value of this <code>WResult</code>, if any. Otherwise returns the first warning, if
any. This function is the same as <code>WResult::err</code> except that warnings are treated as
errors.</p>
</div><h4 id='method.result_werr' class="method"><span id='result_werr.v' class='invisible'><code>fn <a href='#method.result_werr' class='fnname'>result_werr</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, E&gt;</code></span></h4>
<div class='docblock'><p>Convert this <code>WResult</code> to a <code>Result</code> but treat warnings as errors. If there are multiple
warnings the first is returned.</p>
</div><h4 id='method.unwrap_or_else_werr' class="method"><span id='unwrap_or_else_werr.v' class='invisible'><code>fn <a href='#method.unwrap_or_else_werr' class='fnname'>unwrap_or_else_werr</a>&lt;F&gt;(self, op: F) -&gt; T <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>(E) -&gt; T,&nbsp;</span></code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code> and has no warnings then unwrap it. Otherwise return the result of
applying <code>op</code> to <code>self</code>&#39;s error or first warning.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl&lt;T, W, E&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#265-325' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.ok_log' class="method"><span id='ok_log.v' class='invisible'><code>fn <a href='#method.ok_log' class='fnname'>ok_log</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</code></span></h4>
<div class='docblock'><p>Take the <code>WOk</code> value of <code>self</code>, if any. Warnings are logged using the <code>warn!</code> macro before
being discarded.</p>
</div><h4 id='method.result_log' class="method"><span id='result_log.v' class='invisible'><code>fn <a href='#method.result_log' class='fnname'>result_log</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, E&gt;</code></span></h4>
<div class='docblock'><p>Convert this <code>WResult&lt;T, W, E&gt;</code> to a <code>Result&lt;T, E&gt;</code>. Warnings are logged using the <code>warn!</code>
macro before being discarded.</p>
</div><h4 id='method.unwrap_log_or' class="method"><span id='unwrap_log_or.v' class='invisible'><code>fn <a href='#method.unwrap_log_or' class='fnname'>unwrap_log_or</a>(self, optb: T) -&gt; T</code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code>, unwrap it and log any warnings using the <code>warn!</code> macro. Otherwise
return <code>optb</code>.</p>
</div><h4 id='method.unwrap_log_or_else' class="method"><span id='unwrap_log_or_else.v' class='invisible'><code>fn <a href='#method.unwrap_log_or_else' class='fnname'>unwrap_log_or_else</a>&lt;F&gt;(self, op: F) -&gt; T <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>(E) -&gt; T,&nbsp;</span></code></span></h4>
<div class='docblock'><p>If <code>self</code> is <code>WOk</code>, unwrap it and log any warnings using the <code>warn!</code> macro. Otherwise
return the result of applying <code>op</code> to <code>self</code>&#39;s error value.</p>
</div></div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, E:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#20' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, __arg_0: &amp;<a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, __arg_0: &amp;<a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>, W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>, E:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#20' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'></div><h3 class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, E:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#20' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.hash' class="method"><span id='hash.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a>&lt;__HTWE:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>&gt;(&amp;self, __arg_0: &amp;mut __HTWE)</code></span></h4>
<div class='docblock'><p>Feeds this value into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div><h4 id='method.hash_slice' class="method"><span id='hash_slice.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a>&lt;H&gt;(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[Self]</a>, state: &amp;mut H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code><div class='since' title='Stable since Rust version 1.3.0'>1.3.0</div></span></h4>
<div class='docblock'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, E:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#20' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span></h4>
<div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: &amp;Self)</code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, E:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <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="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#20' 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.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, __arg_0: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
<div class='docblock'><p>Formats the value using the given formatter.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl&lt;T, W, E&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, E&gt;&gt; for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#327-334' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from' class="method"><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>(val: <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, E&gt;) -&gt; <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt;</code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl&lt;A, T, W, E&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html" title="trait core::iter::traits::FromIterator">FromIterator</a>&lt;<a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;A, W, E&gt;&gt; for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;T, W, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html" title="trait core::iter::traits::FromIterator">FromIterator</a>&lt;A&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/w_result/lib.rs.html#336-374' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_iter' class="method"><span id='from_iter.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html#tymethod.from_iter' class='fnname'>from_iter</a>&lt;I&gt;(iter: I) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html" title="trait core::iter::traits::IntoIterator">IntoIterator</a>&lt;Item = <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a>&lt;A, W, E&gt;&gt;,&nbsp;</span></code></span></h4>
<div class='docblock'><p>Creates a value from an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html#tymethod.from_iter">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>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt>&larrb;</dt>
<dd>Move up in search results</dd>
<dt>&rarrb;</dt>
<dd>Move down in search results</dd>
<dt>&#9166;</dt>
<dd>Go to active search result</dd>
<dt>+</dt>
<dd>Collapse/expand 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 = "w_result";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>