119 lines
82 KiB
HTML
119 lines
82 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="A struct containing context required for encrypting Sapling and Orchard notes."><meta name="keywords" content="rust, rustlang, rust-lang, NoteEncryption"><title>NoteEncryption in zcash_note_encryption - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg"><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../zcash_note_encryption/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct NoteEncryption</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><div class="sidebar-links"><a href="#method.encrypt_note_plaintext">encrypt_note_plaintext</a><a href="#method.encrypt_outgoing_plaintext">encrypt_outgoing_plaintext</a><a href="#method.epk">epk</a><a href="#method.esk">esk</a><a href="#method.new">new</a><a href="#method.new_with_esk">new_with_esk</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Conv">Conv</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pipe">Pipe</a><a href="#impl-Tap">Tap</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><h2 class="location">Other items in<br><a href="index.html">zcash_note_encryption</a></h2><div id="sidebar-vars" data-name="NoteEncryption" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="index.html">zcash_note_encryption</a>::<wbr><a class="struct" href="#">NoteEncryption</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></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/zcash_note_encryption/lib.rs.html#249-257" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct NoteEncryption<D: <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>> { /* fields omitted */ }</pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A struct containing context required for encrypting Sapling and Orchard notes.</p>
|
||
<p>This struct provides a safe API for encrypting Sapling and Orchard notes. In particular, it
|
||
enforces that fresh ephemeral keys are used for every note, and that the ciphertexts are
|
||
consistent with each other.</p>
|
||
<p>Implements section 4.19 of the
|
||
<a href="https://zips.z.cash/protocol/nu5.pdf#saplingandorchardinband">Zcash Protocol Specification</a>
|
||
NB: the example code is only covering the post-Canopy case.</p>
|
||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">ff</span>;
|
||
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">rand_core</span>;
|
||
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">zcash_primitives</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">ff::Field</span>;
|
||
<span class="kw">use</span> <span class="ident">rand_core::OsRng</span>;
|
||
<span class="kw">use</span> <span class="ident">zcash_primitives</span>::{
|
||
<span class="ident">consensus</span>::{<span class="ident">TEST_NETWORK</span>, <span class="ident">TestNetwork</span>, <span class="ident">NetworkUpgrade</span>, <span class="ident">Parameters</span>},
|
||
<span class="ident">memo::MemoBytes</span>,
|
||
<span class="ident">sapling</span>::{
|
||
<span class="ident">keys</span>::{<span class="ident">OutgoingViewingKey</span>, <span class="ident">prf_expand</span>},
|
||
<span class="ident">note_encryption::sapling_note_encryption</span>,
|
||
<span class="ident">util::generate_random_rseed</span>,
|
||
<span class="ident">Diversifier</span>, <span class="ident">PaymentAddress</span>, <span class="ident">Rseed</span>, <span class="ident">ValueCommitment</span>
|
||
},
|
||
};
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">rng</span> <span class="op">=</span> <span class="ident">OsRng</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">diversifier</span> <span class="op">=</span> <span class="ident">Diversifier</span>([<span class="number">0</span>; <span class="number">11</span>]);
|
||
<span class="kw">let</span> <span class="ident">pk_d</span> <span class="op">=</span> <span class="ident">diversifier</span>.<span class="ident">g_d</span>().<span class="ident">unwrap</span>();
|
||
<span class="kw">let</span> <span class="ident">to</span> <span class="op">=</span> <span class="ident">PaymentAddress::from_parts</span>(<span class="ident">diversifier</span>, <span class="ident">pk_d</span>).<span class="ident">unwrap</span>();
|
||
<span class="kw">let</span> <span class="ident">ovk</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">OutgoingViewingKey</span>([<span class="number">0</span>; <span class="number">32</span>]));
|
||
|
||
<span class="kw">let</span> <span class="ident">value</span> <span class="op">=</span> <span class="number">1000</span>;
|
||
<span class="kw">let</span> <span class="ident">rcv</span> <span class="op">=</span> <span class="ident">jubjub::Fr::random</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">rng</span>);
|
||
<span class="kw">let</span> <span class="ident">cv</span> <span class="op">=</span> <span class="ident">ValueCommitment</span> {
|
||
<span class="ident">value</span>,
|
||
<span class="ident">randomness</span>: <span class="ident">rcv</span>.<span class="ident">clone</span>(),
|
||
};
|
||
<span class="kw">let</span> <span class="ident">height</span> <span class="op">=</span> <span class="ident">TEST_NETWORK</span>.<span class="ident">activation_height</span>(<span class="ident">NetworkUpgrade::Canopy</span>).<span class="ident">unwrap</span>();
|
||
<span class="kw">let</span> <span class="ident">rseed</span> <span class="op">=</span> <span class="ident">generate_random_rseed</span>(<span class="kw-2">&</span><span class="ident">TEST_NETWORK</span>, <span class="ident">height</span>, <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">rng</span>);
|
||
<span class="kw">let</span> <span class="ident">note</span> <span class="op">=</span> <span class="ident">to</span>.<span class="ident">create_note</span>(<span class="ident">value</span>, <span class="ident">rseed</span>).<span class="ident">unwrap</span>();
|
||
<span class="kw">let</span> <span class="ident">cmu</span> <span class="op">=</span> <span class="ident">note</span>.<span class="ident">cmu</span>();
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">enc</span> <span class="op">=</span> <span class="ident">sapling_note_encryption</span>::<span class="op"><</span><span class="kw">_</span>, <span class="ident">TestNetwork</span><span class="op">></span>(<span class="ident">ovk</span>, <span class="ident">note</span>, <span class="ident">to</span>, <span class="ident">MemoBytes::empty</span>(), <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">rng</span>);
|
||
<span class="kw">let</span> <span class="ident">encCiphertext</span> <span class="op">=</span> <span class="ident">enc</span>.<span class="ident">encrypt_note_plaintext</span>();
|
||
<span class="kw">let</span> <span class="ident">outCiphertext</span> <span class="op">=</span> <span class="ident">enc</span>.<span class="ident">encrypt_outgoing_plaintext</span>(<span class="kw-2">&</span><span class="ident">cv</span>.<span class="ident">commitment</span>().<span class="ident">into</span>(), <span class="kw-2">&</span><span class="ident">cmu</span>, <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">rng</span>);</pre></div>
|
||
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#259-353" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<D: <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>> <a class="struct" href="struct.NoteEncryption.html" title="struct zcash_note_encryption::NoteEncryption">NoteEncryption</a><D></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#262-270" title="goto source code">[src]</a></div><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(<br> ovk: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><D::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>>, <br> note: D::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br> to: D::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>, <br> memo: D::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a><br>) -> Self</h4></div></summary><div class="docblock"><p>Construct a new note encryption context for the specified note,
|
||
recipient, and memo.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new_with_esk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#275-290" title="goto source code">[src]</a></div><a href="#method.new_with_esk" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_with_esk" class="fnname">new_with_esk</a>(<br> esk: D::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>, <br> ovk: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><D::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>>, <br> note: D::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br> to: D::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>, <br> memo: D::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a><br>) -> Self</h4></div></summary><div class="docblock"><p>For use only with Sapling. This method is preserved in order that test code
|
||
be able to generate pre-ZIP-212 ciphertexts so that tests can continue to
|
||
cover pre-ZIP-212 transaction decryption.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.esk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#293-295" title="goto source code">[src]</a></div><a href="#method.esk" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.esk" class="fnname">esk</a>(&self) -> &D::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a></h4></div></summary><div class="docblock"><p>Exposes the ephemeral secret key being used to encrypt this note.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.epk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#298-300" title="goto source code">[src]</a></div><a href="#method.epk" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.epk" class="fnname">epk</a>(&self) -> &D::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a></h4></div></summary><div class="docblock"><p>Exposes the encoding of the ephemeral public key being used to encrypt this note.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.encrypt_note_plaintext" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#303-318" title="goto source code">[src]</a></div><a href="#method.encrypt_note_plaintext" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.encrypt_note_plaintext" class="fnname">encrypt_note_plaintext</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 580]</a></h4></div></summary><div class="docblock"><p>Generates <code>encCiphertext</code> for this note.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.encrypt_outgoing_plaintext" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#321-352" title="goto source code">[src]</a></div><a href="#method.encrypt_outgoing_plaintext" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.encrypt_outgoing_plaintext" class="fnname">encrypt_outgoing_plaintext</a><R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a>>(<br> &self, <br> cv: &D::<a class="type" href="trait.Domain.html#associatedtype.ValueCommitment" title="type zcash_note_encryption::Domain::ValueCommitment">ValueCommitment</a>, <br> cmstar: &D::<a class="type" href="trait.Domain.html#associatedtype.ExtractedCommitment" title="type zcash_note_encryption::Domain::ExtractedCommitment">ExtractedCommitment</a>, <br> rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R<br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 80]</a></h4></div></summary><div class="docblock"><p>Generates <code>outCiphertext</code> for this note.</p>
|
||
</div></details></div></details><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl<D> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.NoteEncryption.html" title="struct zcash_note_encryption::NoteEncryption">NoteEncryption</a><D> <span class="where fmt-newline">where<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>, </span></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl<D> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.NoteEncryption.html" title="struct zcash_note_encryption::NoteEncryption">NoteEncryption</a><D> <span class="where fmt-newline">where<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl<D> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.NoteEncryption.html" title="struct zcash_note_encryption::NoteEncryption">NoteEncryption</a><D> <span class="where fmt-newline">where<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl<D> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.NoteEncryption.html" title="struct zcash_note_encryption::NoteEncryption">NoteEncryption</a><D> <span class="where fmt-newline">where<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl<D> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.NoteEncryption.html" title="struct zcash_note_encryption::NoteEncryption">NoteEncryption</a><D> <span class="where fmt-newline">where<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,<br> <D as <a class="trait" href="trait.Domain.html" title="trait zcash_note_encryption::Domain">Domain</a>>::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>, </span></h3></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208-213" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210" title="goto source code">[src]</a></div><a href="#method.borrow" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216-220" title="goto source code">[src]</a></div><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow_mut" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217" title="goto source code">[src]</a></div><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</h4></div></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Conv" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Conv" class="anchor"></a><h3 class="code-header in-band">impl<T> Conv for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.conv" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.conv" class="anchor"></a><h4 class="code-header">fn <a href="#method.conv" class="fnname">conv</a><T>(self) -> T <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></h4></div></summary><div class='docblock'><p>Converts <code>self</code> into <code>T</code> using <code>Into<T></code>. <a href="#method.conv">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-FmtForward" class="impl has-srclink"><div class="rightside"></div><a href="#impl-FmtForward" class="anchor"></a><h3 class="code-header in-band">impl<T> FmtForward for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_binary" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_binary" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_binary" class="fnname">fmt_binary</a>(self) -> FmtBinary<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>Binary</code> implementation when <code>Debug</code>-formatted.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_display" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_display" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_display" class="fnname">fmt_display</a>(self) -> FmtDisplay<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>Display</code> implementation when
|
||
<code>Debug</code>-formatted. <a href="#method.fmt_display">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_lower_exp" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_lower_exp" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_lower_exp" class="fnname">fmt_lower_exp</a>(self) -> FmtLowerExp<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>LowerExp</code> implementation when
|
||
<code>Debug</code>-formatted. <a href="#method.fmt_lower_exp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_lower_hex" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_lower_hex" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_lower_hex" class="fnname">fmt_lower_hex</a>(self) -> FmtLowerHex<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>LowerHex</code> implementation when
|
||
<code>Debug</code>-formatted. <a href="#method.fmt_lower_hex">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_octal" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_octal" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_octal" class="fnname">fmt_octal</a>(self) -> FmtOctal<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>Octal</code> implementation when <code>Debug</code>-formatted.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_pointer" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_pointer" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_pointer" class="fnname">fmt_pointer</a>(self) -> FmtPointer<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html" title="trait core::fmt::Pointer">Pointer</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>Pointer</code> implementation when
|
||
<code>Debug</code>-formatted. <a href="#method.fmt_pointer">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_upper_exp" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_upper_exp" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_upper_exp" class="fnname">fmt_upper_exp</a>(self) -> FmtUpperExp<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>UpperExp</code> implementation when
|
||
<code>Debug</code>-formatted. <a href="#method.fmt_upper_exp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt_upper_hex" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.fmt_upper_hex" class="anchor"></a><h4 class="code-header">fn <a href="#method.fmt_upper_hex" class="fnname">fmt_upper_hex</a>(self) -> FmtUpperHex<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a>, </span></h4></div></summary><div class='docblock'><p>Causes <code>self</code> to use its <code>UpperHex</code> implementation when
|
||
<code>Debug</code>-formatted. <a href="#method.fmt_upper_hex">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546-550" title="goto source code">[src]</a></div><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#547" title="goto source code">[src]</a></div><a href="#method.from" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Into%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#535-542" title="goto source code">[src]</a></div><a href="#impl-Into%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#539" title="goto source code">[src]</a></div><a href="#method.into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Pipe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Pipe" class="anchor"></a><h3 class="code-header in-band">impl<T> Pipe for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe" class="fnname">pipe</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -> R) -> R</h4></div></summary><div class='docblock'><p>Pipes by value. This is generally the method you want to use. <a href="#method.pipe">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_ref" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_ref" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_ref" class="fnname">pipe_ref</a><'a, R>(&'a self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></h4></div></summary><div class='docblock'><p>Borrows <code>self</code> and passes that borrow into the pipe function. <a href="#method.pipe_ref">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_ref_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_ref_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_ref_mut" class="fnname">pipe_ref_mut</a><'a, R>(&'a mut self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></h4></div></summary><div class='docblock'><p>Mutably borrows <code>self</code> and passes that borrow into the pipe function. <a href="#method.pipe_ref_mut">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_borrow" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_borrow" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_borrow" class="fnname">pipe_borrow</a><'a, B, R>(&'a self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>B) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> R: 'a,<br> B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Borrows <code>self</code>, then passes <code>self.borrow()</code> into the pipe function. <a href="#method.pipe_borrow">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_borrow_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_borrow_mut" class="fnname">pipe_borrow_mut</a><'a, B, R>(<br> &'a mut self, <br> func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>B) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> R: 'a,<br> B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Mutably borrows <code>self</code>, then passes <code>self.borrow_mut()</code> into the pipe
|
||
function. <a href="#method.pipe_borrow_mut">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_as_ref" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_as_ref" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_as_ref" class="fnname">pipe_as_ref</a><'a, U, R>(&'a self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>U) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><U>,<br> R: 'a,<br> U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Borrows <code>self</code>, then passes <code>self.as_ref()</code> into the pipe function.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_as_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_as_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_as_mut" class="fnname">pipe_as_mut</a><'a, U, R>(&'a mut self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>U) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><U>,<br> R: 'a,<br> U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Mutably borrows <code>self</code>, then passes <code>self.as_mut()</code> into the pipe
|
||
function. <a href="#method.pipe_as_mut">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_deref" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_deref" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_deref" class="fnname">pipe_deref</a><'a, T, R>(&'a self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> R: 'a,<br> T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Borrows <code>self</code>, then passes <code>self.deref()</code> into the pipe function.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pipe_deref_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.pipe_deref_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.pipe_deref_mut" class="fnname">pipe_deref_mut</a><'a, T, R>(<br> &'a mut self, <br> func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> R: 'a,<br> T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Mutably borrows <code>self</code>, then passes <code>self.deref_mut()</code> into the pipe
|
||
function. <a href="#method.pipe_deref_mut">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Tap" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Tap" class="anchor"></a><h3 class="code-header in-band">impl<T> Tap for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap" class="fnname">tap</a>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</h4></div></summary><div class='docblock'><p>Immutable access to a value. <a href="#method.tap">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_mut" class="fnname">tap_mut</a>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</h4></div></summary><div class='docblock'><p>Mutable access to a value. <a href="#method.tap_mut">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_borrow" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_borrow" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_borrow" class="fnname">tap_borrow</a><B>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Immutable access to the <code>Borrow<B></code> of a value. <a href="#method.tap_borrow">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_borrow_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_borrow_mut" class="fnname">tap_borrow_mut</a><B>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Mutable access to the <code>BorrowMut<B></code> of a value. <a href="#method.tap_borrow_mut">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_ref" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_ref" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_ref" class="fnname">tap_ref</a><R>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Immutable access to the <code>AsRef<R></code> view of a value. <a href="#method.tap_ref">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_ref_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_ref_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_ref_mut" class="fnname">tap_ref_mut</a><R>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Mutable access to the <code>AsMut<R></code> view of a value. <a href="#method.tap_ref_mut">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_deref" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_deref" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_deref" class="fnname">tap_deref</a><T>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Immutable access to the <code>Deref::Target</code> of a value. <a href="#method.tap_deref">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_deref_mut" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_deref_mut" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_deref_mut" class="fnname">tap_deref_mut</a><T>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Mutable access to the <code>Deref::Target</code> of a value. <a href="#method.tap_deref_mut">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_dbg" class="fnname">tap_dbg</a>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</h4></div></summary><div class='docblock'><p>Calls <code>.tap()</code> only in debug builds, and is erased in release builds.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_mut_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_mut_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_mut_dbg" class="fnname">tap_mut_dbg</a>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</h4></div></summary><div class='docblock'><p>Calls <code>.tap_mut()</code> only in debug builds, and is erased in release
|
||
builds. <a href="#method.tap_mut_dbg">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_borrow_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_borrow_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_borrow_dbg" class="fnname">tap_borrow_dbg</a><B>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Calls <code>.tap_borrow()</code> only in debug builds, and is erased in release
|
||
builds. <a href="#method.tap_borrow_dbg">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_borrow_mut_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_borrow_mut_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_borrow_mut_dbg" class="fnname">tap_borrow_mut_dbg</a><B>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Calls <code>.tap_borrow_mut()</code> only in debug builds, and is erased in release
|
||
builds. <a href="#method.tap_borrow_mut_dbg">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_ref_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_ref_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_ref_dbg" class="fnname">tap_ref_dbg</a><R>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Calls <code>.tap_ref()</code> only in debug builds, and is erased in release
|
||
builds. <a href="#method.tap_ref_dbg">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_ref_mut_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_ref_mut_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_ref_mut_dbg" class="fnname">tap_ref_mut_dbg</a><R>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Calls <code>.tap_ref_mut()</code> only in debug builds, and is erased in release
|
||
builds. <a href="#method.tap_ref_mut_dbg">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_deref_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_deref_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_deref_dbg" class="fnname">tap_deref_dbg</a><T>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Calls <code>.tap_deref()</code> only in debug builds, and is erased in release
|
||
builds. <a href="#method.tap_deref_dbg">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.tap_deref_mut_dbg" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.tap_deref_mut_dbg" class="anchor"></a><h4 class="code-header">fn <a href="#method.tap_deref_mut_dbg" class="fnname">tap_deref_mut_dbg</a><T>(self, func: impl <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></div></summary><div class='docblock'><p>Calls <code>.tap_deref_mut()</code> only in debug builds, and is erased in release
|
||
builds. <a href="#method.tap_deref_mut_dbg">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryConv" class="impl has-srclink"><div class="rightside"></div><a href="#impl-TryConv" class="anchor"></a><h3 class="code-header in-band">impl<T> TryConv for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_conv" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.try_conv" class="anchor"></a><h4 class="code-header">fn <a href="#method.try_conv" class="fnname">try_conv</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" title="type core::convert::TryInto::Error">Error</a>> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><T>, </span></h4></div></summary><div class='docblock'><p>Attempts to convert <code>self</code> into <code>T</code> using <code>TryInto<T></code>. <a href="#method.try_conv">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryFrom%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#583-592" title="goto source code">[src]</a></div><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error" class="type trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#589" title="goto source code">[src]</a></div><a href="#method.try_from" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryInto%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#569-578" title="goto source code">[src]</a></div><a href="#impl-TryInto%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error-1" class="type trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#575" title="goto source code">[src]</a></div><a href="#method.try_into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="zcash_note_encryption" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||
<script src="../main.js"></script>
|
||
</body></html> |