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-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.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-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-dd39b87e5fcfba68.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.80.0-nightly (78a775127 2024-05-11)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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_chain</a><span class="version">0.19.0</span></h2></div><h2 class="location"><a href="#">IndexedTxGraph</a></h2><div class="sidebar-elems"><section><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.index">index</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.apply_block">apply_block</a></li><li><a href="#method.apply_block_relevant">apply_block_relevant</a></li><li><a href="#method.apply_changeset">apply_changeset</a></li><li><a href="#method.apply_update">apply_update</a></li><li><a href="#method.apply_update_at">apply_update_at</a></li><li><a href="#method.batch_insert_relevant">batch_insert_relevant</a></li><li><a href="#method.batch_insert_relevant_unconfirmed">batch_insert_relevant_unconfirmed</a></li><li><a href="#method.batch_insert_unconfirmed">batch_insert_unconfirmed</a></li><li><a href="#method.graph">graph</a></li><li><a href="#method.initial_changeset">initial_changeset</a></li><li><a href="#method.insert_anchor">insert_anchor</a></li><li><a href="#method.insert_seen_at">insert_seen_at</a></li><li><a href="#method.insert_tx">insert_tx</a></li><li><a href="#method.insert_txout">insert_txout</a></li><li><a href="#method.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">AsRef<TxGraph<A>></a></li><li><a href="#impl-Debug-for-IndexedTxGraph%3CA,+I%3E">Debug</a></li><li><a href="#impl-Default-for-IndexedTxGraph%3CA,+I%3E">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">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-IndexedTxGraph%3CA,+I%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-IndexedTxGraph%3CA,+I%3E">Send</a></li><li><a href="#impl-Sync-for-IndexedTxGraph%3CA,+I%3E">Sync</a></li><li><a href="#impl-Unpin-for-IndexedTxGraph%3CA,+I%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-IndexedTxGraph%3CA,+I%3E">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">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-T">VZip<V></a></li></ul></section><h2><a href="index.html">In bdk_chain::indexed_tx_graph</a></h2></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"><h1>Struct <a href="../index.html">bdk_chain</a>::<wbr><a href="index.html">indexed_tx_graph</a>::<wbr><a class="struct" href="#">IndexedTxGraph</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/bdk_chain/indexed_tx_graph.rs.html#17-21">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub struct IndexedTxGraph<A, 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<A, I> <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a><A, I></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) -> 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>(&self) -> &<a class="struct" href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph">TxGraph</a><A></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<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>> <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a><A, I></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>(&mut self, changeset: <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>>)</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>(&self) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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<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>> <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a><A, I><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>(
14 update: <a class="struct" href="../struct.TxUpdate.html" title="struct bdk_chain::TxUpdate">TxUpdate</a><A>
15 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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<A></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>(
19 update: <a class="struct" href="../struct.TxUpdate.html" title="struct bdk_chain::TxUpdate">TxUpdate</a><A>,
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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>>
21 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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>(
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 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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><T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>>>>(
39 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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>(
42 txid: <a class="struct" href="../bitcoin/struct.Txid.html" title="struct bdk_chain::bitcoin::Txid">Txid</a>,
44 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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>(
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 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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><T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>>>>(
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><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><Item = A>)>
55 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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><T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>>>>(
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><Item = (T, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)>
61 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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><T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../bitcoin/struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>>>>(
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><Item = (T, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)>
70 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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-318">source</a><a href="#impl-IndexedTxGraph%3CA,+I%3E-3" class="anchor">§</a><h3 class="code-header">impl<A, I: <a class="trait" href="../indexer/trait.Indexer.html" title="trait bdk_chain::indexer::Indexer">Indexer</a>> <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a><A, I><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 A: <a class="trait" href="../trait.AnchorFromBlockPosition.html" title="trait bdk_chain::AnchorFromBlockPosition">AnchorFromBlockPosition</a> + <a class="trait" href="../trait.Anchor.html" title="trait bdk_chain::Anchor">Anchor</a>,</div></h3></section></summary><div class="docblock"><p>Methods are available if the anchor (<code>A</code>) implements <a href="../trait.AnchorFromBlockPosition.html" title="trait bdk_chain::AnchorFromBlockPosition"><code>AnchorFromBlockPosition</code></a>.</p>
78 </div><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-291">source</a><h4 class="code-header">pub fn <a href="#method.apply_block_relevant" class="fn">apply_block_relevant</a>(
80 block: &<a class="struct" href="../bitcoin/struct.Block.html" title="struct bdk_chain::bitcoin::Block">Block</a>,
81 height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>
82 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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 <p>Each inserted transaction’s anchor will be constructed from
85 <a href="../trait.AnchorFromBlockPosition.html#tymethod.from_block_position" title="associated function bdk_chain::AnchorFromBlockPosition::from_block_position"><code>AnchorFromBlockPosition::from_block_position</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#301-317">source</a><h4 class="code-header">pub fn <a href="#method.apply_block" class="fn">apply_block</a>(
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 ) -> <a class="struct" href="struct.ChangeSet.html" title="struct bdk_chain::indexed_tx_graph::ChangeSet">ChangeSet</a><A, I::<a class="associatedtype" href="../indexer/trait.Indexer.html#associatedtype.ChangeSet" title="type bdk_chain::indexer::Indexer::ChangeSet">ChangeSet</a>></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 from
94 <a href="../trait.AnchorFromBlockPosition.html#tymethod.from_block_position" title="associated function bdk_chain::AnchorFromBlockPosition::from_block_position"><code>AnchorFromBlockPosition::from_block_position</code></a>.</p>
95 <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>
96 </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#320-324">source</a><a href="#impl-AsRef%3CTxGraph%3CA%3E%3E-for-IndexedTxGraph%3CA,+I%3E" class="anchor">§</a><h3 class="code-header">impl<A, I> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph">TxGraph</a><A>> for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a><A, I></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#321-323">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>(&self) -> &<a class="struct" href="../tx_graph/struct.TxGraph.html" title="struct bdk_chain::tx_graph::TxGraph">TxGraph</a><A></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-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<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>> <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><A, I></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>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></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<A, I: <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="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><A, I></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>() -> 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<A, I> <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><A, I><div class="where">where
97 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<A, 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> for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a><A, I><div class="where">where
98 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>,
99 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<A, I> <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><A, I><div class="where">where
100 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
101 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<A, I> <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><A, I><div class="where">where
102 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
103 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<A, I> <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><A, I><div class="where">where
104 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<A, 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> for <a class="struct" href="struct.IndexedTxGraph.html" title="struct bdk_chain::indexed_tx_graph::IndexedTxGraph">IndexedTxGraph</a><A, I><div class="where">where
105 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>,
106 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#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">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<div class="where">where
107 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#141">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>(&self) -> <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#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">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<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" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210">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>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&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#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">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<div class="where">where
109 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#217">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>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&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-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#765">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">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></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#768">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) -> 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#748-750">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">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<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><T>,</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#758">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) -> 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><T> for U</code> chooses to do.</p>
114 </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#805-807">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">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<div class="where">where
115 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><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#812">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) -> <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="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'>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#790-792">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">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<div class="where">where
116 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><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> = <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="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#797">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) -> <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="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'>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<V, T> VZip<V> for T<div class="where">where
117 V: MultiLane<T>,</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) -> V</h4></section></div></details></div></section></div></main></body></html>