<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="A gadget that constrains a SHA-256 invocation. It supports input at a granularity of 32 bits."><metaname="keywords"content="rust, rustlang, rust-lang, Sha256"><title>Sha256 in halo2_gadgets::sha256 - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"type="text/css"href="../../normalize.css"><linkrel="stylesheet"type="text/css"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../../ayu.css"disabled><linkrel="stylesheet"type="text/css"href="../../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../../storage.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../main.js"></script><noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../favicon.svg"><linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css"integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y"crossorigin="anonymous">
</head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../../halo2_gadgets/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></div>
</a><h2class="location"><ahref="#">Sha256</a></h2><divclass="sidebar-elems"><section><divclass="block"><h3class="sidebar-title"><ahref="#implementations">Methods</a></h3><ul><li><ahref="#method.digest">digest</a></li><li><ahref="#method.finalize">finalize</a></li><li><ahref="#method.new">new</a></li><li><ahref="#method.update">update</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#trait-implementations">Trait Implementations</a></h3><ul><li><ahref="#impl-Debug-for-Sha256%3CF%2C%20CS%3E">Debug</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><ahref="#impl-RefUnwindSafe-for-Sha256%3CF%2C%20CS%3E">RefUnwindSafe</a></li><li><ahref="#impl-Send-for-Sha256%3CF%2C%20CS%3E">Send</a></li><li><ahref="#impl-Sync-for-Sha256%3CF%2C%20CS%3E">Sync</a></li><li><ahref="#impl-Unpin-for-Sha256%3CF%2C%20CS%3E">Unpin</a></li><li><ahref="#impl-UnwindSafe-for-Sha256%3CF%2C%20CS%3E">UnwindSafe</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#blanket-implementations">Blanket Implementations</a></h3><ul><li><ahref="#impl-Any-for-Sha256%3CF%2C%20CS%3E">Any</a></li><li><ahref="#impl-Borrow%3CT%3E-for-Sha256%3CF%2C%20CS%3E">Borrow<T></a></li><li><ahref="#impl-BorrowMut%3CT%3E-for-Sha256%3CF%2C%20CS%3E">BorrowMut<T></a></li><li><ahref="#impl-Conv-for-Sha256%3CF%2C%20CS%3E">Conv</a></li><li><ahref="#impl-FmtForward-for-Sha256%3CF%2C%20CS%3E">FmtForward</a></li><li><ahref="#impl-From%3CT%3E-for-Sha256%3CF%2C%20CS%3E">From<T></a></li><li><ahref="#impl-Instrument-for-Sha256%3CF%2C%20CS%3E">Instrument</a></li><li><ahref="#impl-Into%3CU%3E-for-Sha256%3CF%2C%20CS%3E">Into<U></a></li><li><ahref="#impl-Pipe-for-Sha256%3CF%2C%20CS%3E">Pipe</a></li><li><ahref="#impl-Pointable-for-Sha256%3CF%2C%20CS%3E">Pointable</a></li><li><ahref="#impl-Tap-for-Sha256%3CF%2C%20CS%3E">Tap</a></li><li><ahref="#impl-TryConv-for-Sha256%3CF%2C%20CS%3E">TryConv</a></li><li><ahref="#impl-TryFrom%3CU%3E-for-Sha256%3CF%2C%20CS%3E">TryFrom<U></a></li><li><ahref="#impl-TryInto%3CU%3E-for-Sha256%3CF%2C%20CS%3E">TryInto<U></a></li><li><ahref="#impl-VZip%3CV%3E-for-Sha256%3CF%2C%20CS%3E">VZip<V></a></li><li><ahref="#impl-WithSubscriber-for-Sha256%3CF%2C%20CS%3E">WithSubscriber</a></li></ul></div></section><h2class="location"><ahref="index.html">In halo2_gadgets::sha256</a></h2></div></nav><main><divclass="width-limiter"><divclass="sub-container"><aclass="sub-logo-container"href="../../halo2_gadgets/index.html"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></a><navclass="sub"><formclass="search-form"><divclass="search-container"><span></span><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"title="help"tabindex="-1"><buttontype="button">?</button></div><divid="settings-menu"tabindex="-1">
<h1class="fqn"><spanclass="in-band">Struct <ahref="../index.html">halo2_gadgets</a>::<wbr><ahref="index.html">sha256</a>::<wbr><aclass="struct"href="#">Sha256</a><buttonid="copy-path"onclick="copy_path(this)"title="Copy item path to clipboard"><imgsrc="../../clipboard.svg"width="19"height="18"alt="Copy item path"></button></span></h1><spanclass="out-of-band"><aclass="srclink"href="../../src/halo2_gadgets/sha256.rs.html#66-71">source</a> · <aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span></div><divclass="docblock item-decl"><preclass="rust struct"><code>pub struct Sha256<F: FieldExt, CS: <aclass="trait"href="trait.Sha256Instructions.html"title="trait halo2_gadgets::sha256::Sha256Instructions">Sha256Instructions</a><F>> { /* private fields */ }</code></pre></div><spanclass="item-info"><divclass="stab portability">Available on <strong>crate feature <code>unstable</code></strong> only.</div></span><detailsclass="rustdoc-toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>A gadget that constrains a SHA-256 invocation. It supports input at a granularity of
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.finalize"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/halo2_gadgets/sha256.rs.html#133-153">source</a></span><ahref="#method.finalize"class="anchor"></a><h4class="code-header">pub fn <ahref="#method.finalize"class="fnname">finalize</a>(<br> self,<br> layouter: impl <aclass="trait"href="../../halo2_proofs/circuit/trait.Layouter.html"title="trait halo2_proofs::circuit::Layouter">Layouter</a><F><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="struct.Sha256Digest.html"title="struct halo2_gadgets::sha256::Sha256Digest">Sha256Digest</a><Sha256Chip::<aclass="associatedtype"href="trait.Sha256Instructions.html#associatedtype.BlockWord"title="type halo2_gadgets::sha256::Sha256Instructions::BlockWord">BlockWord</a>>, <aclass="enum"href="../../halo2_proofs/plonk/error/enum.Error.html"title="enum halo2_proofs::plonk::error::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Retrieve result and consume hasher instance.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.digest"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/halo2_gadgets/sha256.rs.html#157-165">source</a></span><ahref="#method.digest"class="anchor"></a><h4class="code-header">pub fn <ahref="#method.digest"class="fnname">digest</a>(<br> chip: Sha256Chip,<br> layouter: impl <aclass="trait"href="../../halo2_proofs/circuit/trait.Layouter.html"title="trait halo2_proofs::circuit::Layouter">Layouter</a><F>,<br> data: &[Sha256Chip::<aclass="associatedtype"href="trait.Sha256Instructions.html#associatedtype.BlockWord"title="type halo2_gadgets::sha256::Sha256Instructions::BlockWord">BlockWord</a>]<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="struct.Sha256Digest.html"title="struct halo2_gadgets::sha256::Sha256Digest">Sha256Digest</a><Sha256Chip::<aclass="associatedtype"href="trait.Sha256Instructions.html#associatedtype.BlockWord"title="type halo2_gadgets::sha256::Sha256Instructions::BlockWord">BlockWord</a>>, <aclass="enum"href="../../halo2_proofs/plonk/error/enum.Error.html"title="enum halo2_proofs::plonk::error::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Convenience function to compute hash of the data. It will handle hasher creation,
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt_display"class="method trait-impl has-srclink"><ahref="#method.fmt_display"class="anchor"></a><h4class="code-header">fn <aclass="fnname">fmt_display</a>(self) -> FmtDisplay<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a>, </span></h4></section></summary><divclass='docblock'><p>Causes <code>self</code> to use its <code>Display</code> implementation when
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt_lower_exp"class="method trait-impl has-srclink"><ahref="#method.fmt_lower_exp"class="anchor"></a><h4class="code-header">fn <aclass="fnname">fmt_lower_exp</a>(self) -> FmtLowerExp<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html"title="trait core::fmt::LowerExp">LowerExp</a>, </span></h4></section></summary><divclass='docblock'><p>Causes <code>self</code> to use its <code>LowerExp</code> implementation when
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt_lower_hex"class="method trait-impl has-srclink"><ahref="#method.fmt_lower_hex"class="anchor"></a><h4class="code-header">fn <aclass="fnname">fmt_lower_hex</a>(self) -> FmtLowerHex<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html"title="trait core::fmt::LowerHex">LowerHex</a>, </span></h4></section></summary><divclass='docblock'><p>Causes <code>self</code> to use its <code>LowerHex</code> implementation when
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt_octal"class="method trait-impl has-srclink"><ahref="#method.fmt_octal"class="anchor"></a><h4class="code-header">fn <aclass="fnname">fmt_octal</a>(self) -> FmtOctal<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html"title="trait core::fmt::Octal">Octal</a>, </span></h4></section></summary><divclass='docblock'><p>Causes <code>self</code> to use its <code>Octal</code> implementation when <code>Debug</code>-formatted. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt_pointer"class="method trait-impl has-srclink"><ahref="#method.fmt_pointer"class="anchor"></a><h4class="code-header">fn <aclass="fnname">fmt_pointer</a>(self) -> FmtPointer<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html"title="trait core::fmt::Pointer">Pointer</a>, </span></h4></section></summary><divclass='docblock'><p>Causes <code>self</code> to use its <code>Pointer</code> implementation when
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt_upper_exp"class="method trait-impl has-srclink"><ahref="#method.fmt_upper_exp"class="anchor"></a><h4class="code-header">fn <aclass="fnname">fmt_upper_exp</a>(self) -> FmtUpperExp<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html"title="trait core::fmt::UpperExp">UpperExp</a>, </span></h4></section></summary><divclass='docblock'><p>Causes <code>self</code> to use its <code>UpperExp</code> implementation when
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt_upper_hex"class="method trait-impl has-srclink"><ahref="#method.fmt_upper_hex"class="anchor"></a><h4class="code-header">fn <aclass="fnname">fmt_upper_hex</a>(self) -> FmtUpperHex<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html"title="trait core::fmt::UpperHex">UpperHex</a>, </span></h4></section></summary><divclass='docblock'><p>Causes <code>self</code> to use its <code>UpperHex</code> implementation when
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-Sha256%3CF%2C%20CS%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557">source</a></span><ahref="#impl-From%3CT%3E-for-Sha256%3CF%2C%20CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="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><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#559">source</a></span><ahref="#method.from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-Sha256%3CF%2C%20CS%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.35/src/tracing/instrument.rs.html#276">source</a></span><ahref="#impl-Instrument-for-Sha256%3CF%2C%20CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.35/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.instrument"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.35/src/tracing/instrument.rs.html#82">source</a></span><ahref="#method.instrument"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.35/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.35/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.35/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'><p>Instruments this type with the provided <ahref="https://docs.rs/tracing/0.1.35/tracing/span/struct.Span.html"title="Span"><code>Span</code></a>, returning an
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.in_current_span"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.35/src/tracing/instrument.rs.html#121">source</a></span><ahref="#method.in_current_span"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.35/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fnname">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.35/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'><p>Instruments this type with the <ahref="https://docs.rs/tracing/0.1.35/tracing/span/struct.Span.html#method.current">current</a><ahref="https://docs.rs/tracing/0.1.35/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Pipe-for-Sha256%3CF%2C%20CS%3E"class="impl has-srclink"><ahref="#impl-Pipe-for-Sha256%3CF%2C%20CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T> Pipe for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.pipe"class="method trait-impl has-srclink"><ahref="#method.pipe"class="anchor"></a><h4class="code-header">fn <aclass="fnname">pipe</a><R>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -> R) -> R</h4></section></summary><divclass='docblock'><p>Pipes by value. This is generally the method you want to use. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Init"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Init"class="anchor"></a><h4class="code-header">type <aclass="associatedtype">Init</a> = T</h4></section></summary><divclass='docblock'><p>The type for initializers.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.init"class="method trait-impl has-srclink"><ahref="#method.init"class="anchor"></a><h4class="code-header">unsafe fn <aclass="fnname">init</a>(init: <T as Pointable>::Init) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><divclass='docblock'><p>Initializes a with the given initializer. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.deref"class="method trait-impl has-srclink"><ahref="#method.deref"class="anchor"></a><h4class="code-header">unsafe fn <aclass="fnname">deref</a><'a>(ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T</h4></section></summary><divclass='docblock'><p>Dereferences the given pointer. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.deref_mut"class="method trait-impl has-srclink"><ahref="#method.deref_mut"class="anchor"></a><h4class="code-header">unsafe fn <aclass="fnname">deref_mut</a><'a>(ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T</h4></section></summary><divclass='docblock'><p>Mutably dereferences the given pointer. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.drop"class="method trait-impl has-srclink"><ahref="#method.drop"class="anchor"></a><h4class="code-header">unsafe fn <aclass="fnname">drop</a>(ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</h4></section></summary><divclass='docblock'><p>Drops the object pointed to by the given pointer. <a>Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Tap-for-Sha256%3CF%2C%20CS%3E"class="impl has-srclink"><ahref="#impl-Tap-for-Sha256%3CF%2C%20CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T> Tap for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap"class="method trait-impl has-srclink"><ahref="#method.tap"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap</a>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</h4></section></summary><divclass='docblock'><p>Immutable access to a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_mut"class="method trait-impl has-srclink"><ahref="#method.tap_mut"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_mut</a>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</h4></section></summary><divclass='docblock'><p>Mutable access to a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_borrow"class="method trait-impl has-srclink"><ahref="#method.tap_borrow"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_borrow</a><B>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B)) -> Self <spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><divclass='docblock'><p>Immutable access to the <code>Borrow<B></code> of a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_borrow_mut"class="method trait-impl has-srclink"><ahref="#method.tap_borrow_mut"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_borrow_mut</a><B>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B)) -> Self <spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><divclass='docblock'><p>Mutable access to the <code>BorrowMut<B></code> of a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_ref"class="method trait-impl has-srclink"><ahref="#method.tap_ref"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_ref</a><R>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>R)) -> Self <spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html"title="trait core::convert::AsRef">AsRef</a><R>,<br> R: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><divclass='docblock'><p>Immutable access to the <code>AsRef<R></code> view of a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_ref_mut"class="method trait-impl has-srclink"><ahref="#method.tap_ref_mut"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_ref_mut</a><R>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)) -> Self <spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html"title="trait core::convert::AsMut">AsMut</a><R>,<br> R: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><divclass='docblock'><p>Mutable access to the <code>AsMut<R></code> view of a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_deref"class="method trait-impl has-srclink"><ahref="#method.tap_deref"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_deref</a><T>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T)) -> Self <spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html"title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><divclass='docblock'><p>Immutable access to the <code>Deref::Target</code> of a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_deref_mut"class="method trait-impl has-srclink"><ahref="#method.tap_deref_mut"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_deref_mut</a><T>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)) -> Self <spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html"title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html"title="trait core::ops::deref::Deref">Deref</a>,<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><divclass='docblock'><p>Mutable access to the <code>Deref::Target</code> of a value. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_dbg"class="method trait-impl has-srclink"><ahref="#method.tap_dbg"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_dbg</a>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</h4></section></summary><divclass='docblock'><p>Calls <code>.tap()</code> only in debug builds, and is erased in release builds.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.tap_mut_dbg"class="method trait-impl has-srclink"><ahref="#method.tap_mut_dbg"class="anchor"></a><h4class="code-header">fn <aclass="fnname">tap_mut_dbg</a>(self, func: impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</h4></section></summary><divclass='docblock'><p>Calls <code>.tap_mut()</code> only in debug builds, and is erased in release
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryConv-for-Sha256%3CF%2C%20CS%3E"class="impl has-srclink"><ahref="#impl-TryConv-for-Sha256%3CF%2C%20CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T> TryConv for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_conv"class="method trait-impl has-srclink"><ahref="#method.try_conv"class="anchor"></a><h4class="code-header">fn <aclass="fnname">try_conv</a><T>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, Self::<aclass="associatedtype"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"title="type core::convert::TryInto::Error">Error</a>><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><T>, </span></h4></section></summary><divclass='docblock'><p>Attempts to convert <code>self</code> into <code>T</code> using <code>TryInto<T></code>. <a>Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-Sha256%3CF%2C%20CS%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#598">source</a></span><ahref="#impl-TryFrom%3CU%3E-for-Sha256%3CF%2C%20CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error-1"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-Sha256%3CF%2C%20CS%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#583">source</a></span><ahref="#impl-TryInto%3CU%3E-for-Sha256%3CF%2C%20CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="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><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.with_current_subscriber"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.35/src/tracing/instrument.rs.html#221">source</a></span><ahref="#method.with_current_subscriber"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.35/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber"class="fnname">with_current_subscriber</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.35/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><divclass='docblock'><p>Attaches the current <ahref="https://docs.rs/tracing/0.1.35/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a><ahref="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a