<!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."><title>Sha256 in halo2_gadgets::sha256 - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><linkrel="stylesheet"href="../../static.files/normalize-76eba96aa4d2e634.css"><linkrel="stylesheet"href="../../static.files/rustdoc-0ef3deca4ed45ad8.css"id="mainThemeStyle"><linkrel="stylesheet"id="themeStyle"href="../../static.files/light-f501212b8b071243.css"><linkrel="stylesheet"disabledhref="../../static.files/dark-e92fc12c34ff89d3.css"><linkrel="stylesheet"disabledhref="../../static.files/ayu-a0090c8b1ced384f.css"><scriptsrc="../../static.files/storage-3891ce972e3a2bf8.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../static.files/main-364b95f387bc3166.js"></script><noscript><linkrel="stylesheet"href="../../static.files/noscript-13285aec31fa243e.css"></noscript><linkrel="alternate icon"type="image/png"href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><linkrel="alternate icon"type="image/png"href="../../static.files/favicon-32x32-422f7d1d52889060.png"><linkrel="icon"type="image/svg+xml"href="../../static.files/favicon-2c020d218678b618.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="logo-container"href="../../halo2_gadgets/index.html"><imgclass="rust-logo"src="../../static.files/rust-logo-151179464ae7ed46.svg"alt="logo"></a><h2></h2></nav><navclass="sidebar"><aclass="logo-container"href="../../halo2_gadgets/index.html"><imgclass="rust-logo"src="../../static.files/rust-logo-151179464ae7ed46.svg"alt="logo"></a><h2class="location"><ahref="#">Sha256</a></h2><divclass="sidebar-elems"><section><h3><ahref="#implementations">Methods</a></h3><ulclass="block"><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><h3><ahref="#trait-implementations">Trait Implementations</a></h3><ulclass="block"><li><ahref="#impl-Debug-for-Sha256%3CF,+CS%3E">Debug</a></li></ul><h3><ahref="#synthetic-implementations">Auto Trait Implementations</a></h3><ulclass="block"><li><ahref="#impl-RefUnwindSafe-for-Sha256%3CF,+CS%3E">RefUnwindSafe</a></li><li><ahref="#impl-Send-for-Sha256%3CF,+CS%3E">Send</a></li><li><ahref="#impl-Sync-for-Sha256%3CF,+CS%3E">Sync</a></li><li><ahref="#impl-Unpin-for-Sha256%3CF,+CS%3E">Unpin</a></li><li><ahref="#impl-UnwindSafe-for-Sha256%3CF,+CS%3E">UnwindSafe</a></li></ul><h3><ahref="#blanket-implementations">Blanket Implementations</a></h3><ulclass="block"><li><ahref="#impl-Any-for-Sha256%3CF,+CS%3E">Any</a></li><li><ahref="#impl-Borrow%3CT%3E-for-Sha256%3CF,+CS%3E">Borrow<T></a></li><li><ahref="#impl-BorrowMut%3CT%3E-for-Sha256%3CF,+CS%3E">BorrowMut<T></a></li><li><ahref="#impl-Conv-for-Sha256%3CF,+CS%3E">Conv</a></li><li><ahref="#impl-FmtForward-for-Sha256%3CF,+CS%3E">FmtForward</a></li><li><ahref="#impl-From%3CT%3E-for-Sha256%3CF,+CS%3E">From<T></a></li><li><ahref="#impl-Instrument-for-Sha256%3CF,+CS%3E">Instrument</a></li><li><ahref="#impl-Into%3CU%3E-for-Sha256%3CF,+CS%3E">Into<U></a></li><li><ahref="#impl-Pipe-for-Sha256%3CF,+CS%3E">Pipe</a></li><li><ahref="#impl-Pointable-for-Sha256%3CF,+CS%3E">Pointable</a></li><li><ahref="#impl-Tap-for-Sha256%3CF,+CS%3E">Tap</a></li><li><ahref="#impl-TryConv-for-Sha256%3CF,+CS%3E">TryConv</a></li><li><ahref="#impl-TryFrom%3CU%3E-for-Sha256%3CF,+CS%3E">TryFrom<U></a></li><li><ahref="#impl-TryInto%3CU%3E-for-Sha256%3CF,+CS%3E">TryInto<U></a></li><li><ahref="#impl-VZip%3CV%3E-for-Sha256%3CF,+CS%3E">VZip<V></a></li><li><ahref="#impl-WithSubscriber-for-Sha256%3CF,+CS%3E">WithSubscriber</a></li></ul></section><h2><ahref="index.html">In halo2_gadgets::sha256</a></h2></div></nav><main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><inputclass="search-input"name="search"aria-label="Run search in the documentation"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"title="help"tabindex="-1"><ahref="../../help.html">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Struct <ahref="../index.html">halo2_gadgets</a>::<wbr><ahref="index.html">sha256</a>::<wbr><aclass="struct"href="#">Sha256</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="srclink"href="../../src/halo2_gadgets/sha256.rs.html#66-71">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub struct Sha256<F: Field,
) -><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,
<CS as <aclass="trait"href="trait.Sha256Instructions.html"title="trait halo2_gadgets::sha256::Sha256Instructions">Sha256Instructions</a><F>>::<aclass="associatedtype"href="trait.Sha256Instructions.html#associatedtype.BlockWord"title="type halo2_gadgets::sha256::Sha256Instructions::BlockWord">BlockWord</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html"title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
<CS as <aclass="trait"href="trait.Sha256Instructions.html"title="trait halo2_gadgets::sha256::Sha256Instructions">Sha256Instructions</a><F>>::<aclass="associatedtype"href="trait.Sha256Instructions.html#associatedtype.State"title="type halo2_gadgets::sha256::Sha256Instructions::State">State</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html"title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</span></h3></section></div><h2id="blanket-implementations"class="small-section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor">§</a></h2><divid="blanket-implementations-list"><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Any-for-Sha256%3CF,+CS%3E"class="impl"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#200">source</a><ahref="#impl-Any-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T<spanclass="where fmt-newline">where
T: 'static + ?<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="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#201">source</a><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id"class="fn">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-Sha256%3CF,+CS%3E"class="impl"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">source</a><ahref="#impl-Borrow%3CT%3E-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T<spanclass="where fmt-newline">where
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="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/91522"title="Tracking issue for const_borrow">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213">source</a></span><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fn">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a></h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-Sha256%3CF,+CS%3E"class="impl"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220">source</a><ahref="#impl-BorrowMut%3CT%3E-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<spanclass="where fmt-newline">where
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="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/91522"title="Tracking issue for const_borrow">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221">source</a></span><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fn">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a></h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Conv-for-Sha256%3CF,+CS%3E"class="impl"><ahref="#impl-Conv-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T> Conv for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.conv"class="method trait-impl"><ahref="#method.conv"class="anchor">§</a><h4class="code-header">fn <aclass="fn">conv</a><T>(self) -> T<spanclass="where fmt-newline">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</span></h4></section></summary><divclass='docblock'>Converts <code>self</code> into <code>T</code> using <code>Into<T></code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-FmtForward-for-Sha256%3CF,+CS%3E"class="impl"><ahref="#impl-FmtForward-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T> FmtForward for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt_binary"class="method trait-impl"><ahref="#method.fmt_binary"class="anchor">§</a><h4class="code-header">fn <aclass="fn">fmt_binary</a>(self) -> FmtBinary<Self><spanclass="where fmt-newline">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html"title="trait core::fmt::Binary">Binary</a>,</span></h4></section></summary><divclass='docblock'>Causes <code>self</code> to use its <code>Binary</code> implementation when <code>Debug</code>-formatted.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt_display"class="method trait-impl"><ahref="#method.fmt_display"class="anchor">§</a><h4class="code-header">fn <aclass="fn">fmt_display</a>(self) -> FmtDisplay<Self><spanclass="where fmt-newline">where
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'>Causes <code>self</code> to use its <code>Display</code> implementation when
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'>Causes <code>self</code> to use its <code>LowerExp</code> implementation when
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'>Causes <code>self</code> to use its <code>LowerHex</code> implementation when
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'>Causes <code>self</code> to use its <code>Octal</code> implementation when <code>Debug</code>-formatted.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt_pointer"class="method trait-impl"><ahref="#method.fmt_pointer"class="anchor">§</a><h4class="code-header">fn <aclass="fn">fmt_pointer</a>(self) -> FmtPointer<Self><spanclass="where fmt-newline">where
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'>Causes <code>self</code> to use its <code>Pointer</code> implementation when
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'>Causes <code>self</code> to use its <code>UpperExp</code> implementation when
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'>Causes <code>self</code> to use its <code>UpperHex</code> implementation when
<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a Self</a>: for<'a><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,</span></h4></section></summary><divclass='docblock'>Formats each item in a sequence. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-Sha256%3CF,+CS%3E"class="impl"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#733">source</a><ahref="#impl-From%3CT%3E-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">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="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><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#736">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="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-Sha256%3CF,+CS%3E"class="impl"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><ahref="#impl-Instrument-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.instrument"class="method trait-impl"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a><ahref="#method.instrument"class="anchor">§</a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument"class="fn">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'>Instruments this type with the provided <ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.in_current_span"class="method trait-impl"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a><ahref="#method.in_current_span"class="anchor">§</a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fn">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'>Instruments this type with the <ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current">current</a><ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
Self: <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'>Pipes by value. This is generally the method you want to use. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.pipe_ref"class="method trait-impl"><ahref="#method.pipe_ref"class="anchor">§</a><h4class="code-header">fn <aclass="fn">pipe_ref</a><'a, R>(&'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</a>) -> R) -> R<spanclass="where fmt-newline">where
R: 'a,</span></h4></section></summary><divclass='docblock'>Borrows <code>self</code> and passes that borrow into the pipe function. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.pipe_ref_mut"class="method trait-impl"><ahref="#method.pipe_ref_mut"class="anchor">§</a><h4class="code-header">fn <aclass="fn">pipe_ref_mut</a><'a, R>(&'a mut 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 mut Self</a>) -> R) -> R<spanclass="where fmt-newline">where
R: 'a,</span></h4></section></summary><divclass='docblock'>Mutably borrows <code>self</code> and passes that borrow into the pipe function. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.pipe_borrow"class="method trait-impl"><ahref="#method.pipe_borrow"class="anchor">§</a><h4class="code-header">fn <aclass="fn">pipe_borrow</a><'a, B, R>(&'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 B</a>) -> R) -> R<spanclass="where fmt-newline">where
T: 'a + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,
R: 'a,</span></h4></section></summary><divclass='docblock'>Mutably borrows <code>self</code>, then passes <code>self.deref_mut()</code> into the pipe
function.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Pointable-for-Sha256%3CF,+CS%3E"class="impl"><ahref="#impl-Pointable-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T> Pointable for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedconstant.ALIGN"class="associatedconstant trait-impl"><ahref="#associatedconstant.ALIGN"class="anchor">§</a><h4class="code-header">const <aclass="constant">ALIGN</a>: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a> = mem::align_of::<T>()</h4></section></summary><divclass='docblock'>The alignment of pointer.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Init"class="associatedtype trait-impl"><ahref="#associatedtype.Init"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Init</a> = T</h4></section></summary><divclass='docblock'>The type for initializers.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.init"class="method trait-impl"><ahref="#method.init"class="anchor">§</a><h4class="code-header">unsafe fn <aclass="fn">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'>Initializes a with the given initializer. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.deref"class="method trait-impl"><ahref="#method.deref"class="anchor">§</a><h4class="code-header">unsafe fn <aclass="fn">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 T</a></h4></section></summary><divclass='docblock'>Dereferences the given pointer. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.deref_mut"class="method trait-impl"><ahref="#method.deref_mut"class="anchor">§</a><h4class="code-header">unsafe fn <aclass="fn">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 T</a></h4></section></summary><divclass='docblock'>Mutably dereferences the given pointer. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.drop"class="method trait-impl"><ahref="#method.drop"class="anchor">§</a><h4class="code-header">unsafe fn <aclass="fn">drop</a>(ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</h4></section></summary><divclass='docblock'>Drops the object pointed to by the given pointer. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Tap-for-Sha256%3CF,+CS%3E"class="impl"><ahref="#impl-Tap-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<T> Tap for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.tap"class="method trait-impl"><ahref="#method.tap"class="anchor">§</a><h4class="code-header">fn <aclass="fn">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">&Self</a>)) -> Self</h4></section></summary><divclass='docblock'>Immutable access to a value. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.tap_mut"class="method trait-impl"><ahref="#method.tap_
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'>Mutable access to the <code>Deref::Target</code> of a value. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.tap_dbg"class="method trait-impl"><ahref="#method.tap_dbg"class="anchor">§</a><h4class="code-header">fn <aclass="fn">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">&Self</a>)) -> Self</h4></section></summary><divclass='docblock'>Calls <code>.tap()</code> only in debug builds, and is erased in release builds.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.tap_mut_dbg"class="method trait-impl"><ahref="#method.tap_mut_dbg"class="anchor">§</a><h4class="code-header">fn <aclass="fn">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 Self</a>)) -> Self</h4></section></summary><divclass='docblock'>Calls <code>.tap_mut()</code> only in debug builds, and is erased in release
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'>Calls <code>.tap_borrow()</code> only in debug builds, and is erased in release
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'>Calls <code>.tap_borrow_mut()</code> only in debug builds, and is erased in release
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'>Calls <code>.tap_ref()</code> only in debug builds, and is erased in release
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'>Calls <code>.tap_ref_mut()</code> only in debug builds, and is erased in release
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'>Calls <code>.tap_deref()</code> only in debug builds, and is erased in release
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'>Calls <code>.tap_deref_mut()</code> only in debug builds, and is erased in release
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'>Attempts to convert <code>self</code> into <code>T</code> using <code>TryInto<T></code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-Sha256%3CF,+CS%3E"class="impl"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#775">source</a><ahref="#impl-TryFrom%3CU%3E-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">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
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="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><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'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><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#781">source</a></span><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<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'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-Sha256%3CF,+CS%3E"class="impl"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760">source</a><ahref="#impl-TryInto%3CU%3E-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">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
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="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><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'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><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#766">source</a></span><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <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'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-VZip%3CV%3E-for-Sha256%3CF,+CS%3E"class="impl"><ahref="#impl-VZip%3CV%3E-for-Sha256%3CF,+CS%3E"class="anchor">§</a><h3class="code-header">impl<V, T> VZip<V> for T<spanclass="where fmt-newline">where
S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://docs.rs/tracing-core/0.1.22/tracing_core/dispatcher/struct.Dispatch.html"title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>>,</span></h4></section></summary><divclass='docblock'>Attaches the provided <ahref="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="WithDispatch"><code>WithDispatch</code></a> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.with_current_subscriber"class="method trait-impl"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a><ahref="#method.with_current_subscriber"class="anchor">§</a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber"class="fn">with_current_subscriber</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><divclass='docblock'>Attaches the current <ahref="https://docs.rs/tracing/0.1.37/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