16 lines
13 KiB
HTML
16 lines
13 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 trait that provides a minimized view of Sapling bundle configuration suitable for use in fee and change calculation."><title>BundleView in zcash_client_backend::fees::sapling - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-1a91846b.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="zcash_client_backend" data-themes="" data-resource-suffix="" data-rustdoc-version="1.88.0-nightly (27d6200a7 2025-05-06)" data-channel="nightly" data-search-js="search-f7877310.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-4e99c027.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-7ef8a74a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../zcash_client_backend/index.html">zcash_<wbr>client_<wbr>backend</a><span class="version">0.18.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Bundle<wbr>View</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.In" title="In">In</a></li><li><a href="#associatedtype.Out" title="Out">Out</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.bundle_type" title="bundle_type">bundle_type</a></li><li><a href="#tymethod.inputs" title="inputs">inputs</a></li><li><a href="#tymethod.outputs" title="outputs">outputs</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-BundleView%3CNoteRef%3E-for-(BundleType,+%26%5BIn%5D,+%26%5BOut%5D)" title="(BundleType, &'a [In], &'a [Out])">(BundleType, &'a [In], &'a [Out])</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In zcash_<wbr>client_<wbr>backend::<wbr>fees::<wbr>sapling</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">zcash_client_backend</a>::<wbr><a href="../index.html">fees</a>::<wbr><a href="index.html">sapling</a></div><h1>Trait <span class="trait">BundleView</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/zcash_client_backend/fees/sapling.rs.html#11-23">Source</a> </span></div><pre class="rust item-decl"><code>pub trait BundleView<NoteRef> {
|
|
type <a href="#associatedtype.In" class="associatedtype">In</a>: <a class="trait" href="trait.InputView.html" title="trait zcash_client_backend::fees::sapling::InputView">InputView</a><NoteRef>;
|
|
type <a href="#associatedtype.Out" class="associatedtype">Out</a>: <a class="trait" href="trait.OutputView.html" title="trait zcash_client_backend::fees::sapling::OutputView">OutputView</a>;
|
|
|
|
// Required methods
|
|
fn <a href="#tymethod.bundle_type" class="fn">bundle_type</a>(&self) -> BundleType;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.inputs" class="fn">inputs</a>(&self) -> &[Self::<a class="associatedtype" href="trait.BundleView.html#associatedtype.In" title="type zcash_client_backend::fees::sapling::BundleView::In">In</a>];
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.outputs" class="fn">outputs</a>(&self) -> &[Self::<a class="associatedtype" href="trait.BundleView.html#associatedtype.Out" title="type zcash_client_backend::fees::sapling::BundleView::Out">Out</a>];
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait that provides a minimized view of Sapling bundle configuration
|
|
suitable for use in fee and change calculation.</p>
|
|
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.In" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#13">Source</a><h4 class="code-header">type <a href="#associatedtype.In" class="associatedtype">In</a>: <a class="trait" href="trait.InputView.html" title="trait zcash_client_backend::fees::sapling::InputView">InputView</a><NoteRef></h4></section></summary><div class="docblock"><p>The type of inputs to the bundle.</p>
|
|
</div></details><details class="toggle" open><summary><section id="associatedtype.Out" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#15">Source</a><h4 class="code-header">type <a href="#associatedtype.Out" class="associatedtype">Out</a>: <a class="trait" href="trait.OutputView.html" title="trait zcash_client_backend::fees::sapling::OutputView">OutputView</a></h4></section></summary><div class="docblock"><p>The type of inputs of the bundle.</p>
|
|
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.bundle_type" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#18">Source</a><h4 class="code-header">fn <a href="#tymethod.bundle_type" class="fn">bundle_type</a>(&self) -> BundleType</h4></section></summary><div class="docblock"><p>Returns the type of the bundle</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.inputs" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#20">Source</a><h4 class="code-header">fn <a href="#tymethod.inputs" class="fn">inputs</a>(&self) -> &[Self::<a class="associatedtype" href="trait.BundleView.html#associatedtype.In" title="type zcash_client_backend::fees::sapling::BundleView::In">In</a>]</h4></section></summary><div class="docblock"><p>Returns the inputs to the bundle.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.outputs" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#22">Source</a><h4 class="code-header">fn <a href="#tymethod.outputs" class="fn">outputs</a>(&self) -> &[Self::<a class="associatedtype" href="trait.BundleView.html#associatedtype.Out" title="type zcash_client_backend::fees::sapling::BundleView::Out">Out</a>]</h4></section></summary><div class="docblock"><p>Returns the outputs of the bundle.</p>
|
|
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-BundleView%3CNoteRef%3E-for-(BundleType,+%26%5BIn%5D,+%26%5BOut%5D)" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#25-42">Source</a><a href="#impl-BundleView%3CNoteRef%3E-for-(BundleType,+%26%5BIn%5D,+%26%5BOut%5D)" class="anchor">§</a><h3 class="code-header">impl<'a, NoteRef, In: <a class="trait" href="trait.InputView.html" title="trait zcash_client_backend::fees::sapling::InputView">InputView</a><NoteRef>, Out: <a class="trait" href="trait.OutputView.html" title="trait zcash_client_backend::fees::sapling::OutputView">OutputView</a>> <a class="trait" href="trait.BundleView.html" title="trait zcash_client_backend::fees::sapling::BundleView">BundleView</a><NoteRef> for (BundleType, &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[In]</a>, &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[Out]</a>)</h3></section></summary><div class="impl-items"><section id="associatedtype.In-1" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#28">Source</a><a href="#associatedtype.In-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.In" class="associatedtype">In</a> = In</h4></section><section id="associatedtype.Out-1" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#29">Source</a><a href="#associatedtype.Out-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Out" class="associatedtype">Out</a> = Out</h4></section><section id="method.bundle_type" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#31-33">Source</a><a href="#method.bundle_type" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.bundle_type" class="fn">bundle_type</a>(&self) -> BundleType</h4></section><section id="method.inputs" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#35-37">Source</a><a href="#method.inputs" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.inputs" class="fn">inputs</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[In]</a></h4></section><section id="method.outputs" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#39-41">Source</a><a href="#method.outputs" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.outputs" class="fn">outputs</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[Out]</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-BundleView%3CNoteRef%3E-for-EmptyBundleView" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#47-62">Source</a><a href="#impl-BundleView%3CNoteRef%3E-for-EmptyBundleView" class="anchor">§</a><h3 class="code-header">impl<NoteRef> <a class="trait" href="trait.BundleView.html" title="trait zcash_client_backend::fees::sapling::BundleView">BundleView</a><NoteRef> for <a class="struct" href="struct.EmptyBundleView.html" title="struct zcash_client_backend::fees::sapling::EmptyBundleView">EmptyBundleView</a></h3></section></summary><div class="impl-items"><section id="associatedtype.In-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#48">Source</a><a href="#associatedtype.In-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.In" class="associatedtype">In</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section><section id="associatedtype.Out-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#49">Source</a><a href="#associatedtype.Out-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Out" class="associatedtype">Out</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></div></details></div><script src="../../../trait.impl/zcash_client_backend/fees/sapling/trait.BundleView.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html> |