]> Untitled Git - bitcoindevkit.org/blob
e1f5342ebca2fc8a42bf402c6f7c73870870990d
[bitcoindevkit.org] /
1 <!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="The `IndexedTxGraph` combines a `TxGraph` and an `Indexer` implementation."><title>IndexedTxGraph in bdk_chain::indexed_tx_graph - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.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-5d1d17d0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="bdk_chain" data-themes="" data-resource-suffix="" data-rustdoc-version="1.86.0-nightly (f3d1d47fd 2025-01-20)" data-channel="nightly" data-search-js="search-ccb196c1.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.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 struct"><!--[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><a class="logo-container" href="../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt="logo"></a><h2><a href="../../bdk_chain/index.html">bdk_<wbr>chain</a><span class="version">0.21.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Indexed<wbr>TxGraph</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.index" title="index">index</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.apply_block" title="apply_block">apply_block</a></li><li><a href="#method.apply_block_relevant" title="apply_block_relevant">apply_block_relevant</a></li><li><a href="#method.apply_changeset" title="apply_changeset">apply_changeset</a></li><li><a href="#method.apply_update" title="apply_update">apply_update</a></li><li><a href="#method.apply_update_at" title="apply_update_at">apply_update_at</a></li><li><a href="#method.batch_insert_relevant" title="batch_insert_relevant">batch_insert_relevant</a></li><li><a href="#method.batch_insert_relevant_unconfirmed" title="batch_insert_relevant_unconfirmed">batch_insert_relevant_unconfirmed</a></li><li><a href="#method.batch_insert_unconfirmed" title="batch_insert_unconfirmed">batch_insert_unconfirmed</a></li><li><a href="#method.graph" title="graph">graph</a></li><li><a href="#method.initial_changeset" title="initial_changeset">initial_changeset</a></li><li><a href="#method.insert_anchor" title="insert_anchor">insert_anchor</a></li><li><a href="#method.insert_seen_at" title="insert_seen_at">insert_seen_at</a></li><li><a href="#method.insert_tx" title="insert_tx">insert_tx</a></li><li><a href="#method.insert_txout" title="insert_txout">insert_txout</a></li><li><a href="#method.new" title="new">new</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-AsRef%3CTxGraph%3CA%3E%3E-for-IndexedTxGraph%3CA,+I%3E" title="AsRef&#60;TxGraph&#60;A&#62;&#62;">AsRef&#60;TxGraph&#60;A&#62;&#62;</a></li><li><a href="#impl-Clone-for-IndexedTxGraph%3CA,+I%3E" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-IndexedTxGraph%3CA,+I%3E" title="Debug">Debug</a></li><li><a href="#impl-Default-for-IndexedTxGraph%3CA,+I%3E" title="Default">Default</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-IndexedTxGraph%3CA,+I%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-IndexedTxGraph%3CA,+I%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-IndexedTxGraph%3CA,+I%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-IndexedTxGraph%3CA,+I%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-IndexedTxGraph%3CA,+I%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-IndexedTxGraph%3CA,+I%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip&#60;V&#62;">VZip&#60;V&#62;</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In bdk_<wbr>chain::<wbr>indexed_<wbr>tx_<wbr>graph</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"><span class="rustdoc-breadcrumbs"><a href="../index.html">bdk_chain</a>::<wbr><a href="index.html">indexed_tx_graph</a></span><h1>Struct <span class="struct">IndexedTxGraph</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/bdk_chain/indexed_tx_graph.rs.html#17-21">Source</a> </span></div><pre class="rust item-decl"><code>pub struct IndexedTxGraph&lt;A, I&gt; {
2 pub index: I,
3 <span class="comment">/* private fields */</span>
4 }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <a href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph"><code>IndexedTxGraph</code></a> combines a <a href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph"><code>TxGraph</code></a> and an <a href="../indexer/trait.Indexer.html" title="trait bdk_chain::indexer::Indexer"><code>Indexer</code></a> implementation.</p>
5 <p>It ensures that <a href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph"><code>TxGraph</code></a> and <a href="../indexer/trait.Indexer.html" title="trait bdk_chain::indexer::Indexer"><code>Indexer</code></a> are updated atomically.</p>
6 </div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.index" class="structfield section-header"><a href="#structfield.index" class="anchor field">§</a><code>index: I</code></span><div class="docblock"><p>Transaction index.</p>
7 </div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-IndexedTxGraph%3CA,+I%3E" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#32-45">Source</a><a href="#impl-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#34-39">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(index: I) -&gt; Self</h4></section></summary><div class="docblock"><p>Construct a new <a href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph"><code>IndexedTxGraph</code></a> with a given <code>index</code>.</p>
8 </div></details><details class="toggle method-toggle" open><summary><section id="method.graph" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#42-44">Source</a><h4 class="code-header">pub fn <a href="#method.graph" class="fn">graph</a>(&amp;self) -&gt; &amp;<a class="struct" href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph">TxGraph</a>&lt;A&gt;</h4></section></summary><div class="docblock"><p>Get a reference of the internal transaction graph.</p>
9 </div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IndexedTxGraph%3CA,+I%3E-1" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#47-71">Source</a><a href="#impl-IndexedTxGraph%3CA,+I%3E-1" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="../trait.Anchor.html" title="trait bdk_chain::Anchor">Anchor</a>, I: <a class="trait" href="../indexer/trait.Indexer.html" title="trait bdk_chain::indexer::Indexer">Indexer</a>&gt; <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.apply_changeset" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#49-60">Source</a><h4 class="code-header">pub fn <a href="#method.apply_changeset" class="fn">apply_changeset</a>(&amp;mut self, changeset: <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;)</h4></section></summary><div class="docblock"><p>Applies the <a href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet"><code>ChangeSet</code></a> to the <a href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph"><code>IndexedTxGraph</code></a>.</p>
10 </div></details><details class="toggle method-toggle" open><summary><section id="method.initial_changeset" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#63-70">Source</a><h4 class="code-header">pub fn <a href="#method.initial_changeset" class="fn">initial_changeset</a>(&amp;self) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Determines the <a href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet"><code>ChangeSet</code></a> between <code>self</code> and an empty <a href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph"><code>IndexedTxGraph</code></a>.</p>
11 </div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IndexedTxGraph%3CA,+I%3E-2" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#73-253">Source</a><a href="#impl-IndexedTxGraph%3CA,+I%3E-2" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="../trait.Anchor.html" title="trait bdk_chain::Anchor">Anchor</a>, I: <a class="trait" href="../indexer/trait.Indexer.html" title="trait bdk_chain::indexer::Indexer">Indexer</a>&gt; <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
12 I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="../trait.Merge.html" title="trait bdk_chain::Merge">Merge</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.apply_update" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#96-100">Source</a><h4 class="code-header">pub fn <a href="#method.apply_update" class="fn">apply_update</a>(
13 &amp;mut self,
14 update: <a class="struct" href="../struct.TxUpdate.html" title="struct bdk_chain::TxUpdate">TxUpdate</a>&lt;A&gt;,
15 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>std</code></strong> only.</div></span></summary><div class="docblock"><p>Apply an <code>update</code> directly.</p>
16 <p><code>update</code> is a <a href="../struct.TxUpdate.html" title="struct bdk_chain::TxUpdate"><code>tx_graph::TxUpdate&lt;A&gt;</code></a> and the resultant changes is returned as <a href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet"><code>ChangeSet</code></a>.</p>
17 </div></details><details class="toggle method-toggle" open><summary><section id="method.apply_update_at" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#115-123">Source</a><h4 class="code-header">pub fn <a href="#method.apply_update_at" class="fn">apply_update_at</a>(
18 &amp;mut self,
19 update: <a class="struct" href="../struct.TxUpdate.html" title="struct bdk_chain::TxUpdate">TxUpdate</a>&lt;A&gt;,
20 seen_at: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>&gt;,
21 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Apply the given <code>update</code> with an optional <code>seen_at</code> timestamp.</p>
22 <p><code>seen_at</code> represents when the update is seen (in unix seconds). It is used to determine the
23 <code>last_seen</code>s for all transactions in the update which have no corresponding anchor(s). The
24 <code>last_seen</code> value is used internally to determine precedence of conflicting unconfirmed
25 transactions (where the transaction with the lower <code>last_seen</code> value is omitted from the
26 canonical history).</p>
27 <p>Not setting a <code>seen_at</code> value means unconfirmed transactions introduced by this update will
28 not be part of the canonical history of transactions.</p>
29 <p>Use <a href="struct.IndexedTxGraph.html#method.apply_update" title="method bdk_chain::indexed_tx_graph::IndexedTxGraph::apply_update"><code>apply_update</code></a> to have the <code>seen_at</code> value automatically
30 set to the current time.</p>
31 </div></details><details class="toggle method-toggle" open><summary><section id="method.insert_txout" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#126-133">Source</a><h4 class="code-header">pub fn <a href="#method.insert_txout" class="fn">insert_txout</a>(
32 &amp;mut self,
33 outpoint: <a class="struct" href="../bitcoin/struct.OutPoint.html" title="struct bdk_chain::bitcoin::OutPoint">OutPoint</a>,
34 txout: <a class="struct" href="../bitcoin/struct.TxOut.html" title="struct bdk_chain::bitcoin::TxOut">TxOut</a>,
35 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Insert a floating <code>txout</code> of given <code>outpoint</code>.</p>
36 </div></details><details class="toggle method-toggle" open><summary><section id="method.insert_tx" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#136-140">Source</a><h4 class="code-header">pub fn <a href="#method.insert_tx" class="fn">insert_tx</a>&lt;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>&gt;&gt;&gt;(
37 &amp;mut self,
38 tx: T,
39 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Insert and index a transaction into the graph.</p>
40 </div></details><details class="toggle method-toggle" open><summary><section id="method.insert_anchor" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#143-145">Source</a><h4 class="code-header">pub fn <a href="#method.insert_anchor" class="fn">insert_anchor</a>(
41 &amp;mut self,
42 txid: <a class="struct" href="../bitcoin/struct.Txid.html" title="struct bdk_chain::bitcoin::Txid">Txid</a>,
43 anchor: A,
44 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Insert an <code>anchor</code> for a given transaction.</p>
45 </div></details><details class="toggle method-toggle" open><summary><section id="method.insert_seen_at" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#151-153">Source</a><h4 class="code-header">pub fn <a href="#method.insert_seen_at" class="fn">insert_seen_at</a>(
46 &amp;mut self,
47 txid: <a class="struct" href="../bitcoin/struct.Txid.html" title="struct bdk_chain::bitcoin::Txid">Txid</a>,
48 seen_at: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
49 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Insert a unix timestamp of when a transaction is seen in the mempool.</p>
50 <p>This is used for transaction conflict resolution in <a href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph"><code>TxGraph</code></a> where the transaction with
51 the later last-seen is prioritized.</p>
52 </div></details><details class="toggle method-toggle" open><summary><section id="method.batch_insert_relevant" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#159-191">Source</a><h4 class="code-header">pub fn <a href="#method.batch_insert_relevant" class="fn">batch_insert_relevant</a>&lt;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>&gt;&gt;&gt;(
53 &amp;mut self,
54 txs: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = (T, impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = A&gt;)&gt;,
55 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Batch insert transactions, filtering out those that are irrelevant.</p>
56 <p>Relevancy is determined by the <a href="../indexer/trait.Indexer.html#tymethod.is_tx_relevant" title="method bdk_chain::indexer::Indexer::is_tx_relevant"><code>Indexer::is_tx_relevant</code></a> implementation of <code>I</code>. Irrelevant
57 transactions in <code>txs</code> will be ignored. <code>txs</code> do not need to be in topological order.</p>
58 </div></details><details class="toggle method-toggle" open><summary><section id="method.batch_insert_relevant_unconfirmed" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#201-231">Source</a><h4 class="code-header">pub fn <a href="#method.batch_insert_relevant_unconfirmed" class="fn">batch_insert_relevant_unconfirmed</a>&lt;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>&gt;&gt;&gt;(
59 &amp;mut self,
60 unconfirmed_txs: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = (T, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)&gt;,
61 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Batch insert unconfirmed transactions, filtering out those that are irrelevant.</p>
62 <p>Relevancy is determined by the internal <a href="../indexer/trait.Indexer.html#tymethod.is_tx_relevant" title="method bdk_chain::indexer::Indexer::is_tx_relevant"><code>Indexer::is_tx_relevant</code></a> implementation of <code>I</code>.
63 Irrelevant transactions in <code>txs</code> will be ignored.</p>
64 <p>Items of <code>txs</code> are tuples containing the transaction and a <em>last seen</em> timestamp. The
65 <em>last seen</em> communicates when the transaction is last seen in the mempool which is used for
66 conflict-resolution in <a href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph"><code>TxGraph</code></a> (refer to <a href="../tx_graph/struct.TxGraph.html#method.insert_seen_at" title="method bdk_chain::tx_graph::TxGraph::insert_seen_at"><code>TxGraph::insert_seen_at</code></a> for details).</p>
67 </div></details><details class="toggle method-toggle" open><summary><section id="method.batch_insert_unconfirmed" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#242-252">Source</a><h4 class="code-header">pub fn <a href="#method.batch_insert_unconfirmed" class="fn">batch_insert_unconfirmed</a>&lt;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>&gt;&gt;&gt;(
68 &amp;mut self,
69 txs: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = (T, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)&gt;,
70 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Batch insert unconfirmed transactions.</p>
71 <p>Items of <code>txs</code> are tuples containing the transaction and a <em>last seen</em> timestamp. The
72 <em>last seen</em> communicates when the transaction is last seen in the mempool which is used for
73 conflict-resolution in <a href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph"><code>TxGraph</code></a> (refer to <a href="../tx_graph/struct.TxGraph.html#method.insert_seen_at" title="method bdk_chain::tx_graph::TxGraph::insert_seen_at"><code>TxGraph::insert_seen_at</code></a> for details).</p>
74 <p>To filter out irrelevant transactions, use <a href="struct.IndexedTxGraph.html#method.batch_insert_relevant_unconfirmed" title="method bdk_chain::indexed_tx_graph::IndexedTxGraph::batch_insert_relevant_unconfirmed"><code>batch_insert_relevant_unconfirmed</code></a> instead.</p>
75 </div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IndexedTxGraph%3CA,+I%3E-3" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#256-327">Source</a><a href="#impl-IndexedTxGraph%3CA,+I%3E-3" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
76 I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="../trait.Merge.html" title="trait bdk_chain::Merge">Merge</a>,
77 for&lt;'b&gt; A: <a class="trait" href="../trait.Anchor.html" title="trait bdk_chain::Anchor">Anchor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../struct.TxPosInBlock.html" title="struct bdk_chain::TxPosInBlock">TxPosInBlock</a>&lt;'b&gt;&gt;,
78 I: <a class="trait" href="../indexer/trait.Indexer.html" title="trait bdk_chain::indexer::Indexer">Indexer</a>,</div></h3><div class="docblock"><p>Methods are available if the anchor (<code>A</code>) can be created from <a href="../struct.TxPosInBlock.html" title="struct bdk_chain::TxPosInBlock"><code>TxPosInBlock</code></a>.</p>
79 </div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.apply_block_relevant" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#269-296">Source</a><h4 class="code-header">pub fn <a href="#method.apply_block_relevant" class="fn">apply_block_relevant</a>(
80 &amp;mut self,
81 block: &amp;<a class="struct" href="../bitcoin/struct.Block.html" title="struct bdk_chain::bitcoin::Block">Block</a>,
82 height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
83 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Batch insert all transactions of the given <code>block</code> of <code>height</code>, filtering out those that are
84 irrelevant.</p>
85 <p>Each inserted transaction’s anchor will be constructed using <a href="../struct.TxPosInBlock.html" title="struct bdk_chain::TxPosInBlock"><code>TxPosInBlock</code></a>.</p>
86 <p>Relevancy is determined by the internal <a href="../indexer/trait.Indexer.html#tymethod.is_tx_relevant" title="method bdk_chain::indexer::Indexer::is_tx_relevant"><code>Indexer::is_tx_relevant</code></a> implementation of <code>I</code>.
87 Irrelevant transactions in <code>txs</code> will be ignored.</p>
88 </div></details><details class="toggle method-toggle" open><summary><section id="method.apply_block" class="method"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#305-326">Source</a><h4 class="code-header">pub fn <a href="#method.apply_block" class="fn">apply_block</a>(
89 &amp;mut self,
90 block: <a class="struct" href="../bitcoin/struct.Block.html" title="struct bdk_chain::bitcoin::Block">Block</a>,
91 height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
92 ) -&gt; <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a>&lt;A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>&gt;</h4></section></summary><div class="docblock"><p>Batch insert all transactions of the given <code>block</code> of <code>height</code>.</p>
93 <p>Each inserted transaction’s anchor will be constructed using <a href="../struct.TxPosInBlock.html" title="struct bdk_chain::TxPosInBlock"><code>TxPosInBlock</code></a>.</p>
94 <p>To only insert relevant transactions, use <a href="struct.IndexedTxGraph.html#method.apply_block_relevant" title="method bdk_chain::indexed_tx_graph::IndexedTxGraph::apply_block_relevant"><code>apply_block_relevant</code></a> instead.</p>
95 </div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3CTxGraph%3CA%3E%3E-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#329-333">Source</a><a href="#impl-AsRef%3CTxGraph%3CA%3E%3E-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph">TxGraph</a>&lt;A&gt;&gt; for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#330-332">Source</a><a href="#method.as_ref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph">TxGraph</a>&lt;A&gt;</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#16">Source</a><a href="#impl-Clone-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#16">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;</h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#16">Source</a><a href="#impl-Debug-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#16">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#23-30">Source</a><a href="#impl-Default-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/bdk_chain/indexed_tx_graph.rs.html#24-29">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -&gt; Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a href="#impl-Freeze-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
96 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a href="#impl-RefUnwindSafe-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <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.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
97 I: <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>,
98 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>,</div></h3></section><section id="impl-Send-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a href="#impl-Send-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <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.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
99 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
100 A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a href="#impl-Sync-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <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.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
101 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
102 A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a href="#impl-Unpin-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <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.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
103 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-IndexedTxGraph%3CA,+I%3E" class="impl"><a href="#impl-UnwindSafe-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl&lt;A, I&gt; <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.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a>&lt;A, I&gt;<div class="where">where
104 I: <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>,
105 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>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
106 T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>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></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
107 T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
108 T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>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></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
109 T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&amp;self, dst: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
110 </div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
111 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
112 <p>That is, this conversion is whatever the implementation of
113 <code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
114 </div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
115 T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
116 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">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></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
117 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;V, T&gt; VZip&lt;V&gt; for T<div class="where">where
118 V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details></div></section></div></main></body></html>