-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ edc0f10 🚀
- Loading branch information
0 parents
commit 4eec752
Showing
19,543 changed files
with
651,016 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bit_set" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.1 (3f5fd8dd4 2024-08-06)" data-channel="1.80.1" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bit_set/index.html">bit_set</a><span class="version">0.5.3</span></h2></div><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><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.BitSet.html">BitSet</a></li><li><a href="struct.Difference.html">Difference</a></li><li><a href="struct.Intersection.html">Intersection</a></li><li><a href="struct.Iter.html">Iter</a></li><li><a href="struct.SymmetricDifference.html">SymmetricDifference</a></li><li><a href="struct.Union.html">Union</a></li></ul></section></div></main></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!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="An implementation of a set using a bit vector as an underlying representation for holding unsigned numerical elements."><title>bit_set - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bit_set" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.1 (3f5fd8dd4 2024-08-06)" data-channel="1.80.1" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc 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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bit_set/index.html">bit_set</a><span class="version">0.5.3</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#structs">Structs</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">bit_set</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bit_set/lib.rs.html#11-1608">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>An implementation of a set using a bit vector as an underlying | ||
representation for holding unsigned numerical elements.</p> | ||
<p>It should also be noted that the amount of storage necessary for holding a | ||
set of objects is proportional to the maximum of the objects when viewed | ||
as a <code>usize</code>.</p> | ||
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2> | ||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet; | ||
|
||
<span class="comment">// It's a regular set | ||
</span><span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::new(); | ||
s.insert(<span class="number">0</span>); | ||
s.insert(<span class="number">3</span>); | ||
s.insert(<span class="number">7</span>); | ||
|
||
s.remove(<span class="number">7</span>); | ||
|
||
<span class="kw">if </span>!s.contains(<span class="number">7</span>) { | ||
<span class="macro">println!</span>(<span class="string">"There is no 7"</span>); | ||
} | ||
|
||
<span class="comment">// Can initialize from a `BitVec` | ||
</span><span class="kw">let </span>other = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b11010000</span>]); | ||
|
||
s.union_with(<span class="kw-2">&</span>other); | ||
|
||
<span class="comment">// Print 0, 1, 3 in some order | ||
</span><span class="kw">for </span>x <span class="kw">in </span>s.iter() { | ||
<span class="macro">println!</span>(<span class="string">"{}"</span>, x); | ||
} | ||
|
||
<span class="comment">// Can convert back to a `BitVec` | ||
</span><span class="kw">let </span>bv = s.into_bit_vec(); | ||
<span class="macro">assert!</span>(bv[<span class="number">3</span>]);</code></pre></div> | ||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a></div></li><li><div class="item-name"><a class="struct" href="struct.Difference.html" title="struct bit_set::Difference">Difference</a></div></li><li><div class="item-name"><a class="struct" href="struct.Intersection.html" title="struct bit_set::Intersection">Intersection</a></div></li><li><div class="item-name"><a class="struct" href="struct.Iter.html" title="struct bit_set::Iter">Iter</a></div><div class="desc docblock-short">An iterator for <code>BitSet</code>.</div></li><li><div class="item-name"><a class="struct" href="struct.SymmetricDifference.html" title="struct bit_set::SymmetricDifference">SymmetricDifference</a></div></li><li><div class="item-name"><a class="struct" href="struct.Union.html" title="struct bit_set::Union">Union</a></div></li></ul></section></div></main></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
window.SIDEBAR_ITEMS = {"struct":["BitSet","Difference","Intersection","Iter","SymmetricDifference","Union"]}; |
Oops, something went wrong.