added the heapless crate and added new docs
This commit is contained in:
parent
a33a57bd49
commit
ba5662a17e
230 changed files with 48215 additions and 40 deletions
1
docs/doc/hash32/all.html
Normal file
1
docs/doc/hash32/all.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="List of all items in this crate"><title>List of all items in this crate</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="hash32" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0-nightly (500647fd8 2023-07-27)" data-channel="nightly" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-6d2c9675f3d09c26.css" data-theme-dark-css="dark-45ceb8f2e522f4d1.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-6d2c9675f3d09c26.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-45ceb8f2e522f4d1.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Crate hash32</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="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"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="struct.BuildHasherDefault.html">BuildHasherDefault</a></li><li><a href="struct.FnvHasher.html">FnvHasher</a></li><li><a href="struct.Murmur3Hasher.html">Murmur3Hasher</a></li></ul><h3 id="traits">Traits</h3><ul class="all-items"><li><a href="trait.BuildHasher.html">BuildHasher</a></li><li><a href="trait.Hash.html">Hash</a></li><li><a href="trait.Hasher.html">Hasher</a></li></ul></section></div></main></body></html>
|
11
docs/doc/hash32/fnv/struct.Hasher.html
Normal file
11
docs/doc/hash32/fnv/struct.Hasher.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../hash32/struct.FnvHasher.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../hash32/struct.FnvHasher.html">../../hash32/struct.FnvHasher.html</a>...</p>
|
||||
<script>location.replace("../../hash32/struct.FnvHasher.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
46
docs/doc/hash32/index.html
Normal file
46
docs/doc/hash32/index.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
<!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="32-bit hashing machinery"><title>hash32 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="hash32" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0-nightly (500647fd8 2023-07-27)" data-channel="nightly" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-6d2c9675f3d09c26.css" data-theme-dark-css="dark-45ceb8f2e522f4d1.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-6d2c9675f3d09c26.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-45ceb8f2e522f4d1.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Crate hash32</a></h2><div class="sidebar-elems"><ul class="block"><li class="version">Version 0.2.1</li><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="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"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">hash32</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/hash32/lib.rs.html#1-363">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>32-bit hashing machinery</p>
|
||||
<h2 id="why"><a href="#why">Why?</a></h2>
|
||||
<p>Because 32-bit architectures are a thing (e.g. ARM Cortex-M) and you don’t want your hashing
|
||||
function to pull in a bunch of slow 64-bit compiler intrinsics (software implementations of
|
||||
64-bit operations).</p>
|
||||
<h2 id="relationship-to-corehash"><a href="#relationship-to-corehash">Relationship to <code>core::hash</code></a></h2>
|
||||
<p>This crate exposes the same interfaces you’ll find in <a href="https://doc.rust-lang.org/std/hash/index.html"><code>core::hash</code></a>: <code>Hash</code>, <code>Hasher</code>,
|
||||
<code>BuildHasher</code> and <code>BuildHasherDefault</code>. The main difference is that <code>hash32::Hasher::finish</code>
|
||||
returns a <code>u32</code> instead of <code>u64</code>, and the contract of <code>hash32::Hasher</code> forbids the implementer
|
||||
from performing 64-bit (or 128-bit) operations while computing the hash.</p>
|
||||
<h2 id="derivehash32"><a href="#derivehash32"><code>#[derive(Hash32)]</code></a></h2>
|
||||
<p>The easiest way to implement <code>hash32::Hash</code> for a <code>struct</code> is to use the <code>#[derive(Hash32)]</code>.</p>
|
||||
<p>Note that you need to <em>explicitly</em> depend on both <code>hash32</code> <em>and</em> <code>hash32_derive</code>; both crates
|
||||
must appear in your <code>Cargo.toml</code>.</p>
|
||||
|
||||
<div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="kw">use </span>hash32_derive::Hash32;
|
||||
|
||||
<span class="attr">#[derive(Hash32)]
|
||||
</span><span class="kw">struct </span>Ipv4Addr([u8; <span class="number">4</span>]);
|
||||
|
||||
</code></pre></div>
|
||||
<h2 id="hashers"><a href="#hashers">Hashers</a></h2>
|
||||
<p>This crate provides implementations of the following 32-bit hashing algorithms:</p>
|
||||
<ul>
|
||||
<li><a href="struct.FnvHasher.html">Fowler-Noll-Vo</a></li>
|
||||
<li><a href="struct.Murmur3Hasher.html">MurmurHash3</a></li>
|
||||
</ul>
|
||||
<h2 id="msrv"><a href="#msrv">MSRV</a></h2>
|
||||
<p>This crate is guaranteed to compile on latest stable Rust. It <em>might</em> compile on older
|
||||
versions but that may change in any new patch release.</p>
|
||||
<h2 id="future"><a href="#future">Future</a></h2>
|
||||
<p>In the future we’d like to deprecate this crate in favor of making <code>core::hash::Hasher</code> generic
|
||||
over the size of the computed hash. Below is shown the planned change (but it doesn’t work due
|
||||
to limitations in the <code>associated_type_defaults</code> feature):</p>
|
||||
|
||||
<div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="attr">#![feature(associated_type_defaults)]
|
||||
|
||||
</span><span class="kw">trait </span>Hasher {
|
||||
<span class="kw">type </span>Hash = u64; <span class="comment">// default type for backwards compatibility
|
||||
|
||||
</span><span class="kw">fn </span>finish(<span class="kw-2">&</span><span class="self">self</span>) -> <span class="self">Self</span>::Hash; <span class="comment">// changed
|
||||
</span><span class="kw">fn </span>write(<span class="kw-2">&mut </span><span class="self">self</span>, bytes: <span class="kw-2">&</span>[u8]);
|
||||
}</code></pre></div>
|
||||
<p>With this change a single <code>#[derive(Hash)]</code> would enough to make a type hashable with 32-bit and
|
||||
64-bit hashers.</p>
|
||||
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.BuildHasherDefault.html" title="struct hash32::BuildHasherDefault">BuildHasherDefault</a></div><div class="desc docblock-short">See <a href="https://doc.rust-lang.org/core/hash/struct.BuildHasherDefault.html"><code>core::hash::BuildHasherDefault</code></a> for details</div></li><li><div class="item-name"><a class="struct" href="struct.FnvHasher.html" title="struct hash32::FnvHasher">FnvHasher</a></div><div class="desc docblock-short">32-bit Fowler-Noll-Vo hasher</div></li><li><div class="item-name"><a class="struct" href="struct.Murmur3Hasher.html" title="struct hash32::Murmur3Hasher">Murmur3Hasher</a></div><div class="desc docblock-short">32-bit MurmurHash3 hasher</div></li></ul><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.BuildHasher.html" title="trait hash32::BuildHasher">BuildHasher</a></div><div class="desc docblock-short">See <a href="https://doc.rust-lang.org/core/hash/trait.BuildHasher.html"><code>core::hash::BuildHasher</code></a> for details</div></li><li><div class="item-name"><a class="trait" href="trait.Hash.html" title="trait hash32::Hash">Hash</a></div><div class="desc docblock-short">See <a href="https://doc.rust-lang.org/core/hash/trait.Hash.html"><code>core::hash::Hash</code></a> for details</div></li><li><div class="item-name"><a class="trait" href="trait.Hasher.html" title="trait hash32::Hasher">Hasher</a></div><div class="desc docblock-short">See <a href="https://doc.rust-lang.org/core/hash/trait.Hasher.html"><code>core::hash::Hasher</code></a> for details</div></li></ul></section></div></main></body></html>
|
11
docs/doc/hash32/murmur3/struct.Hasher.html
Normal file
11
docs/doc/hash32/murmur3/struct.Hasher.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../hash32/struct.Murmur3Hasher.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../hash32/struct.Murmur3Hasher.html">../../hash32/struct.Murmur3Hasher.html</a>...</p>
|
||||
<script>location.replace("../../hash32/struct.Murmur3Hasher.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
1
docs/doc/hash32/sidebar-items.js
Normal file
1
docs/doc/hash32/sidebar-items.js
Normal file
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["BuildHasherDefault","FnvHasher","Murmur3Hasher"],"trait":["BuildHasher","Hash","Hasher"]};
|
24
docs/doc/hash32/struct.BuildHasherDefault.html
Normal file
24
docs/doc/hash32/struct.BuildHasherDefault.html
Normal file
File diff suppressed because one or more lines are too long
12
docs/doc/hash32/struct.FnvHasher.html
Normal file
12
docs/doc/hash32/struct.FnvHasher.html
Normal file
File diff suppressed because one or more lines are too long
12
docs/doc/hash32/struct.Murmur3Hasher.html
Normal file
12
docs/doc/hash32/struct.Murmur3Hasher.html
Normal file
File diff suppressed because one or more lines are too long
10
docs/doc/hash32/trait.BuildHasher.html
Normal file
10
docs/doc/hash32/trait.BuildHasher.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!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="See `core::hash::BuildHasher` for details"><title>BuildHasher in hash32 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="hash32" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0-nightly (500647fd8 2023-07-27)" data-channel="nightly" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-6d2c9675f3d09c26.css" data-theme-dark-css="dark-45ceb8f2e522f4d1.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-6d2c9675f3d09c26.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-45ceb8f2e522f4d1.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">BuildHasher</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Hasher">Hasher</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.build_hasher">build_hasher</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In hash32</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="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"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="index.html">hash32</a>::<wbr><a class="trait" href="#">BuildHasher</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/hash32/lib.rs.html#150-160">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait BuildHasher {
|
||||
type <a href="#associatedtype.Hasher" class="associatedtype">Hasher</a>: <a class="trait" href="trait.Hasher.html" title="trait hash32::Hasher">Hasher</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.build_hasher" class="fn">build_hasher</a>(&self) -> Self::<a class="associatedtype" href="trait.BuildHasher.html#associatedtype.Hasher" title="type hash32::BuildHasher::Hasher">Hasher</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>See <a href="https://doc.rust-lang.org/core/hash/trait.BuildHasher.html"><code>core::hash::BuildHasher</code></a> for details</p>
|
||||
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Hasher" class="method"><a class="src rightside" href="../src/hash32/lib.rs.html#154">source</a><h4 class="code-header">type <a href="#associatedtype.Hasher" class="associatedtype">Hasher</a>: <a class="trait" href="trait.Hasher.html" title="trait hash32::Hasher">Hasher</a></h4></section></summary><div class="docblock"><p>See <a href="https://doc.rust-lang.org/std/hash/trait.BuildHasher.html#associatedtype.Hasher"><code>core::hash::BuildHasher::Hasher</code></a></p>
|
||||
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.build_hasher" class="method"><a class="src rightside" href="../src/hash32/lib.rs.html#159">source</a><h4 class="code-header">fn <a href="#tymethod.build_hasher" class="fn">build_hasher</a>(&self) -> Self::<a class="associatedtype" href="trait.BuildHasher.html#associatedtype.Hasher" title="type hash32::BuildHasher::Hasher">Hasher</a></h4></section></summary><div class="docblock"><p>See <a href="https://doc.rust-lang.org/std/hash/trait.BuildHasher.html#tymethod.build_hasher"><code>core::hash::BuildHasher.build_hasher</code></a></p>
|
||||
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-BuildHasher-for-BuildHasherDefault%3CH%3E" class="impl"><a class="src rightside" href="../src/hash32/lib.rs.html#136-145">source</a><a href="#impl-BuildHasher-for-BuildHasherDefault%3CH%3E" class="anchor">§</a><h3 class="code-header">impl<H> <a class="trait" href="trait.BuildHasher.html" title="trait hash32::BuildHasher">BuildHasher</a> for <a class="struct" href="struct.BuildHasherDefault.html" title="struct hash32::BuildHasherDefault">BuildHasherDefault</a><H><span class="where fmt-newline">where
|
||||
H: Default + <a class="trait" href="trait.Hasher.html" title="trait hash32::Hasher">Hasher</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Hasher-1" class="associatedtype trait-impl"><a href="#associatedtype.Hasher-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hasher" class="associatedtype">Hasher</a> = H</h4></section></div></details></div><script src="../implementors/hash32/trait.BuildHasher.js" async></script></section></div></main></body></html>
|
119
docs/doc/hash32/trait.Hash.html
Normal file
119
docs/doc/hash32/trait.Hash.html
Normal file
File diff suppressed because one or more lines are too long
11
docs/doc/hash32/trait.Hasher.html
Normal file
11
docs/doc/hash32/trait.Hasher.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!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="See `core::hash::Hasher` for details"><title>Hasher in hash32 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="hash32" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0-nightly (500647fd8 2023-07-27)" data-channel="nightly" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-6d2c9675f3d09c26.css" data-theme-dark-css="dark-45ceb8f2e522f4d1.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-6d2c9675f3d09c26.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-45ceb8f2e522f4d1.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../hash32/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Hasher</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.finish">finish</a></li><li><a href="#tymethod.write">write</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In hash32</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="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"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="index.html">hash32</a>::<wbr><a class="trait" href="#">Hasher</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/hash32/lib.rs.html#170-180">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Hasher {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.finish" class="fn">finish</a>(&self) -> u32;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.write" class="fn">write</a>(&mut self, bytes: &[u8]);
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>See <a href="https://doc.rust-lang.org/core/hash/trait.Hasher.html"><code>core::hash::Hasher</code></a> for details</p>
|
||||
<h2 id="contract"><a href="#contract">Contract</a></h2>
|
||||
<p>Implementers of this trait must <em>not</em> perform any 64-bit (or 128-bit) operation while computing
|
||||
the hash.</p>
|
||||
</div></details><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.finish" class="method"><a class="src rightside" href="../src/hash32/lib.rs.html#174">source</a><h4 class="code-header">fn <a href="#tymethod.finish" class="fn">finish</a>(&self) -> u32</h4></section></summary><div class="docblock"><p>See <a href="https://doc.rust-lang.org/std/hash/trait.Hasher.html#tymethod.finish"><code>core::hash::Hasher.finish</code></a></p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.write" class="method"><a class="src rightside" href="../src/hash32/lib.rs.html#179">source</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&mut self, bytes: &[u8])</h4></section></summary><div class="docblock"><p>See <a href="https://doc.rust-lang.org/std/hash/trait.Hasher.html#tymethod.write"><code>core::hash::Hasher.write</code></a></p>
|
||||
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Hasher-for-Hasher" class="impl"><a class="src rightside" href="../src/hash32/fnv.rs.html#15-28">source</a><a href="#impl-Hasher-for-Hasher" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Hasher.html" title="trait hash32::Hasher">Hasher</a> for hash32::<a class="struct" href="struct.FnvHasher.html" title="struct hash32::FnvHasher">FnvHasher</a></h3></section><section id="impl-Hasher-for-Hasher-1" class="impl"><a class="src rightside" href="../src/hash32/murmur3.rs.html#79-171">source</a><a href="#impl-Hasher-for-Hasher-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Hasher.html" title="trait hash32::Hasher">Hasher</a> for hash32::<a class="struct" href="struct.Murmur3Hasher.html" title="struct hash32::Murmur3Hasher">Murmur3Hasher</a></h3></section></div><script src="../implementors/hash32/trait.Hasher.js" async></script></section></div></main></body></html>
|
Loading…
Add table
Add a link
Reference in a new issue