mirror of
https://github.com/Rust-GPU/rust-gpu.git
synced 2026-06-06 17:49:50 +09:00
290 lines
101 KiB
HTML
290 lines
101 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="API documentation for the Rust `BitSet` struct in crate `bit_set`."><title>BitSet in 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="sidebar-items.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 struct"><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="#">BitSet</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"><h2 class="location"><a href="#">BitSet</a></h2><h3><a href="#implementations">Associated Functions</a></h3><ul class="block method"><li><a href="#method.new" title="new">new</a></li><li><a href="#method.with_capacity" title="with_capacity">with_capacity</a></li><li><a href="#method.from_bit_vec" title="from_bit_vec">from_bit_vec</a></li><li><a href="#method.from_bytes" title="from_bytes">from_bytes</a></li><li><a href="#method.new_general" title="new_general">new_general</a></li><li><a href="#method.with_capacity_general" title="with_capacity_general">with_capacity_general</a></li><li><a href="#method.from_bit_vec_general" title="from_bit_vec_general">from_bit_vec_general</a></li><li><a href="#method.from_bytes_general" title="from_bytes_general">from_bytes_general</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.capacity" title="capacity">capacity</a></li><li><a href="#method.clear" title="clear">clear</a></li><li><a href="#method.contains" title="contains">contains</a></li><li><a href="#method.count" title="count">count</a></li><li><a href="#method.difference" title="difference">difference</a></li><li><a href="#method.difference_with" title="difference_with">difference_with</a></li><li><a href="#method.get_mut" title="get_mut">get_mut</a></li><li><a href="#method.get_ref" title="get_ref">get_ref</a></li><li><a href="#method.insert" title="insert">insert</a></li><li><a href="#method.intersect_with" title="intersect_with">intersect_with</a></li><li><a href="#method.intersection" title="intersection">intersection</a></li><li><a href="#method.into_bit_vec" title="into_bit_vec">into_bit_vec</a></li><li><a href="#method.is_disjoint" title="is_disjoint">is_disjoint</a></li><li><a href="#method.is_empty" title="is_empty">is_empty</a></li><li><a href="#method.is_subset" title="is_subset">is_subset</a></li><li><a href="#method.is_superset" title="is_superset">is_superset</a></li><li><a href="#method.iter" title="iter">iter</a></li><li><a href="#method.len" title="len">len</a></li><li><a href="#method.make_empty" title="make_empty">make_empty</a></li><li><a href="#method.remove" title="remove">remove</a></li><li><a href="#method.reserve_len" title="reserve_len">reserve_len</a></li><li><a href="#method.reserve_len_exact" title="reserve_len_exact">reserve_len_exact</a></li><li><a href="#method.reset" title="reset">reset</a></li><li><a href="#method.shrink_to_fit" title="shrink_to_fit">shrink_to_fit</a></li><li><a href="#method.symmetric_difference" title="symmetric_difference">symmetric_difference</a></li><li><a href="#method.symmetric_difference_with" title="symmetric_difference_with">symmetric_difference_with</a></li><li><a href="#method.truncate" title="truncate">truncate</a></li><li><a href="#method.union" title="union">union</a></li><li><a href="#method.union_with" title="union_with">union_with</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-BitSet%3CB%3E" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-BitSet%3CB%3E" title="Debug">Debug</a></li><li><a href="#impl-Default-for-BitSet%3CB%3E" title="Default">Default</a></li><li><a href="#impl-Display-for-BitSet%3CB%3E" title="Display">Display</a></li><li><a href="#impl-Eq-for-BitSet%3CB%3E" title="Eq">Eq</a></li><li><a href="#impl-Extend%3Cusize%3E-for-BitSet%3CB%3E" title="Extend<usize>">Extend<usize></a></li><li><a href="#impl-FromIterator%3Cusize%3E-for-BitSet%3CB%3E" title="FromIterator<usize>">FromIterator<usize></a></li><li><a href="#impl-Hash-for-BitSet%3CB%3E" title="Hash">Hash</a></li><li><a href="#impl-IntoIterator-for-%26BitSet%3CB%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-Ord-for-BitSet%3CB%3E" title="Ord">Ord</a></li><li><a href="#impl-PartialEq-for-BitSet%3CB%3E" title="PartialEq">PartialEq</a></li><li><a href="#impl-PartialOrd-for-BitSet%3CB%3E" title="PartialOrd">PartialOrd</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-BitSet%3CB%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-BitSet%3CB%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-BitSet%3CB%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-BitSet%3CB%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-BitSet%3CB%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnsafeUnpin-for-BitSet%3CB%3E" title="UnsafeUnpin">UnsafeUnpin</a></li><li><a href="#impl-UnwindSafe-for-BitSet%3CB%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<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></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<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate bit_<wbr>set</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" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">bit_set</a></div><h1>Struct <span class="struct">BitSet</span> <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#138-140">Source</a> </span></div><pre class="rust item-decl"><code>pub struct BitSet<B = <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u32.html">u32</a>> { <span class="comment">/* private fields */</span> }</code></pre><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-BitSet" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#203-261">Source</a><a href="#impl-BitSet" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u32.html">u32</a>></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/bit_set/lib.rs.html#214-216">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>() -> Self</h4></section></summary><div class="docblock"><p>Creates a new empty <code>BitSet</code>.</p>
|
|
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::new();</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_capacity" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#230-233">Source</a><h4 class="code-header">pub fn <a href="#method.with_capacity" class="fn">with_capacity</a>(nbits: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a new <code>BitSet</code> with initially no contents, able to
|
|
hold <code>nbits</code> elements without resizing.</p>
|
|
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::with_capacity(<span class="number">100</span>);
|
|
<span class="macro">assert!</span>(s.capacity() >= <span class="number">100</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.from_bit_vec" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#252-254">Source</a><h4 class="code-header">pub fn <a href="#method.from_bit_vec" class="fn">from_bit_vec</a>(bit_vec: <a class="struct" href="../bit_vec/struct.BitVec.html" title="struct bit_vec::BitVec">BitVec</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a new <code>BitSet</code> from the given bit vector.</p>
|
|
<h5 id="examples-2"><a class="doc-anchor" href="#examples-2">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_vec::BitVec;
|
|
<span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>bv = BitVec::from_bytes(<span class="kw-2">&</span>[<span class="number">0b01100000</span>]);
|
|
<span class="kw">let </span>s = BitSet::from_bit_vec(bv);
|
|
|
|
<span class="comment">// Print 1, 2 in arbitrary 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);
|
|
}</code></pre></div></div></details><section id="method.from_bytes" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#256-260">Source</a><h4 class="code-header">pub fn <a href="#method.from_bytes" class="fn">from_bytes</a>(bytes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -> Self</h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#263-974">Source</a><a href="#impl-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new_general" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#274-276">Source</a><h4 class="code-header">pub fn <a href="#method.new_general" class="fn">new_general</a>() -> Self</h4></section></summary><div class="docblock"><p>Creates a new empty <code>BitSet</code>.</p>
|
|
<h5 id="examples-3"><a class="doc-anchor" href="#examples-3">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = <BitSet>::new_general();</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_capacity_general" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#290-293">Source</a><h4 class="code-header">pub fn <a href="#method.with_capacity_general" class="fn">with_capacity_general</a>(nbits: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a new <code>BitSet</code> with initially no contents, able to
|
|
hold <code>nbits</code> elements without resizing.</p>
|
|
<h5 id="examples-4"><a class="doc-anchor" href="#examples-4">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = <BitSet>::with_capacity_general(<span class="number">100</span>);
|
|
<span class="macro">assert!</span>(s.capacity() >= <span class="number">100</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.from_bit_vec_general" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#312-314">Source</a><h4 class="code-header">pub fn <a href="#method.from_bit_vec_general" class="fn">from_bit_vec_general</a>(bit_vec: <a class="struct" href="../bit_vec/struct.BitVec.html" title="struct bit_vec::BitVec">BitVec</a><B>) -> Self</h4></section></summary><div class="docblock"><p>Creates a new <code>BitSet</code> from the given bit vector.</p>
|
|
<h5 id="examples-5"><a class="doc-anchor" href="#examples-5">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_vec::BitVec;
|
|
<span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>bv: BitVec<u64> = BitVec::from_bytes_general(<span class="kw-2">&</span>[<span class="number">0b01100000</span>]);
|
|
<span class="kw">let </span>s = BitSet::from_bit_vec_general(bv);
|
|
|
|
<span class="comment">// Print 1, 2 in arbitrary 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);
|
|
}</code></pre></div></div></details><section id="method.from_bytes_general" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#316-320">Source</a><h4 class="code-header">pub fn <a href="#method.from_bytes_general" class="fn">from_bytes_general</a>(bytes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -> Self</h4></section><details class="toggle method-toggle" open><summary><section id="method.capacity" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#334-336">Source</a><h4 class="code-header">pub fn <a href="#method.capacity" class="fn">capacity</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the capacity in bits for this bit vector. Inserting any
|
|
element less than this amount will not trigger a resizing.</p>
|
|
<h5 id="examples-6"><a class="doc-anchor" href="#examples-6">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::with_capacity(<span class="number">100</span>);
|
|
<span class="macro">assert!</span>(s.capacity() >= <span class="number">100</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.reserve_len" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#354-359">Source</a><h4 class="code-header">pub fn <a href="#method.reserve_len" class="fn">reserve_len</a>(&mut self, len: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Reserves capacity for the given <code>BitSet</code> to contain <code>len</code> distinct elements. In the case
|
|
of <code>BitSet</code> this means reallocations will not occur as long as all inserted elements
|
|
are less than <code>len</code>.</p>
|
|
<p>The collection may reserve more space to avoid frequent reallocations.</p>
|
|
<h5 id="examples-7"><a class="doc-anchor" href="#examples-7">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::new();
|
|
s.reserve_len(<span class="number">10</span>);
|
|
<span class="macro">assert!</span>(s.capacity() >= <span class="number">10</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.reserve_len_exact" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#379-384">Source</a><h4 class="code-header">pub fn <a href="#method.reserve_len_exact" class="fn">reserve_len_exact</a>(&mut self, len: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Reserves the minimum capacity for the given <code>BitSet</code> to contain <code>len</code> distinct elements.
|
|
In the case of <code>BitSet</code> this means reallocations will not occur as long as all inserted
|
|
elements are less than <code>len</code>.</p>
|
|
<p>Note that the allocator may give the collection more space than it requests. Therefore
|
|
capacity can not be relied upon to be precisely minimal. Prefer <code>reserve_len</code> if future
|
|
insertions are expected.</p>
|
|
<h5 id="examples-8"><a class="doc-anchor" href="#examples-8">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::new();
|
|
s.reserve_len_exact(<span class="number">10</span>);
|
|
<span class="macro">assert!</span>(s.capacity() >= <span class="number">10</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.into_bit_vec" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#402-404">Source</a><h4 class="code-header">pub fn <a href="#method.into_bit_vec" class="fn">into_bit_vec</a>(self) -> <a class="struct" href="../bit_vec/struct.BitVec.html" title="struct bit_vec::BitVec">BitVec</a><B></h4></section></summary><div class="docblock"><p>Consumes this set to return the underlying bit vector.</p>
|
|
<h5 id="examples-9"><a class="doc-anchor" href="#examples-9">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<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>);
|
|
|
|
<span class="kw">let </span>bv = s.into_bit_vec();
|
|
<span class="macro">assert!</span>(bv[<span class="number">0</span>]);
|
|
<span class="macro">assert!</span>(bv[<span class="number">3</span>]);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.get_ref" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#420-422">Source</a><h4 class="code-header">pub fn <a href="#method.get_ref" class="fn">get_ref</a>(&self) -> &<a class="struct" href="../bit_vec/struct.BitVec.html" title="struct bit_vec::BitVec">BitVec</a><B></h4></section></summary><div class="docblock"><p>Returns a reference to the underlying bit vector.</p>
|
|
<h5 id="examples-10"><a class="doc-anchor" href="#examples-10">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>set = BitSet::new();
|
|
set.insert(<span class="number">0</span>);
|
|
|
|
<span class="kw">let </span>bv = set.get_ref();
|
|
<span class="macro">assert_eq!</span>(bv[<span class="number">0</span>], <span class="bool-val">true</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.get_mut" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#445-447">Source</a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fn">get_mut</a>(&mut self) -> &mut <a class="struct" href="../bit_vec/struct.BitVec.html" title="struct bit_vec::BitVec">BitVec</a><B></h4></section></summary><div class="docblock"><p>Returns a mutable reference to the underlying bit vector.</p>
|
|
<h5 id="examples-11"><a class="doc-anchor" href="#examples-11">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>set = BitSet::new();
|
|
set.insert(<span class="number">0</span>);
|
|
set.insert(<span class="number">3</span>);
|
|
|
|
{
|
|
<span class="kw">let </span>bv = set.get_mut();
|
|
bv.set(<span class="number">1</span>, <span class="bool-val">true</span>);
|
|
}
|
|
|
|
<span class="macro">assert!</span>(set.contains(<span class="number">0</span>));
|
|
<span class="macro">assert!</span>(set.contains(<span class="number">1</span>));
|
|
<span class="macro">assert!</span>(set.contains(<span class="number">3</span>));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.shrink_to_fit" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#502-520">Source</a><h4 class="code-header">pub fn <a href="#method.shrink_to_fit" class="fn">shrink_to_fit</a>(&mut self)</h4></section></summary><div class="docblock"><p>Truncates the underlying vector to the least length required.</p>
|
|
<h5 id="examples-12"><a class="doc-anchor" href="#examples-12">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>s = BitSet::new();
|
|
s.insert(<span class="number">3231</span>);
|
|
s.remove(<span class="number">3231</span>);
|
|
|
|
<span class="comment">// Internal storage will probably be bigger than necessary
|
|
</span><span class="macro">println!</span>(<span class="string">"old capacity: {}"</span>, s.capacity());
|
|
<span class="macro">assert!</span>(s.capacity() >= <span class="number">3231</span>);
|
|
|
|
<span class="comment">// Now should be smaller
|
|
</span>s.shrink_to_fit();
|
|
<span class="macro">println!</span>(<span class="string">"new capacity: {}"</span>, s.capacity());</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.iter" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#537-539">Source</a><h4 class="code-header">pub fn <a href="#method.iter" class="fn">iter</a>(&self) -> <a class="struct" href="struct.Iter.html" title="struct bit_set::Iter">Iter</a><'_, B> <a href="#" class="tooltip" data-notable-ty="Iter<'_, B>">ⓘ</a></h4></section></summary><div class="docblock"><p>Iterator over each usize stored in the <code>BitSet</code>.</p>
|
|
<h5 id="examples-13"><a class="doc-anchor" href="#examples-13">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>s = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b01001010</span>]);
|
|
|
|
<span class="comment">// Print 1, 4, 6 in arbitrary 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);
|
|
}</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.union" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#560-570">Source</a><h4 class="code-header">pub fn <a href="#method.union" class="fn">union</a><'a>(&'a self, other: &'a Self) -> <a class="struct" href="struct.Union.html" title="struct bit_set::Union">Union</a><'a, B> <a href="#" class="tooltip" data-notable-ty="Union<'a, B>">ⓘ</a></h4></section></summary><div class="docblock"><p>Iterator over each usize stored in <code>self</code> union <code>other</code>.
|
|
See <a href="struct.BitSet.html#method.union_with" title="method bit_set::BitSet::union_with"><code>union_with</code></a> for an efficient in-place version.</p>
|
|
<h5 id="examples-14"><a class="doc-anchor" href="#examples-14">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b01101000</span>]);
|
|
<span class="kw">let </span>b = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b10100000</span>]);
|
|
|
|
<span class="comment">// Print 0, 1, 2, 4 in arbitrary order
|
|
</span><span class="kw">for </span>x <span class="kw">in </span>a.union(<span class="kw-2">&</span>b) {
|
|
<span class="macro">println!</span>(<span class="string">"{}"</span>, x);
|
|
}</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.intersection" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#591-605">Source</a><h4 class="code-header">pub fn <a href="#method.intersection" class="fn">intersection</a><'a>(&'a self, other: &'a Self) -> <a class="struct" href="struct.Intersection.html" title="struct bit_set::Intersection">Intersection</a><'a, B> <a href="#" class="tooltip" data-notable-ty="Intersection<'a, B>">ⓘ</a></h4></section></summary><div class="docblock"><p>Iterator over each usize stored in <code>self</code> intersect <code>other</code>.
|
|
See <a href="struct.BitSet.html#method.intersect_with" title="method bit_set::BitSet::intersect_with"><code>intersect_with</code></a> for an efficient in-place version.</p>
|
|
<h5 id="examples-15"><a class="doc-anchor" href="#examples-15">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b01101000</span>]);
|
|
<span class="kw">let </span>b = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b10100000</span>]);
|
|
|
|
<span class="comment">// Print 2
|
|
</span><span class="kw">for </span>x <span class="kw">in </span>a.intersection(<span class="kw-2">&</span>b) {
|
|
<span class="macro">println!</span>(<span class="string">"{}"</span>, x);
|
|
}</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.difference" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#633-643">Source</a><h4 class="code-header">pub fn <a href="#method.difference" class="fn">difference</a><'a>(&'a self, other: &'a Self) -> <a class="struct" href="struct.Difference.html" title="struct bit_set::Difference">Difference</a><'a, B> <a href="#" class="tooltip" data-notable-ty="Difference<'a, B>">ⓘ</a></h4></section></summary><div class="docblock"><p>Iterator over each usize stored in the <code>self</code> setminus <code>other</code>.
|
|
See <a href="struct.BitSet.html#method.difference_with" title="method bit_set::BitSet::difference_with"><code>difference_with</code></a> for an efficient in-place version.</p>
|
|
<h5 id="examples-16"><a class="doc-anchor" href="#examples-16">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b01101000</span>]);
|
|
<span class="kw">let </span>b = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b10100000</span>]);
|
|
|
|
<span class="comment">// Print 1, 4 in arbitrary order
|
|
</span><span class="kw">for </span>x <span class="kw">in </span>a.difference(<span class="kw-2">&</span>b) {
|
|
<span class="macro">println!</span>(<span class="string">"{}"</span>, x);
|
|
}
|
|
|
|
<span class="comment">// Note that difference is not symmetric,
|
|
// and `b - a` means something else.
|
|
// This prints 0
|
|
</span><span class="kw">for </span>x <span class="kw">in </span>b.difference(<span class="kw-2">&</span>a) {
|
|
<span class="macro">println!</span>(<span class="string">"{}"</span>, x);
|
|
}</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.symmetric_difference" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#664-674">Source</a><h4 class="code-header">pub fn <a href="#method.symmetric_difference" class="fn">symmetric_difference</a><'a>(
|
|
&'a self,
|
|
other: &'a Self,
|
|
) -> <a class="struct" href="struct.SymmetricDifference.html" title="struct bit_set::SymmetricDifference">SymmetricDifference</a><'a, B> <a href="#" class="tooltip" data-notable-ty="SymmetricDifference<'a, B>">ⓘ</a></h4></section></summary><div class="docblock"><p>Iterator over each usize stored in the symmetric difference of <code>self</code> and <code>other</code>.
|
|
See <a href="struct.BitSet.html#method.symmetric_difference_with" title="method bit_set::BitSet::symmetric_difference_with"><code>symmetric_difference_with</code></a> for an efficient in-place version.</p>
|
|
<h5 id="examples-17"><a class="doc-anchor" href="#examples-17">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b01101000</span>]);
|
|
<span class="kw">let </span>b = BitSet::from_bytes(<span class="kw-2">&</span>[<span class="number">0b10100000</span>]);
|
|
|
|
<span class="comment">// Print 0, 1, 4 in arbitrary order
|
|
</span><span class="kw">for </span>x <span class="kw">in </span>a.symmetric_difference(<span class="kw-2">&</span>b) {
|
|
<span class="macro">println!</span>(<span class="string">"{}"</span>, x);
|
|
}</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.union_with" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#695-697">Source</a><h4 class="code-header">pub fn <a href="#method.union_with" class="fn">union_with</a>(&mut self, other: &Self)</h4></section></summary><div class="docblock"><p>Unions in-place with the specified other bit vector.</p>
|
|
<h5 id="examples-18"><a class="doc-anchor" href="#examples-18">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = <span class="number">0b01101000</span>;
|
|
<span class="kw">let </span>b = <span class="number">0b10100000</span>;
|
|
<span class="kw">let </span>res = <span class="number">0b11101000</span>;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>a = BitSet::from_bytes(<span class="kw-2">&</span>[a]);
|
|
<span class="kw">let </span>b = BitSet::from_bytes(<span class="kw-2">&</span>[b]);
|
|
<span class="kw">let </span>res = BitSet::from_bytes(<span class="kw-2">&</span>[res]);
|
|
|
|
a.union_with(<span class="kw-2">&</span>b);
|
|
<span class="macro">assert_eq!</span>(a, res);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.intersect_with" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#718-720">Source</a><h4 class="code-header">pub fn <a href="#method.intersect_with" class="fn">intersect_with</a>(&mut self, other: &Self)</h4></section></summary><div class="docblock"><p>Intersects in-place with the specified other bit vector.</p>
|
|
<h5 id="examples-19"><a class="doc-anchor" href="#examples-19">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = <span class="number">0b01101000</span>;
|
|
<span class="kw">let </span>b = <span class="number">0b10100000</span>;
|
|
<span class="kw">let </span>res = <span class="number">0b00100000</span>;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>a = BitSet::from_bytes(<span class="kw-2">&</span>[a]);
|
|
<span class="kw">let </span>b = BitSet::from_bytes(<span class="kw-2">&</span>[b]);
|
|
<span class="kw">let </span>res = BitSet::from_bytes(<span class="kw-2">&</span>[res]);
|
|
|
|
a.intersect_with(<span class="kw-2">&</span>b);
|
|
<span class="macro">assert_eq!</span>(a, res);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.difference_with" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#750-752">Source</a><h4 class="code-header">pub fn <a href="#method.difference_with" class="fn">difference_with</a>(&mut self, other: &Self)</h4></section></summary><div class="docblock"><p>Makes this bit vector the difference with the specified other bit vector
|
|
in-place.</p>
|
|
<h5 id="examples-20"><a class="doc-anchor" href="#examples-20">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = <span class="number">0b01101000</span>;
|
|
<span class="kw">let </span>b = <span class="number">0b10100000</span>;
|
|
<span class="kw">let </span>a_b = <span class="number">0b01001000</span>; <span class="comment">// a - b
|
|
</span><span class="kw">let </span>b_a = <span class="number">0b10000000</span>; <span class="comment">// b - a
|
|
|
|
</span><span class="kw">let </span><span class="kw-2">mut </span>bva = BitSet::from_bytes(<span class="kw-2">&</span>[a]);
|
|
<span class="kw">let </span>bvb = BitSet::from_bytes(<span class="kw-2">&</span>[b]);
|
|
<span class="kw">let </span>bva_b = BitSet::from_bytes(<span class="kw-2">&</span>[a_b]);
|
|
<span class="kw">let </span>bvb_a = BitSet::from_bytes(<span class="kw-2">&</span>[b_a]);
|
|
|
|
bva.difference_with(<span class="kw-2">&</span>bvb);
|
|
<span class="macro">assert_eq!</span>(bva, bva_b);
|
|
|
|
<span class="kw">let </span>bva = BitSet::from_bytes(<span class="kw-2">&</span>[a]);
|
|
<span class="kw">let </span><span class="kw-2">mut </span>bvb = BitSet::from_bytes(<span class="kw-2">&</span>[b]);
|
|
|
|
bvb.difference_with(<span class="kw-2">&</span>bva);
|
|
<span class="macro">assert_eq!</span>(bvb, bvb_a);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.symmetric_difference_with" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#774-776">Source</a><h4 class="code-header">pub fn <a href="#method.symmetric_difference_with" class="fn">symmetric_difference_with</a>(&mut self, other: &Self)</h4></section></summary><div class="docblock"><p>Makes this bit vector the symmetric difference with the specified other
|
|
bit vector in-place.</p>
|
|
<h5 id="examples-21"><a class="doc-anchor" href="#examples-21">§</a>Examples</h5>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>bit_set::BitSet;
|
|
|
|
<span class="kw">let </span>a = <span class="number">0b01101000</span>;
|
|
<span class="kw">let </span>b = <span class="number">0b10100000</span>;
|
|
<span class="kw">let </span>res = <span class="number">0b11001000</span>;
|
|
|
|
<span class="kw">let </span><span class="kw-2">mut </span>a = BitSet::from_bytes(<span class="kw-2">&</span>[a]);
|
|
<span class="kw">let </span>b = BitSet::from_bytes(<span class="kw-2">&</span>[b]);
|
|
<span class="kw">let </span>res = BitSet::from_bytes(<span class="kw-2">&</span>[res]);
|
|
|
|
a.symmetric_difference_with(<span class="kw-2">&</span>b);
|
|
<span class="macro">assert_eq!</span>(a, res);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.count" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#862-864">Source</a><h4 class="code-header">pub fn <a href="#method.count" class="fn">count</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Counts the number of set bits in this set.</p>
|
|
<p>Note that this function scans the set to calculate the number.</p>
|
|
</div></details><details class="toggle method-toggle deprecated" open><summary><section id="method.len" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#871-873">Source</a><h4 class="code-header">pub fn <a href="#method.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: <p>use BitSet::count() instead</p>
|
|
</span></div></span></summary><div class="docblock"><p>Counts the number of set bits in this set.</p>
|
|
<p>Note that this function scans the set to calculate the number.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#877-879">Source</a><h4 class="code-header">pub fn <a href="#method.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns whether there are no bits set in this set</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.make_empty" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#887-889">Source</a><h4 class="code-header">pub fn <a href="#method.make_empty" class="fn">make_empty</a>(&mut self)</h4></section></summary><div class="docblock"><p>Removes all elements of this set.</p>
|
|
<p>Different from <a href="struct.BitSet.html#method.reset" title="method bit_set::BitSet::reset"><code>reset</code></a> only in that the capacity is preserved.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#897-899">Source</a><h4 class="code-header">pub fn <a href="#method.reset" class="fn">reset</a>(&mut self)</h4></section></summary><div class="docblock"><p>Resets this set to an empty state.</p>
|
|
<p>Different from <a href="struct.BitSet.html#method.make_empty" title="method bit_set::BitSet::make_empty"><code>make_empty</code></a> only in that the capacity may NOT be preserved.</p>
|
|
</div></details><details class="toggle method-toggle deprecated" open><summary><section id="method.clear" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#904-906">Source</a><h4 class="code-header">pub fn <a href="#method.clear" class="fn">clear</a>(&mut self)</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.9.0: <p>please use <code>fn make_empty</code> instead</p>
|
|
</span></div></span></summary><div class="docblock"><p>Clears all bits in this set</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.contains" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#910-913">Source</a><h4 class="code-header">pub fn <a href="#method.contains" class="fn">contains</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if this set contains the specified integer.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_disjoint" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#918-920">Source</a><h4 class="code-header">pub fn <a href="#method.is_disjoint" class="fn">is_disjoint</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the set has no elements in common with <code>other</code>.
|
|
This is equivalent to checking for an empty intersection.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_subset" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#924-933">Source</a><h4 class="code-header">pub fn <a href="#method.is_subset" class="fn">is_subset</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the set is a subset of another.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_superset" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#937-939">Source</a><h4 class="code-header">pub fn <a href="#method.is_superset" class="fn">is_superset</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the set is a superset of another.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.insert" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#943-956">Source</a><h4 class="code-header">pub fn <a href="#method.insert" class="fn">insert</a>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Adds a value to the set. Returns <code>true</code> if the value was not already
|
|
present in the set.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.remove" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#960-968">Source</a><h4 class="code-header">pub fn <a href="#method.remove" class="fn">remove</a>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Removes a value from the set. Returns <code>true</code> if the value was
|
|
present in the set.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.truncate" class="method"><a class="src rightside" href="../src/bit_set/lib.rs.html#971-973">Source</a><h4 class="code-header">pub fn <a href="#method.truncate" class="fn">truncate</a>(&mut self, element: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Excludes <code>element</code> and all greater elements from the <code>BitSet</code>.</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-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#142-152">Source</a><a href="#impl-Clone-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></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/bit_set/lib.rs.html#143-147">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> Self</h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/nightly/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"><a class="src rightside" href="../src/bit_set/lib.rs.html#149-151">Source</a><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, other: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/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-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#976-982">Source</a><a href="#impl-Debug-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></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/bit_set/lib.rs.html#977-981">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/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/nightly/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-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#154-161">Source</a><a href="#impl-Default-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></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/bit_set/lib.rs.html#156-160">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#984-988">Source</a><a href="#impl-Display-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#985-987">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/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/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Extend%3Cusize%3E-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#171-178">Source</a><a href="#impl-Extend%3Cusize%3E-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.extend" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#173-177">Source</a><a href="#method.extend" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#tymethod.extend" class="fn">extend</a><I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>>>(&mut self, iter: I)</h4></section></summary><div class='docblock'>Extends a collection with the contents of an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.extend_one" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#420">Source</a><a href="#method.extend_one" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#method.extend_one" class="fn">extend_one</a>(&mut self, item: 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>extend_one</code>)</span></div></span><div class='docblock'>Extends a collection with exactly one element.</div></details><details class="toggle method-toggle" open><summary><section id="method.extend_reserve" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#428">Source</a><a href="#method.extend_reserve" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#method.extend_reserve" class="fn">extend_reserve</a>(&mut self, additional: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</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>extend_one</code>)</span></div></span><div class='docblock'>Reserves capacity in a collection for the given number of additional elements. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromIterator%3Cusize%3E-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#163-169">Source</a><a href="#impl-FromIterator%3Cusize%3E-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_iter" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#164-168">Source</a><a href="#method.from_iter" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter" class="fn">from_iter</a><I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>>>(iter: I) -> Self</h4></section></summary><div class='docblock'>Creates a value from an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#990-996">Source</a><a href="#impl-Hash-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#991-995">Source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a><H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&mut H</a>)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#234-236">Source</a></span><a href="#method.hash_slice" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice" class="fn">hash_slice</a><H>(data: &[Self], state: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&mut H</a>)<div class="where">where
|
|
H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#1207-1214">Source</a><a href="#impl-IntoIterator-for-%26BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<'a, B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &'a <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#1208">Source</a><a href="#associatedtype.Item" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter" class="associatedtype trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#1209">Source</a><a href="#associatedtype.IntoIter" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="struct.Iter.html" title="struct bit_set::Iter">Iter</a><'a, B></h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#1211-1213">Source</a><a href="#method.into_iter" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -> <a class="struct" href="struct.Iter.html" title="struct bit_set::Iter">Iter</a><'a, B> <a href="#" class="tooltip" data-notable-ty="Iter<'a, B>">ⓘ</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Ord-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#187-192">Source</a><a href="#impl-Ord-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#189-191">Source</a><a href="#method.cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fn">cmp</a>(&self, other: &Self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1033-1035">Source</a></span><a href="#method.max" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fn">max</a>(self, other: Self) -> Self<div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1072-1074">Source</a></span><a href="#method.min" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min" class="fn">min</a>(self, other: Self) -> Self<div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1098-1100">Source</a></span><a href="#method.clamp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp" class="fn">clamp</a>(self, min: Self, max: Self) -> Self<div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#194-199">Source</a><a href="#impl-PartialEq-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#196-198">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" 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/nightly/src/core/cmp.rs.html#263">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
|
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialOrd-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#180-185">Source</a><a href="#impl-PartialOrd-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#182-184">Source</a><a href="#method.partial_cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fn">partial_cmp</a>(&self, other: &Self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lt" 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/nightly/src/core/cmp.rs.html#1409">Source</a></span><a href="#method.lt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt" class="fn">lt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le" 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/nightly/src/core/cmp.rs.html#1427">Source</a></span><a href="#method.le" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le" class="fn">le</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the
|
|
<code><=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt" 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/nightly/src/core/cmp.rs.html#1445">Source</a></span><a href="#method.gt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt" class="fn">gt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code>
|
|
operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge" 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/nightly/src/core/cmp.rs.html#1463">Source</a></span><a href="#method.ge" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge" class="fn">ge</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by
|
|
the <code>>=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></div></details></div></details><section id="impl-Eq-for-BitSet%3CB%3E" class="impl"><a class="src rightside" href="../src/bit_set/lib.rs.html#201">Source</a><a href="#impl-Eq-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="../bit_vec/trait.BitBlock.html" title="trait bit_vec::BitBlock">BitBlock</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section></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-BitSet%3CB%3E" class="impl"><a href="#impl-Freeze-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section><section id="impl-RefUnwindSafe-for-BitSet%3CB%3E" class="impl"><a href="#impl-RefUnwindSafe-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B><div class="where">where
|
|
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-BitSet%3CB%3E" class="impl"><a href="#impl-Send-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B><div class="where">where
|
|
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-BitSet%3CB%3E" class="impl"><a href="#impl-Sync-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B><div class="where">where
|
|
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-BitSet%3CB%3E" class="impl"><a href="#impl-Unpin-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B><div class="where">where
|
|
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnsafeUnpin-for-BitSet%3CB%3E" class="impl"><a href="#impl-UnsafeUnpin-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.UnsafeUnpin.html" title="trait core::marker::UnsafeUnpin">UnsafeUnpin</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B></h3></section><section id="impl-UnwindSafe-for-BitSet%3CB%3E" class="impl"><a href="#impl-UnwindSafe-for-BitSet%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.BitSet.html" title="struct bit_set::BitSet">BitSet</a><B><div class="where">where
|
|
B: <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/any.rs.html#141">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/any.rs.html#142">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/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/nightly/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/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/nightly/src/core/clone.rs.html#547">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/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/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><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/nightly/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/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> 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/nightly/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<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</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/nightly/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/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> 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/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#72-74">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#76">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#77">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2891">Source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/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.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2893">Source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></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/nightly/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<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</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/nightly/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/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><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/nightly/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<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</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/nightly/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/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><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/nightly/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/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div><script type="text/json" id="notable-traits-data">{"Difference<'a, B>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Difference.html\" title=\"struct bit_set::Difference\">Difference</a><'_, B></code></h3><pre><code><div class=\"where\">impl<B: <a class=\"trait\" href=\"../bit_vec/trait.BitBlock.html\" title=\"trait bit_vec::BitBlock\">BitBlock</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.Difference.html\" title=\"struct bit_set::Difference\">Difference</a><'_, B></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/core/primitive.usize.html\">usize</a>;</div>","Intersection<'a, B>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Intersection.html\" title=\"struct bit_set::Intersection\">Intersection</a><'_, B></code></h3><pre><code><div class=\"where\">impl<B: <a class=\"trait\" href=\"../bit_vec/trait.BitBlock.html\" title=\"trait bit_vec::BitBlock\">BitBlock</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.Intersection.html\" title=\"struct bit_set::Intersection\">Intersection</a><'_, B></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/core/primitive.usize.html\">usize</a>;</div>","Iter<'_, B>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Iter.html\" title=\"struct bit_set::Iter\">Iter</a><'_, B></code></h3><pre><code><div class=\"where\">impl<B: <a class=\"trait\" href=\"../bit_vec/trait.BitBlock.html\" title=\"trait bit_vec::BitBlock\">BitBlock</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.Iter.html\" title=\"struct bit_set::Iter\">Iter</a><'_, B></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/core/primitive.usize.html\">usize</a>;</div>","Iter<'a, B>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Iter.html\" title=\"struct bit_set::Iter\">Iter</a><'_, B></code></h3><pre><code><div class=\"where\">impl<B: <a class=\"trait\" href=\"../bit_vec/trait.BitBlock.html\" title=\"trait bit_vec::BitBlock\">BitBlock</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.Iter.html\" title=\"struct bit_set::Iter\">Iter</a><'_, B></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/core/primitive.usize.html\">usize</a>;</div>","SymmetricDifference<'a, B>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.SymmetricDifference.html\" title=\"struct bit_set::SymmetricDifference\">SymmetricDifference</a><'_, B></code></h3><pre><code><div class=\"where\">impl<B: <a class=\"trait\" href=\"../bit_vec/trait.BitBlock.html\" title=\"trait bit_vec::BitBlock\">BitBlock</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.SymmetricDifference.html\" title=\"struct bit_set::SymmetricDifference\">SymmetricDifference</a><'_, B></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/core/primitive.usize.html\">usize</a>;</div>","Union<'a, B>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Union.html\" title=\"struct bit_set::Union\">Union</a><'_, B></code></h3><pre><code><div class=\"where\">impl<B: <a class=\"trait\" href=\"../bit_vec/trait.BitBlock.html\" title=\"trait bit_vec::BitBlock\">BitBlock</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.Union.html\" title=\"struct bit_set::Union\">Union</a><'_, B></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/core/primitive.usize.html\">usize</a>;</div>"}</script></section></div></main></body></html> |