Files
GopherGate/target/doc/block_buffer/struct.BlockBuffer.html
2026-02-26 12:00:21 -05:00

92 lines
49 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Buffer for block processing of data."><title>BlockBuffer in block_buffer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="block_buffer" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="icon" href="https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.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]--><rustdoc-topbar><h2><a href="#">BlockBuffer</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../block_buffer/index.html"><img src="https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" alt="logo"></a><h2><a href="../block_buffer/index.html">block_<wbr>buffer</a><span class="version">0.10.4</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Block<wbr>Buffer</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.digest_blocks" title="digest_blocks">digest_blocks</a></li><li><a href="#method.digest_pad" title="digest_pad">digest_pad</a></li><li><a href="#method.get_data" title="get_data">get_data</a></li><li><a href="#method.get_pos" title="get_pos">get_pos</a></li><li><a href="#method.len64_padding_be" title="len64_padding_be">len64_padding_be</a></li><li><a href="#method.len64_padding_le" title="len64_padding_le">len64_padding_le</a></li><li><a href="#method.len128_padding_be" title="len128_padding_be">len128_padding_be</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.pad_with_zeros" title="pad_with_zeros">pad_with_zeros</a></li><li><a href="#method.remaining" title="remaining">remaining</a></li><li><a href="#method.reset" title="reset">reset</a></li><li><a href="#method.set" title="set">set</a></li><li><a href="#method.set_data" title="set_data">set_data</a></li><li><a href="#method.size" title="size">size</a></li><li><a href="#method.try_new" title="try_new">try_new</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-BlockBuffer%3CBlockSize,+Kind%3E" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-BlockBuffer%3CBlockSize,+Kind%3E" title="Debug">Debug</a></li><li><a href="#impl-Default-for-BlockBuffer%3CBlockSize,+Kind%3E" title="Default">Default</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-BlockBuffer%3CBlockSize,+Kind%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-BlockBuffer%3CBlockSize,+Kind%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-BlockBuffer%3CBlockSize,+Kind%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-BlockBuffer%3CBlockSize,+Kind%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-BlockBuffer%3CBlockSize,+Kind%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-BlockBuffer%3CBlockSize,+Kind%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate block_<wbr>buffer</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">block_buffer</a></div><h1>Struct <span class="struct">Block<wbr>Buffer</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/block_buffer/lib.rs.html#55-64">Source</a> </span></div><pre class="rust item-decl"><code>pub struct BlockBuffer&lt;BlockSize, Kind&gt;<div class="where">where
BlockSize: <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt; + <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a>&lt;<a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;,
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a>&lt;BlockSize, <a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,
Kind: <a class="trait" href="trait.BufferKind.html" title="trait block_buffer::BufferKind">BufferKind</a>,</div>{ <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Buffer for block processing of data.</p>
</div></details><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-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a class="src rightside" href="../src/block_buffer/lib.rs.html#99-241">Source</a><a href="#impl-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
BlockSize: <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt; + <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a>&lt;<a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;,
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a>&lt;BlockSize, <a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,
Kind: <a class="trait" href="trait.BufferKind.html" title="trait block_buffer::BufferKind">BufferKind</a>,</div></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/block_buffer/lib.rs.html#110-112">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>]) -&gt; Self</h4></section></summary><div class="docblock"><p>Create new buffer from slice.</p>
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
<p>If slice length is not valid for used buffer kind.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.try_new" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#118-133">Source</a><h4 class="code-header">pub fn <a href="#method.try_new" class="fn">try_new</a>(buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="struct" href="struct.Error.html" title="struct block_buffer::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Create new buffer from slice.</p>
<p>Returns an error if slice length is not valid for used buffer kind.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.digest_blocks" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#138-176">Source</a><h4 class="code-header">pub fn <a href="#method.digest_blocks" class="fn">digest_blocks</a>(
&amp;mut self,
input: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>],
compress: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;[<a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;]),
)</h4></section></summary><div class="docblock"><p>Digest data in <code>input</code> in blocks of size <code>BlockSize</code> using
the <code>compress</code> function, which accepts slice of blocks.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#180-182">Source</a><h4 class="code-header">pub fn <a href="#method.reset" class="fn">reset</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Reset buffer by setting cursor position to zero.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.pad_with_zeros" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#186-191">Source</a><h4 class="code-header">pub fn <a href="#method.pad_with_zeros" class="fn">pad_with_zeros</a>(&amp;mut self) -&gt; &amp;mut <a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;</h4></section></summary><div class="docblock"><p>Pad remaining data with zeros and return resulting block.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_pos" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#195-205">Source</a><h4 class="code-header">pub fn <a href="#method.get_pos" class="fn">get_pos</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Return current cursor position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_data" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#209-211">Source</a><h4 class="code-header">pub fn <a href="#method.get_data" class="fn">get_data</a>(&amp;self) -&gt; &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>]</h4></section></summary><div class="docblock"><p>Return slice of data stored inside the buffer.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#218-222">Source</a><h4 class="code-header">pub fn <a href="#method.set" class="fn">set</a>(&amp;mut self, buf: <a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;, pos: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Set buffer content and cursor position.</p>
<h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
<p>If <code>pos</code> is bigger or equal to block size.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.size" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#226-228">Source</a><h4 class="code-header">pub fn <a href="#method.size" class="fn">size</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Return size of the internal buffer in bytes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.remaining" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#232-234">Source</a><h4 class="code-header">pub fn <a href="#method.remaining" class="fn">remaining</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Return number of remaining bytes in the internal buffer.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-BlockBuffer%3CBlockSize,+Eager%3E" class="impl"><a class="src rightside" href="../src/block_buffer/lib.rs.html#243-338">Source</a><a href="#impl-BlockBuffer%3CBlockSize,+Eager%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize&gt; <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, <a class="struct" href="struct.Eager.html" title="struct block_buffer::Eager">Eager</a>&gt;<div class="where">where
BlockSize: <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt; + <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a>&lt;<a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;,
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a>&lt;BlockSize, <a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.set_data" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#250-281">Source</a><h4 class="code-header">pub fn <a href="#method.set_data" class="fn">set_data</a>(
&amp;mut self,
data: &amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>],
process_blocks: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;mut [<a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;]),
)</h4></section></summary><div class="docblock"><p>Set <code>data</code> to generated blocks.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.digest_pad" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#290-316">Source</a><h4 class="code-header">pub fn <a href="#method.digest_pad" class="fn">digest_pad</a>(
&amp;mut self,
delim: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>,
suffix: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>],
compress: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;<a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;),
)</h4></section></summary><div class="docblock"><p>Compress remaining data after padding it with <code>delim</code>, zeros and
the <code>suffix</code> bytes. If there is not enough unused space, <code>compress</code>
will be called twice.</p>
<h5 id="panics-2"><a class="doc-anchor" href="#panics-2">§</a>Panics</h5>
<p>If suffix length is bigger than block size.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.len64_padding_be" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#321-323">Source</a><h4 class="code-header">pub fn <a href="#method.len64_padding_be" class="fn">len64_padding_be</a>(
&amp;mut self,
data_len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u64.html">u64</a>,
compress: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;<a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;),
)</h4></section></summary><div class="docblock"><p>Pad message with 0x80, zeros and 64-bit message length using
big-endian byte order.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.len64_padding_le" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#328-330">Source</a><h4 class="code-header">pub fn <a href="#method.len64_padding_le" class="fn">len64_padding_le</a>(
&amp;mut self,
data_len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u64.html">u64</a>,
compress: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;<a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;),
)</h4></section></summary><div class="docblock"><p>Pad message with 0x80, zeros and 64-bit message length using
little-endian byte order.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.len128_padding_be" class="method"><a class="src rightside" href="../src/block_buffer/lib.rs.html#335-337">Source</a><h4 class="code-header">pub fn <a href="#method.len128_padding_be" class="fn">len128_padding_be</a>(
&amp;mut self,
data_len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u128.html">u128</a>,
compress: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;<a class="type" href="type.Block.html" title="type block_buffer::Block">Block</a>&lt;BlockSize&gt;),
)</h4></section></summary><div class="docblock"><p>Pad message with 0x80, zeros and 128-bit message length using
big-endian byte order.</p>
</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-Clone-for-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a class="src rightside" href="../src/block_buffer/lib.rs.html#84-97">Source</a><a href="#impl-Clone-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
BlockSize: <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt; + <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a>&lt;<a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;,
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a>&lt;BlockSize, <a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,
Kind: <a class="trait" href="trait.BufferKind.html" title="trait block_buffer::BufferKind">BufferKind</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/block_buffer/lib.rs.html#90-96">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; Self</h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a class="src rightside" href="../src/block_buffer/lib.rs.html#54">Source</a><a href="#impl-Debug-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
BlockSize: <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt; + <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a>&lt;<a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a>&lt;BlockSize, <a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,
Kind: <a class="trait" href="trait.BufferKind.html" title="trait block_buffer::BufferKind">BufferKind</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,</div></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/block_buffer/lib.rs.html#54">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/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-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a class="src rightside" href="../src/block_buffer/lib.rs.html#66-82">Source</a><a href="#impl-Default-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
BlockSize: <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt; + <a class="trait" href="../typenum/type_operators/trait.IsLess.html" title="trait typenum::type_operators::IsLess">IsLess</a>&lt;<a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;,
<a class="type" href="../typenum/operator_aliases/type.Le.html" title="type typenum::operator_aliases::Le">Le</a>&lt;BlockSize, <a class="type" href="../typenum/gen/consts/type.U256.html" title="type typenum::gen::consts::U256">U256</a>&gt;: <a class="trait" href="../typenum/marker_traits/trait.NonZero.html" title="trait typenum::marker_traits::NonZero">NonZero</a>,
Kind: <a class="trait" href="trait.BufferKind.html" title="trait block_buffer::BufferKind">BufferKind</a>,</div></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/block_buffer/lib.rs.html#72-81">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -&gt; Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.93.1/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-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a href="#impl-Freeze-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
&lt;BlockSize as <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt;&gt;::<a class="associatedtype" href="../generic_array/trait.ArrayLength.html#associatedtype.ArrayType" title="type generic_array::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a href="#impl-RefUnwindSafe-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
&lt;BlockSize as <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt;&gt;::<a class="associatedtype" href="../generic_array/trait.ArrayLength.html#associatedtype.ArrayType" title="type generic_array::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,
Kind: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a href="#impl-Send-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
Kind: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a href="#impl-Sync-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
Kind: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a href="#impl-Unpin-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
&lt;BlockSize as <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt;&gt;::<a class="associatedtype" href="../generic_array/trait.ArrayLength.html#associatedtype.ArrayType" title="type generic_array::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
Kind: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-BlockBuffer%3CBlockSize,+Kind%3E" class="impl"><a href="#impl-UnwindSafe-for-BlockBuffer%3CBlockSize,+Kind%3E" class="anchor">§</a><h3 class="code-header">impl&lt;BlockSize, Kind&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.BlockBuffer.html" title="struct block_buffer::BlockBuffer">BlockBuffer</a>&lt;BlockSize, Kind&gt;<div class="where">where
&lt;BlockSize as <a class="trait" href="../generic_array/trait.ArrayLength.html" title="trait generic_array::ArrayLength">ArrayLength</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>&gt;&gt;::<a class="associatedtype" href="../generic_array/trait.ArrayLength.html#associatedtype.ArrayType" title="type generic_array::ArrayLength::ArrayType">ArrayType</a>: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
Kind: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</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/1.93.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/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/1.93.1/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/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/1.93.1/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#547">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#549">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&amp;self, dest: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</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/1.93.1/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="../src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="../typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></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/1.93.1/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>