Skip to content

Commit 786e3b0

Browse files
Deploying to gh-pages from @ 097f243 🚀
1 parent 22be8b1 commit 786e3b0

9,450 files changed

Lines changed: 200882 additions & 18959 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/bit_set/all.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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-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-17e0aaed.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.96.0-nightly (02c7f9bec 2026-04-10)" data-channel="nightly" data-search-js="search-b5634cc7.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../static.files/storage-41dd4d93.js"></script><script defer src="../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod sys"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[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="#">All</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bit_set/index.html">bit_set</a><span class="version">0.9.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><h1>List of all items</h1><rustdoc-toolbar></rustdoc-toolbar></div><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>

api/bit_set/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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="Description"><title>bit_set - 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-17e0aaed.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.96.0-nightly (02c7f9bec 2026-04-10)" data-channel="nightly" data-search-js="search-b5634cc7.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../static.files/storage-41dd4d93.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[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="#">Crate bit_set</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bit_set/index.html">bit_set</a><span class="version">0.9.1</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#description" title="Description">Description</a></li><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><h1>Crate <span>bit_set</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/bit_set/lib.rs.html#11-1857">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><h2 id="description"><a class="doc-anchor" href="#description">§</a>Description</h2>
2+
<p>An implementation of a set using a bit vector as an underlying
3+
representation for holding unsigned numerical elements.</p>
4+
<p>It should also be noted that the amount of storage necessary for holding a
5+
set of objects is proportional to the maximum of the objects when viewed
6+
as a <code>usize</code>.</p>
7+
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
8+
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
9+
10+
<span class="comment">// It's a regular set
11+
</span><span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::new();
12+
s.insert(<span class="number">0</span>);
13+
s.insert(<span class="number">3</span>);
14+
s.insert(<span class="number">7</span>);
15+
16+
s.remove(<span class="number">7</span>);
17+
18+
<span class="kw">if </span>!s.contains(<span class="number">7</span>) {
19+
<span class="macro">println!</span>(<span class="string">"There is no 7"</span>);
20+
}
21+
22+
<span class="comment">// Can initialize from a `BitVec`
23+
</span><span class="kw">let </span>other = BitSet::from_bytes(<span class="kw-2">&amp;</span>[<span class="number">0b11010000</span>]);
24+
25+
s.union_with(<span class="kw-2">&amp;</span>other);
26+
27+
<span class="comment">// Print 0, 1, 3 in some order
28+
</span><span class="kw">for </span>x <span class="kw">in </span>s.iter() {
29+
<span class="macro">println!</span>(<span class="string">"{}"</span>, x);
30+
}
31+
32+
<span class="comment">// Can convert back to a `BitVec`
33+
</span><span class="kw">let </span>bv = s.into_bit_vec();
34+
<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><dl class="item-table"><dt><a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a></dt><dt><a class="struct" href="struct.Difference.html" title="struct bit_set::Difference">Difference</a></dt><dt><a class="struct" href="struct.Intersection.html" title="struct bit_set::Intersection">Intersection</a></dt><dt><a class="struct" href="struct.Iter.html" title="struct bit_set::Iter">Iter</a></dt><dd>An iterator for <code>BitSet</code>.</dd><dt><a class="struct" href="struct.SymmetricDifference.html" title="struct bit_set::SymmetricDifference">Symmetric<wbr>Difference</a></dt><dt><a class="struct" href="struct.Union.html" title="struct bit_set::Union">Union</a></dt></dl></section></div></main></body></html>

api/bit_set/sidebar-items.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
window.SIDEBAR_ITEMS = {"struct":["BitSet","Difference","Intersection","Iter","SymmetricDifference","Union"]};

0 commit comments

Comments
 (0)