220 lines
32 KiB
HTML
220 lines
32 KiB
HTML
<!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'>−</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<T, W, E> {
|
||
WOk(T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><W>),
|
||
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, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><W>)</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<T, W, E> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E></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>(&self) -> <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>(&self) -> <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>(&self) -> <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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T></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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><E></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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T></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><U, F>(self, op: F) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><U, W, E> <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>(T) -> U, </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><U, F>(self, op: F) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, U> <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>(E) -> U, </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><U, F>(self, op: F) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, U, E> <span class="where fmt-newline">where<br> 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) -> U, </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><U>(self, res: <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><U, W, E>) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><U, W, E></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><U, V, F>(self, op: F) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><U, V, E> <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>(T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><W>) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><U, V, E>, </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>'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><U>(self, res: <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, U>) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, U></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><U, F>(self, op: F) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, F> <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>(E) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, F>, </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>'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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E></code></span></h4>
|
||
<div class='docblock'><p>Convert this <code>WResult<T, W, E></code> to a <code>Result<T, E></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) -> <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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><W, E>></code></span></h4>
|
||
<div class='docblock'><p>Convert this <code>WResult<T, W, E></code> to a <code>Result<T, Result<W, E>></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) -> 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) -> 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><F>(self, op: F) -> T <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>(E) -> T, </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>'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<T, E> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, E, E></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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><E></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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E></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><F>(self, op: F) -> T <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>(E) -> T, </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>'s error or first warning.</p>
|
||
</div></div><h3 class='impl'><span class='in-band'><code>impl<T, W, E> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>, </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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T></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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E></code></span></h4>
|
||
<div class='docblock'><p>Convert this <code>WResult<T, W, E></code> to a <code>Result<T, E></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) -> 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><F>(self, op: F) -> T <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>(E) -> T, </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>'s error value.</p>
|
||
</div></div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>> <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><T, W, E></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>(&self, __arg_0: &<a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E>) -> <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>(&self, __arg_0: &<a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E>) -> <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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>, W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>, E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>> <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><T, W, E></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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>> <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><T, W, E></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><__HTWE: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, __arg_0: &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><H>(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[Self]</a>, state: &mut H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <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><T, W, E></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>(&self) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E></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>(&mut self, source: &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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <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><T, W, E></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>(&self, __arg_0: &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></h4>
|
||
<div class='docblock'><p>Formats the value using the given formatter.</p>
|
||
</div></div><h3 class='impl'><span class='in-band'><code>impl<T, W, E> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E>> for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E></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><T, E>) -> <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E></code></span></h4>
|
||
<div class='docblock'><p>Performs the conversion.</p>
|
||
</div></div><h3 class='impl'><span class='in-band'><code>impl<A, T, W, E> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html" title="trait core::iter::traits::FromIterator">FromIterator</a><<a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><A, W, E>> for <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><T, W, E> <span class="where fmt-newline">where<br> 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><A>, </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><I>(iter: I) -> Self <span class="where fmt-newline">where<br> 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><Item = <a class="enum" href="../w_result/enum.WResult.html" title="enum w_result::WResult">WResult</a><A, W, E>>, </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>⇤</dt>
|
||
<dd>Move up in search results</dd>
|
||
<dt>⇥</dt>
|
||
<dd>Move down in search results</dd>
|
||
<dt>⏎</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> |