mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-25 13:37:01 +01:00
570 lines
224 KiB
HTML
570 lines
224 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="An ordered set based on a B-Tree."><meta name="keywords" content="rust, rustlang, rust-lang, Set"><title>Set in kanidmd_lib::entry - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../kanidmd_lib/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../kanidmd_lib/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Set</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.append">append</a></li><li><a href="#method.clear">clear</a></li><li><a href="#method.contains">contains</a></li><li><a href="#method.difference">difference</a></li><li><a href="#method.drain_filter">drain_filter</a></li><li><a href="#method.first">first</a></li><li><a href="#method.get">get</a></li><li><a href="#method.insert">insert</a></li><li><a href="#method.intersection">intersection</a></li><li><a href="#method.is_disjoint">is_disjoint</a></li><li><a href="#method.is_empty">is_empty</a></li><li><a href="#method.is_subset">is_subset</a></li><li><a href="#method.is_superset">is_superset</a></li><li><a href="#method.iter">iter</a></li><li><a href="#method.last">last</a></li><li><a href="#method.len">len</a></li><li><a href="#method.new">new</a></li><li><a href="#method.new_in">new_in</a></li><li><a href="#method.pop_first">pop_first</a></li><li><a href="#method.pop_last">pop_last</a></li><li><a href="#method.range">range</a></li><li><a href="#method.remove">remove</a></li><li><a href="#method.replace">replace</a></li><li><a href="#method.retain">retain</a></li><li><a href="#method.split_off">split_off</a></li><li><a href="#method.symmetric_difference">symmetric_difference</a></li><li><a href="#method.take">take</a></li><li><a href="#method.union">union</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-BitAnd%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E">BitAnd<&BTreeSet<T, A>></a></li><li><a href="#impl-BitOr%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E">BitOr<&BTreeSet<T, A>></a></li><li><a href="#impl-BitXor%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E">BitXor<&BTreeSet<T, A>></a></li><li><a href="#impl-CheckDerConstraints-for-BTreeSet%3CT%2C%20Global%3E">CheckDerConstraints</a></li><li><a href="#impl-Clone-for-BTreeSet%3CT%2C%20A%3E">Clone</a></li><li><a href="#impl-Debug-for-BTreeSet%3CT%2C%20A%3E">Debug</a></li><li><a href="#impl-Default-for-BTreeSet%3CT%2C%20Global%3E">Default</a></li><li><a href="#impl-Deserialize%3C%27de%3E-for-BTreeSet%3CT%2C%20Global%3E">Deserialize<'de></a></li><li><a href="#impl-Eq-for-BTreeSet%3CT%2C%20A%3E">Eq</a></li><li><a href="#impl-Extend%3C%26%27a%20T%3E-for-BTreeSet%3CT%2C%20A%3E">Extend<&'a T></a></li><li><a href="#impl-Extend%3CT%3E-for-BTreeSet%3CT%2C%20A%3E">Extend<T></a></li><li><a href="#impl-Extend%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E">Extend<T></a></li><li><a href="#impl-From%3C%5BT%3B%20N%5D%3E-for-BTreeSet%3CT%2C%20Global%3E">From<[T; N]></a></li><li><a href="#impl-FromFallibleIterator%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E">FromFallibleIterator<T></a></li><li><a href="#impl-FromIterator%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E">FromIterator<T></a></li><li><a href="#impl-FromStream%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E">FromStream<T></a></li><li><a href="#impl-HasLen-for-%26%27a%20BTreeSet%3CT%2C%20Global%3E">HasLen</a></li><li><a href="#impl-HasLen-for-BTreeSet%3CT%2C%20Global%3E">HasLen</a></li><li><a href="#impl-Hash-for-BTreeSet%3CT%2C%20A%3E">Hash</a></li><li><a href="#impl-IntoDeserializer%3C%27de%2C%20E%3E-for-BTreeSet%3CT%2C%20Global%3E">IntoDeserializer<'de, E></a></li><li><a href="#impl-IntoIterator-for-%26%27a%20BTreeSet%3CT%2C%20A%3E">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-BTreeSet%3CT%2C%20A%3E">IntoIterator</a></li><li><a href="#impl-Ord-for-BTreeSet%3CT%2C%20A%3E">Ord</a></li><li><a href="#impl-PartialEq%3CBTreeSet%3CT%2C%20A%3E%3E-for-BTreeSet%3CT%2C%20A%3E">PartialEq<BTreeSet<T, A>></a></li><li><a href="#impl-PartialOrd%3CBTreeSet%3CT%2C%20A%3E%3E-for-BTreeSet%3CT%2C%20A%3E">PartialOrd<BTreeSet<T, A>></a></li><li><a href="#impl-Serialize-for-BTreeSet%3CT%2C%20Global%3E">Serialize</a></li><li><a href="#impl-Sub%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E">Sub<&BTreeSet<T, A>></a></li><li><a href="#impl-Tagged-for-BTreeSet%3CT%2C%20Global%3E">Tagged</a></li><li><a href="#impl-ToDer-for-BTreeSet%3CT%2C%20Global%3E">ToDer</a></li><li><a href="#impl-TryFrom%3CAny%3C%27a%3E%3E-for-BTreeSet%3CT%2C%20Global%3E">TryFrom<Any<'a>></a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe-for-BTreeSet%3CT%2C%20A%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-BTreeSet%3CT%2C%20A%3E">Send</a></li><li><a href="#impl-Sync-for-BTreeSet%3CT%2C%20A%3E">Sync</a></li><li><a href="#impl-Unpin-for-BTreeSet%3CT%2C%20A%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-BTreeSet%3CT%2C%20A%3E">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any-for-BTreeSet%3CT%2C%20A%3E">Any</a></li><li><a href="#impl-AsTaggedExplicit%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E">AsTaggedExplicit<'a></a></li><li><a href="#impl-AsTaggedImplicit%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E">AsTaggedImplicit<'a></a></li><li><a href="#impl-Borrow%3CT%3E-for-BTreeSet%3CT%2C%20A%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-BTreeSet%3CT%2C%20A%3E">BorrowMut<T></a></li><li><a href="#impl-CallHasher-for-BTreeSet%3CT%2C%20A%3E">CallHasher</a></li><li><a href="#impl-Choice-for-BTreeSet%3CT%2C%20A%3E">Choice</a></li><li><a href="#impl-DeserializeOwned-for-BTreeSet%3CT%2C%20A%3E">DeserializeOwned</a></li><li><a href="#impl-DynClone-for-BTreeSet%3CT%2C%20A%3E">DynClone</a></li><li><a href="#impl-DynTagged-for-BTreeSet%3CT%2C%20A%3E">DynTagged</a></li><li><a href="#impl-From%3CT%3E-for-BTreeSet%3CT%2C%20A%3E">From<T></a></li><li><a href="#impl-FromBer%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E">FromBer<'a></a></li><li><a href="#impl-FromDer%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E">FromDer<'a></a></li><li><a href="#impl-Instrument-for-BTreeSet%3CT%2C%20A%3E">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-BTreeSet%3CT%2C%20A%3E">Into<U></a></li><li><a href="#impl-Pointable-for-BTreeSet%3CT%2C%20A%3E">Pointable</a></li><li><a href="#impl-Same%3CT%3E-for-BTreeSet%3CT%2C%20A%3E">Same<T></a></li><li><a href="#impl-Serialize-for-BTreeSet%3CT%2C%20A%3E">Serialize</a></li><li><a href="#impl-ToOwned-for-BTreeSet%3CT%2C%20A%3E">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-BTreeSet%3CT%2C%20A%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-BTreeSet%3CT%2C%20A%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-BTreeSet%3CT%2C%20A%3E">VZip<V></a></li><li><a href="#impl-WithSubscriber-for-BTreeSet%3CT%2C%20A%3E">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In kanidmd_lib::entry</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../kanidmd_lib/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">kanidmd_lib</a>::<wbr><a href="index.html">entry</a>::<wbr><a class="struct" href="#">Set</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#81-84">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Set<T, A = <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span>{ /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An ordered set based on a B-Tree.</p>
|
||
<p>See <a href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/map/struct.BTreeMap.html" title="BTreeMap"><code>BTreeMap</code></a>’s documentation for a detailed discussion of this collection’s performance
|
||
benefits and drawbacks.</p>
|
||
<p>It is a logic error for an item to be modified in such a way that the item’s ordering relative
|
||
to any other item, as determined by the <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html"><code>Ord</code></a> trait, changes while it is in the set. This is
|
||
normally only possible through <a href="https://doc.rust-lang.org/1.64.0/core/cell/struct.Cell.html"><code>Cell</code></a>, <a href="https://doc.rust-lang.org/1.64.0/core/cell/struct.RefCell.html"><code>RefCell</code></a>, global state, I/O, or unsafe code.
|
||
The behavior resulting from such a logic error is not specified, but will be encapsulated to the
|
||
<code>BTreeSet</code> that observed the logic error and not result in undefined behavior. This could
|
||
include panics, incorrect results, aborts, memory leaks, and non-termination.</p>
|
||
<p>Iterators returned by <a href="../idm/authsession/struct.Set.html#method.iter" title="BTreeSet::iter"><code>BTreeSet::iter</code></a> produce their items in order, and take worst-case
|
||
logarithmic and amortized constant time per item returned.</p>
|
||
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="comment">// Type inference lets us omit an explicit type signature (which</span>
|
||
<span class="comment">// would be `BTreeSet<&str>` in this example).</span>
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">books</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="comment">// Add some books.</span>
|
||
<span class="ident">books</span>.<span class="ident">insert</span>(<span class="string">"A Dance With Dragons"</span>);
|
||
<span class="ident">books</span>.<span class="ident">insert</span>(<span class="string">"To Kill a Mockingbird"</span>);
|
||
<span class="ident">books</span>.<span class="ident">insert</span>(<span class="string">"The Odyssey"</span>);
|
||
<span class="ident">books</span>.<span class="ident">insert</span>(<span class="string">"The Great Gatsby"</span>);
|
||
|
||
<span class="comment">// Check for a specific one.</span>
|
||
<span class="kw">if</span> <span class="op">!</span><span class="ident">books</span>.<span class="ident">contains</span>(<span class="string">"The Winds of Winter"</span>) {
|
||
<span class="macro">println!</span>(<span class="string">"We have {} books, but The Winds of Winter ain't one."</span>,
|
||
<span class="ident">books</span>.<span class="ident">len</span>());
|
||
}
|
||
|
||
<span class="comment">// Remove a book.</span>
|
||
<span class="ident">books</span>.<span class="ident">remove</span>(<span class="string">"The Odyssey"</span>);
|
||
|
||
<span class="comment">// Iterate over everything.</span>
|
||
<span class="kw">for</span> <span class="ident">book</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">books</span> {
|
||
<span class="macro">println!</span>(<span class="string">"{book}"</span>);
|
||
}</code></pre></div>
|
||
<p>A <code>BTreeSet</code> with a known list of items can be initialized from an array:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);</code></pre></div>
|
||
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#332">source</a></span><a href="#impl-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/71835" title="Tracking issue for const_btree_new">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#348">source</a></span><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>() -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h4></section></summary><div class="docblock"><p>Makes a new, empty <code>BTreeSet</code>.</p>
|
||
<p>Does not allocate anything on its own.</p>
|
||
<h5 id="examples-1"><a href="#examples-1">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span>: <span class="ident">BTreeSet</span><span class="op"><</span><span class="ident">i32</span><span class="op">></span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();</code></pre></div>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#353">source</a></span><a href="#impl-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_in" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#368">source</a></span><h4 class="code-header">pub fn <a href="#method.new_in" class="fnname">new_in</a>(alloc: A) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>btreemap_alloc</code>)</div></span></summary><div class="docblock"><p>Makes a new <code>BTreeSet</code> with a reasonable choice of B.</p>
|
||
<h5 id="examples-2"><a href="#examples-2">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
<span class="kw">use</span> <span class="ident">std::alloc::Global</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span>: <span class="ident">BTreeSet</span><span class="op"><</span><span class="ident">i32</span><span class="op">></span> <span class="op">=</span> <span class="ident">BTreeSet::new_in</span>(<span class="ident">Global</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.range" class="method has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.17.0">1.17.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#400-404">source</a></span><h4 class="code-header">pub fn <a href="#method.range" class="fnname">range</a><K, R>(&self, range: R) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.Range.html" title="struct alloc::collections::btree::set::Range">Range</a><'_, T> <span class="where fmt-newline">where<br> K: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><K> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> R: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><K>, </span></h4></section></summary><div class="docblock"><p>Constructs a double-ended iterator over a sub-range of elements in the set.
|
||
The simplest way is to use the range syntax <code>min..max</code>, thus <code>range(min..max)</code> will
|
||
yield elements from min (inclusive) to max (exclusive).
|
||
The range may also be entered as <code>(Bound<T>, Bound<T>)</code>, so for example
|
||
<code>range((Excluded(4), Included(10)))</code> will yield a left-exclusive, right-inclusive
|
||
range from 4 to 10.</p>
|
||
<h5 id="panics"><a href="#panics">Panics</a></h5>
|
||
<p>Panics if range <code>start > end</code>.
|
||
Panics if range <code>start == end</code> and both bounds are <code>Excluded</code>.</p>
|
||
<h5 id="examples-3"><a href="#examples-3">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
<span class="kw">use</span> <span class="ident">std::ops::Bound::Included</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">3</span>);
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">5</span>);
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">8</span>);
|
||
<span class="kw">for</span> <span class="kw-2">&</span><span class="ident">elem</span> <span class="kw">in</span> <span class="ident">set</span>.<span class="ident">range</span>((<span class="ident">Included</span>(<span class="kw-2">&</span><span class="number">4</span>), <span class="ident">Included</span>(<span class="kw-2">&</span><span class="number">8</span>))) {
|
||
<span class="macro">println!</span>(<span class="string">"{elem}"</span>);
|
||
}
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">5</span>), <span class="ident">set</span>.<span class="ident">range</span>(<span class="number">4</span>..).<span class="ident">next</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.difference" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#430-432">source</a></span><h4 class="code-header">pub fn <a href="#method.difference" class="fnname">difference</a>(&'a self, other: &'a <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.Difference.html" title="struct alloc::collections::btree::set::Difference">Difference</a><'a, T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Visits the elements representing the difference,
|
||
i.e., the elements that are in <code>self</code> but not in <code>other</code>,
|
||
in ascending order.</p>
|
||
<h5 id="examples-4"><a href="#examples-4">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">3</span>);
|
||
|
||
<span class="kw">let</span> <span class="ident">diff</span>: <span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span> <span class="op">=</span> <span class="ident">a</span>.<span class="ident">difference</span>(<span class="kw-2">&</span><span class="ident">b</span>).<span class="ident">cloned</span>().<span class="ident">collect</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">diff</span>, [<span class="number">1</span>]);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.symmetric_difference" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#491-496">source</a></span><h4 class="code-header">pub fn <a href="#method.symmetric_difference" class="fnname">symmetric_difference</a>(<br> &'a self,<br> other: &'a <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.SymmetricDifference.html" title="struct alloc::collections::btree::set::SymmetricDifference">SymmetricDifference</a><'a, T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Visits the elements representing the symmetric difference,
|
||
i.e., the elements that are in <code>self</code> or in <code>other</code> but not in both,
|
||
in ascending order.</p>
|
||
<h5 id="examples-5"><a href="#examples-5">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">3</span>);
|
||
|
||
<span class="kw">let</span> <span class="ident">sym_diff</span>: <span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span> <span class="op">=</span> <span class="ident">a</span>.<span class="ident">symmetric_difference</span>(<span class="kw-2">&</span><span class="ident">b</span>).<span class="ident">cloned</span>().<span class="ident">collect</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">sym_diff</span>, [<span class="number">1</span>, <span class="number">3</span>]);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.intersection" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#522-524">source</a></span><h4 class="code-header">pub fn <a href="#method.intersection" class="fnname">intersection</a>(<br> &'a self,<br> other: &'a <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.Intersection.html" title="struct alloc::collections::btree::set::Intersection">Intersection</a><'a, T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Visits the elements representing the intersection,
|
||
i.e., the elements that are both in <code>self</code> and <code>other</code>,
|
||
in ascending order.</p>
|
||
<h5 id="examples-6"><a href="#examples-6">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">3</span>);
|
||
|
||
<span class="kw">let</span> <span class="ident">intersection</span>: <span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span> <span class="op">=</span> <span class="ident">a</span>.<span class="ident">intersection</span>(<span class="kw-2">&</span><span class="ident">b</span>).<span class="ident">cloned</span>().<span class="ident">collect</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">intersection</span>, [<span class="number">2</span>]);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.union" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#573-575">source</a></span><h4 class="code-header">pub fn <a href="#method.union" class="fnname">union</a>(&'a self, other: &'a <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.Union.html" title="struct alloc::collections::btree::set::Union">Union</a><'a, T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Visits the elements representing the union,
|
||
i.e., all the elements in <code>self</code> or <code>other</code>, without duplicates,
|
||
in ascending order.</p>
|
||
<h5 id="examples-7"><a href="#examples-7">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
|
||
<span class="kw">let</span> <span class="kw">union</span>: <span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span> <span class="op">=</span> <span class="ident">a</span>.<span class="ident">union</span>(<span class="kw-2">&</span><span class="ident">b</span>).<span class="ident">cloned</span>().<span class="ident">collect</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">union</span>, [<span class="number">1</span>, <span class="number">2</span>]);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clear" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#593-595">source</a></span><h4 class="code-header">pub fn <a href="#method.clear" class="fnname">clear</a>(&mut self) <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h4></section></summary><div class="docblock"><p>Clears the set, removing all elements.</p>
|
||
<h5 id="examples-8"><a href="#examples-8">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">v</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">v</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="ident">v</span>.<span class="ident">clear</span>();
|
||
<span class="macro">assert!</span>(<span class="ident">v</span>.<span class="ident">is_empty</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.contains" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#616-619">source</a></span><h4 class="code-header">pub fn <a href="#method.contains" class="fnname">contains</a><Q>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Q) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> Q: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the set contains an element equal to the value.</p>
|
||
<p>The value may be any borrowed form of the set’s element type,
|
||
but the ordering on the borrowed form <em>must</em> match the
|
||
ordering on the element type.</p>
|
||
<h5 id="examples-9"><a href="#examples-9">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">1</span>), <span class="bool-val">true</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">4</span>), <span class="bool-val">false</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get" class="method has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.9.0">1.9.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#641-644">source</a></span><h4 class="code-header">pub fn <a href="#method.get" class="fnname">get</a><Q>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Q) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> Q: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class="docblock"><p>Returns a reference to the element in the set, if any, that is equal to
|
||
the value.</p>
|
||
<p>The value may be any borrowed form of the set’s element type,
|
||
but the ordering on the borrowed form <em>must</em> match the
|
||
ordering on the element type.</p>
|
||
<h5 id="examples-10"><a href="#examples-10">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="number">2</span>), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">2</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="number">4</span>), <span class="prelude-val">None</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_disjoint" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#668-670">source</a></span><h4 class="code-header">pub fn <a href="#method.is_disjoint" class="fnname">is_disjoint</a>(&self, other: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if <code>self</code> has no elements in common with <code>other</code>.
|
||
This is equivalent to checking for an empty intersection.</p>
|
||
<h5 id="examples-11"><a href="#examples-11">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">a</span>.<span class="ident">is_disjoint</span>(<span class="kw-2">&</span><span class="ident">b</span>), <span class="bool-val">true</span>);
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">4</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">a</span>.<span class="ident">is_disjoint</span>(<span class="kw-2">&</span><span class="ident">b</span>), <span class="bool-val">true</span>);
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">a</span>.<span class="ident">is_disjoint</span>(<span class="kw-2">&</span><span class="ident">b</span>), <span class="bool-val">false</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_subset" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#694-696">source</a></span><h4 class="code-header">pub fn <a href="#method.is_subset" class="fnname">is_subset</a>(&self, other: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the set is a subset of another,
|
||
i.e., <code>other</code> contains at least all the elements in <code>self</code>.</p>
|
||
<h5 id="examples-12"><a href="#examples-12">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">sup</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">is_subset</span>(<span class="kw-2">&</span><span class="ident">sup</span>), <span class="bool-val">true</span>);
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">is_subset</span>(<span class="kw-2">&</span><span class="ident">sup</span>), <span class="bool-val">true</span>);
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">4</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">is_subset</span>(<span class="kw-2">&</span><span class="ident">sup</span>), <span class="bool-val">false</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_superset" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#774-776">source</a></span><h4 class="code-header">pub fn <a href="#method.is_superset" class="fnname">is_superset</a>(&self, other: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the set is a superset of another,
|
||
i.e., <code>self</code> contains at least all the elements in <code>other</code>.</p>
|
||
<h5 id="examples-13"><a href="#examples-13">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">sub</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>]);
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">is_superset</span>(<span class="kw-2">&</span><span class="ident">sub</span>), <span class="bool-val">false</span>);
|
||
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">0</span>);
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">is_superset</span>(<span class="kw-2">&</span><span class="ident">sub</span>), <span class="bool-val">false</span>);
|
||
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">is_superset</span>(<span class="kw-2">&</span><span class="ident">sub</span>), <span class="bool-val">true</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.first" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#801-803">source</a></span><h4 class="code-header">pub fn <a href="#method.first" class="fnname">first</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>map_first_last</code>)</div></span></summary><div class="docblock"><p>Returns a reference to the first element in the set, if any.
|
||
This element is always the minimum of all elements in the set.</p>
|
||
<h5 id="examples-14"><a href="#examples-14">Examples</a></h5>
|
||
<p>Basic usage:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attribute">#![<span class="ident">feature</span>(<span class="ident">map_first_last</span>)]</span>
|
||
<span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">first</span>(), <span class="prelude-val">None</span>);
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">first</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">1</span>));
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">first</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">1</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.last" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#828-830">source</a></span><h4 class="code-header">pub fn <a href="#method.last" class="fnname">last</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>map_first_last</code>)</div></span></summary><div class="docblock"><p>Returns a reference to the last element in the set, if any.
|
||
This element is always the maximum of all elements in the set.</p>
|
||
<h5 id="examples-15"><a href="#examples-15">Examples</a></h5>
|
||
<p>Basic usage:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attribute">#![<span class="ident">feature</span>(<span class="ident">map_first_last</span>)]</span>
|
||
<span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">last</span>(), <span class="prelude-val">None</span>);
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">last</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">1</span>));
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">last</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">2</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pop_first" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#853-855">source</a></span><h4 class="code-header">pub fn <a href="#method.pop_first" class="fnname">pop_first</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>map_first_last</code>)</div></span></summary><div class="docblock"><p>Removes the first element from the set and returns it, if any.
|
||
The first element is always the minimum element in the set.</p>
|
||
<h5 id="examples-16"><a href="#examples-16">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attribute">#![<span class="ident">feature</span>(<span class="ident">map_first_last</span>)]</span>
|
||
<span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="kw">while</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">n</span>) <span class="op">=</span> <span class="ident">set</span>.<span class="ident">pop_first</span>() {
|
||
<span class="macro">assert_eq!</span>(<span class="ident">n</span>, <span class="number">1</span>);
|
||
}
|
||
<span class="macro">assert!</span>(<span class="ident">set</span>.<span class="ident">is_empty</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pop_last" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#878-880">source</a></span><h4 class="code-header">pub fn <a href="#method.pop_last" class="fnname">pop_last</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>map_first_last</code>)</div></span></summary><div class="docblock"><p>Removes the last element from the set and returns it, if any.
|
||
The last element is always the maximum element in the set.</p>
|
||
<h5 id="examples-17"><a href="#examples-17">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attribute">#![<span class="ident">feature</span>(<span class="ident">map_first_last</span>)]</span>
|
||
<span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="kw">while</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">n</span>) <span class="op">=</span> <span class="ident">set</span>.<span class="ident">pop_last</span>() {
|
||
<span class="macro">assert_eq!</span>(<span class="ident">n</span>, <span class="number">1</span>);
|
||
}
|
||
<span class="macro">assert!</span>(<span class="ident">set</span>.<span class="ident">is_empty</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.insert" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#910-912">source</a></span><h4 class="code-header">pub fn <a href="#method.insert" class="fnname">insert</a>(&mut self, value: T) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Adds a value to the set.</p>
|
||
<p>Returns whether the value was newly inserted. That is:</p>
|
||
<ul>
|
||
<li>If the set did not previously contain an equal value, <code>true</code> is
|
||
returned.</li>
|
||
<li>If the set already contained an equal value, <code>false</code> is returned, and
|
||
the entry is not updated.</li>
|
||
</ul>
|
||
<p>See the <a href="index.html#insert-and-complex-keys">module-level documentation</a> for more.</p>
|
||
<h5 id="examples-18"><a href="#examples-18">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">2</span>), <span class="bool-val">true</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">2</span>), <span class="bool-val">false</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">len</span>(), <span class="number">1</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.replace" class="method has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.9.0">1.9.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#933-935">source</a></span><h4 class="code-header">pub fn <a href="#method.replace" class="fnname">replace</a>(&mut self, value: T) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h4></section></summary><div class="docblock"><p>Adds a value to the set, replacing the existing element, if any, that is
|
||
equal to the value. Returns the replaced element.</p>
|
||
<h5 id="examples-19"><a href="#examples-19">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="ident">Vec</span>::<span class="op"><</span><span class="ident">i32</span><span class="op">></span><span class="ident">::new</span>());
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">get</span>(<span class="kw-2">&</span>[][..]).<span class="ident">unwrap</span>().<span class="ident">capacity</span>(), <span class="number">0</span>);
|
||
<span class="ident">set</span>.<span class="ident">replace</span>(<span class="ident">Vec::with_capacity</span>(<span class="number">10</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">get</span>(<span class="kw-2">&</span>[][..]).<span class="ident">unwrap</span>().<span class="ident">capacity</span>(), <span class="number">10</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.remove" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#959-962">source</a></span><h4 class="code-header">pub fn <a href="#method.remove" class="fnname">remove</a><Q>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Q) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> Q: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class="docblock"><p>If the set contains an element equal to the value, removes it from the
|
||
set and drops it. Returns whether such an element was present.</p>
|
||
<p>The value may be any borrowed form of the set’s element type,
|
||
but the ordering on the borrowed form <em>must</em> match the
|
||
ordering on the element type.</p>
|
||
<h5 id="examples-20"><a href="#examples-20">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
|
||
<span class="ident">set</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="number">2</span>), <span class="bool-val">true</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="number">2</span>), <span class="bool-val">false</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.take" class="method has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.9.0">1.9.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#984-987">source</a></span><h4 class="code-header">pub fn <a href="#method.take" class="fnname">take</a><Q>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Q) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> Q: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class="docblock"><p>Removes and returns the element in the set, if any, that is equal to
|
||
the value.</p>
|
||
<p>The value may be any borrowed form of the set’s element type,
|
||
but the ordering on the borrowed form <em>must</em> match the
|
||
ordering on the element type.</p>
|
||
<h5 id="examples-21"><a href="#examples-21">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">take</span>(<span class="kw-2">&</span><span class="number">2</span>), <span class="prelude-val">Some</span>(<span class="number">2</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set</span>.<span class="ident">take</span>(<span class="kw-2">&</span><span class="number">2</span>), <span class="prelude-val">None</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.retain" class="method has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.53.0">1.53.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1008-1011">source</a></span><h4 class="code-header">pub fn <a href="#method.retain" class="fnname">retain</a><F>(&mut self, f: F) <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>, </span></h4></section></summary><div class="docblock"><p>Retains only the elements specified by the predicate.</p>
|
||
<p>In other words, remove all elements <code>e</code> for which <code>f(&e)</code> returns <code>false</code>.
|
||
The elements are visited in ascending order.</p>
|
||
<h5 id="examples-22"><a href="#examples-22">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>]);
|
||
<span class="comment">// Keep only the even numbers.</span>
|
||
<span class="ident">set</span>.<span class="ident">retain</span>(<span class="op">|</span><span class="kw-2">&</span><span class="ident">k</span><span class="op">|</span> <span class="ident">k</span> <span class="op">%</span> <span class="number">2</span> <span class="op">==</span> <span class="number">0</span>);
|
||
<span class="macro">assert!</span>(<span class="ident">set</span>.<span class="ident">iter</span>().<span class="ident">eq</span>([<span class="number">2</span>, <span class="number">4</span>, <span class="number">6</span>].<span class="ident">iter</span>()));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.append" class="method has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.11.0">1.11.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1045-1048">source</a></span><h4 class="code-header">pub fn <a href="#method.append" class="fnname">append</a>(&mut self, other: &mut <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h4></section></summary><div class="docblock"><p>Moves all elements from <code>other</code> into <code>self</code>, leaving <code>other</code> empty.</p>
|
||
<h5 id="examples-23"><a href="#examples-23">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">3</span>);
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">3</span>);
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">4</span>);
|
||
<span class="ident">b</span>.<span class="ident">insert</span>(<span class="number">5</span>);
|
||
|
||
<span class="ident">a</span>.<span class="ident">append</span>(<span class="kw-2">&mut</span> <span class="ident">b</span>);
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">a</span>.<span class="ident">len</span>(), <span class="number">5</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">b</span>.<span class="ident">len</span>(), <span class="number">0</span>);
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">1</span>));
|
||
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">2</span>));
|
||
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">3</span>));
|
||
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">4</span>));
|
||
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">5</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.split_off" class="method has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.11.0">1.11.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1083-1086">source</a></span><h4 class="code-header">pub fn <a href="#method.split_off" class="fnname">split_off</a><Q>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Q) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> Q: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h4></section></summary><div class="docblock"><p>Splits the collection into two at the value. Returns a new collection
|
||
with all elements greater than or equal to the value.</p>
|
||
<h5 id="examples-24"><a href="#examples-24">Examples</a></h5>
|
||
<p>Basic usage:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">2</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">3</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">17</span>);
|
||
<span class="ident">a</span>.<span class="ident">insert</span>(<span class="number">41</span>);
|
||
|
||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">a</span>.<span class="ident">split_off</span>(<span class="kw-2">&</span><span class="number">3</span>);
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">a</span>.<span class="ident">len</span>(), <span class="number">2</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">b</span>.<span class="ident">len</span>(), <span class="number">3</span>);
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">1</span>));
|
||
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">2</span>));
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">b</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">3</span>));
|
||
<span class="macro">assert!</span>(<span class="ident">b</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">17</span>));
|
||
<span class="macro">assert!</span>(<span class="ident">b</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="number">41</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.drain_filter" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1121-1124">source</a></span><h4 class="code-header">pub fn <a href="#method.drain_filter" class="fnname">drain_filter</a><'a, F>(&'a mut self, pred: F) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.DrainFilter.html" title="struct alloc::collections::btree::set::DrainFilter">DrainFilter</a><'a, T, F, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> F: 'a + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>, </span></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>btree_drain_filter</code>)</div></span></summary><div class="docblock"><p>Creates an iterator that visits all elements in ascending order and
|
||
uses a closure to determine if an element should be removed.</p>
|
||
<p>If the closure returns <code>true</code>, the element is removed from the set and
|
||
yielded. If the closure returns <code>false</code>, or panics, the element remains
|
||
in the set and will not be yielded.</p>
|
||
<p>If the iterator is only partially consumed or not consumed at all, each
|
||
of the remaining elements is still subjected to the closure and removed
|
||
and dropped if it returns <code>true</code>.</p>
|
||
<p>It is unspecified how many more elements will be subjected to the
|
||
closure if a panic occurs in the closure, or if a panic occurs while
|
||
dropping an element, or if the <code>DrainFilter</code> itself is leaked.</p>
|
||
<h5 id="examples-25"><a href="#examples-25">Examples</a></h5>
|
||
<p>Splitting a set into even and odd values, reusing the original set:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attribute">#![<span class="ident">feature</span>(<span class="ident">btree_drain_filter</span>)]</span>
|
||
<span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set</span>: <span class="ident">BTreeSet</span><span class="op"><</span><span class="ident">i32</span><span class="op">></span> <span class="op">=</span> (<span class="number">0</span>..<span class="number">8</span>).<span class="ident">collect</span>();
|
||
<span class="kw">let</span> <span class="ident">evens</span>: <span class="ident">BTreeSet</span><span class="op"><</span><span class="kw">_</span><span class="op">></span> <span class="op">=</span> <span class="ident">set</span>.<span class="ident">drain_filter</span>(<span class="op">|</span><span class="ident">v</span><span class="op">|</span> <span class="ident">v</span> <span class="op">%</span> <span class="number">2</span> <span class="op">==</span> <span class="number">0</span>).<span class="ident">collect</span>();
|
||
<span class="kw">let</span> <span class="ident">odds</span> <span class="op">=</span> <span class="ident">set</span>;
|
||
<span class="macro">assert_eq!</span>(<span class="ident">evens</span>.<span class="ident">into_iter</span>().<span class="ident">collect</span>::<span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></span>(), <span class="macro">vec!</span>[<span class="number">0</span>, <span class="number">2</span>, <span class="number">4</span>, <span class="number">6</span>]);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">odds</span>.<span class="ident">into_iter</span>().<span class="ident">collect</span>::<span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></span>(), <span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">3</span>, <span class="number">5</span>, <span class="number">7</span>]);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1159">source</a></span><h4 class="code-header">pub fn <a href="#method.iter" class="fnname">iter</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.Iter.html" title="struct alloc::collections::btree::set::Iter">Iter</a><'_, T></h4></section></summary><div class="docblock"><p>Gets an iterator that visits the elements in the <code>BTreeSet</code> in ascending
|
||
order.</p>
|
||
<h5 id="examples-26"><a href="#examples-26">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set_iter</span> <span class="op">=</span> <span class="ident">set</span>.<span class="ident">iter</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">1</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">2</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">3</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">None</span>);</code></pre></div>
|
||
<p>Values returned by the iterator are returned in ascending order:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">3</span>, <span class="number">1</span>, <span class="number">2</span>]);
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">set_iter</span> <span class="op">=</span> <span class="ident">set</span>.<span class="ident">iter</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">1</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">2</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="number">3</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set_iter</span>.<span class="ident">next</span>(), <span class="prelude-val">None</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.len" class="method has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/71835" title="Tracking issue for const_btree_new">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1178">source</a></span><h4 class="code-header">pub fn <a href="#method.len" class="fnname">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the number of elements in the set.</p>
|
||
<h5 id="examples-27"><a href="#examples-27">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">v</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>.<span class="ident">len</span>(), <span class="number">0</span>);
|
||
<span class="ident">v</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>.<span class="ident">len</span>(), <span class="number">1</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_empty" class="method has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/71835" title="Tracking issue for const_btree_new">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1197">source</a></span><h4 class="code-header">pub fn <a href="#method.is_empty" class="fnname">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the set contains no elements.</p>
|
||
<h5 id="examples-28"><a href="#examples-28">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">v</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||
<span class="macro">assert!</span>(<span class="ident">v</span>.<span class="ident">is_empty</span>());
|
||
<span class="ident">v</span>.<span class="ident">insert</span>(<span class="number">1</span>);
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">v</span>.<span class="ident">is_empty</span>());</code></pre></div>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-BitAnd%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1429">source</a></span><a href="#impl-BitAnd%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a><&<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>> for &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bitand" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1445">source</a></span><a href="#method.bitand" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitAnd.html#tymethod.bitand" class="fnname">bitand</a>(self, rhs: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class="docblock"><p>Returns the intersection of <code>self</code> and <code>rhs</code> as a new <code>BTreeSet<T></code>.</p>
|
||
<h5 id="examples-31"><a href="#examples-31">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]);
|
||
|
||
<span class="kw">let</span> <span class="ident">result</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">a</span> <span class="op">&</span> <span class="kw-2">&</span><span class="ident">b</span>;
|
||
<span class="macro">assert_eq!</span>(<span class="ident">result</span>, <span class="ident">BTreeSet::from</span>([<span class="number">2</span>, <span class="number">3</span>]));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-2" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitAnd.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class='docblock'><p>The resulting type after applying the <code>&</code> operator.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-BitOr%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1454">source</a></span><a href="#impl-BitOr%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a><&<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>> for &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bitor" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1470">source</a></span><a href="#method.bitor" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitOr.html#tymethod.bitor" class="fnname">bitor</a>(self, rhs: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class="docblock"><p>Returns the union of <code>self</code> and <code>rhs</code> as a new <code>BTreeSet<T></code>.</p>
|
||
<h5 id="examples-30"><a href="#examples-30">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>]);
|
||
|
||
<span class="kw">let</span> <span class="ident">result</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">a</span> <span class="op">|</span> <span class="kw-2">&</span><span class="ident">b</span>;
|
||
<span class="macro">assert_eq!</span>(<span class="ident">result</span>, <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>]));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitOr.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class='docblock'><p>The resulting type after applying the <code>|</code> operator.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-BitXor%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1404">source</a></span><a href="#impl-BitXor%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a><&<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>> for &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bitxor" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1420">source</a></span><a href="#method.bitxor" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitXor.html#tymethod.bitxor" class="fnname">bitxor</a>(self, rhs: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class="docblock"><p>Returns the symmetric difference of <code>self</code> and <code>rhs</code> as a new <code>BTreeSet<T></code>.</p>
|
||
<h5 id="examples-29"><a href="#examples-29">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]);
|
||
|
||
<span class="kw">let</span> <span class="ident">result</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">a</span> <span class="op">^</span> <span class="kw-2">&</span><span class="ident">b</span>;
|
||
<span class="macro">assert_eq!</span>(<span class="ident">result</span>, <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">4</span>]));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/bit/trait.BitXor.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class='docblock'><p>The resulting type after applying the <code>^</code> operator.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-CheckDerConstraints-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-CheckDerConstraints-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> CheckDerConstraints for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: CheckDerConstraints, </span></h3></section></summary><div class="impl-items"><section id="method.check_constraints" class="method trait-impl has-srclink"><a href="#method.check_constraints" class="anchor"></a><h4 class="code-header">fn <a class="fnname">check_constraints</a>(any: &Any<'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>, Error></h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#120">source</a></span><a href="#impl-Clone-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#121">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#125">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, other: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1479">source</a></span><a href="#impl-Debug-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1480">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1371">source</a></span><a href="#impl-Default-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1373">source</a></span><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h4></section></summary><div class="docblock"><p>Creates an empty <code>BTreeSet</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/serde/1.0.145/src/serde/de/impls.rs.html#968-975">source</a></span><a href="#impl-Deserialize%3C%27de%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<'de, T> <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/serde/1.0.145/src/serde/de/impls.rs.html#968-975">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><D>(<br> deserializer: D<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <D as <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Extend%3C%26%27a%20T%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.2.0">1.2.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1359">source</a></span><a href="#impl-Extend%3C%26%27a%20T%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/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/1.64.0/std/primitive.reference.html">&'a </a>T> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.extend-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1360">source</a></span><a href="#method.extend-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#tymethod.extend" class="fnname">extend</a><I>(&mut self, iter: I) <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/1.64.0/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/1.64.0/std/primitive.reference.html">&'a </a>T>, </span></h4></section></summary><div class='docblock'><p>Extends a collection with the contents of an iterator. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.extend_one-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1365">source</a></span><a href="#method.extend_one-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#method.extend_one" class="fnname">extend_one</a>(&mut self, <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&'a </a>T)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>extend_one</code>)</div></span><div class='docblock'><p>Extends a collection with exactly one element.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.extend_reserve-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/iter/traits/collect.rs.html#379">source</a></span><a href="#method.extend_reserve-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve" class="fnname">extend_reserve</a>(&mut self, additional: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>extend_one</code>)</div></span><div class='docblock'><p>Reserves capacity in a collection for the given number of additional elements. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Extend%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1344">source</a></span><a href="#impl-Extend%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><T> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.extend" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1346">source</a></span><a href="#method.extend" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#tymethod.extend" class="fnname">extend</a><Iter>(&mut self, iter: Iter) <span class="where fmt-newline">where<br> Iter: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>, </span></h4></section></summary><div class='docblock'><p>Extends a collection with the contents of an iterator. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.extend_one" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1353">source</a></span><a href="#method.extend_one" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#method.extend_one" class="fnname">extend_one</a>(&mut self, elem: T)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>extend_one</code>)</div></span><div class='docblock'><p>Extends a collection with exactly one element.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.extend_reserve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/iter/traits/collect.rs.html#379">source</a></span><a href="#method.extend_reserve" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve" class="fnname">extend_reserve</a>(&mut self, additional: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>extend_one</code>)</div></span><div class='docblock'><p>Reserves capacity in a collection for the given number of additional elements. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Extend%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-Extend%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> Extend<T> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.extend-2" class="method trait-impl has-srclink"><a href="#method.extend-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">extend</a><'a, S>(<br> &'a mut self,<br> stream: S<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'a, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>> <span class="where fmt-newline">where<br> S: 'a + IntoStream<Item = T>,<br> <S as IntoStream>::IntoStream: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></h4></section></summary><div class='docblock'><p>Extends a collection with the contents of a stream.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%5BT%3B%20N%5D%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.56.0">1.56.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1226">source</a></span><a href="#impl-From%3C%5BT%3B%20N%5D%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, const N: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">; N]</a>> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1236">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(arr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">; N]</a>) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h4></section></summary><div class="docblock"><p>Converts a <code>[T; N]</code> into a <code>BTreeSet<T></code>.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">set1</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]);
|
||
<span class="kw">let</span> <span class="ident">set2</span>: <span class="ident">BTreeSet</span><span class="op"><</span><span class="kw">_</span><span class="op">></span> <span class="op">=</span> [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>].<span class="ident">into</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">set1</span>, <span class="ident">set2</span>);</code></pre></div>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromFallibleIterator%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/fallible-iterator/0.2/src/fallible_iterator/lib.rs.html#1122">source</a></span><a href="#impl-FromFallibleIterator%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/fallible-iterator/0.2/fallible_iterator/trait.FromFallibleIterator.html" title="trait fallible_iterator::FromFallibleIterator">FromFallibleIterator</a><T> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_fallible_iter" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/fallible-iterator/0.2/src/fallible_iterator/lib.rs.html#1127-1129">source</a></span><a href="#method.from_fallible_iter" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/fallible-iterator/0.2/fallible_iterator/trait.FromFallibleIterator.html#tymethod.from_fallible_iter" class="fnname">from_fallible_iter</a><I>(<br> it: I<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <I as <a class="trait" href="https://docs.rs/fallible-iterator/0.2/fallible_iterator/trait.IntoFallibleIterator.html" title="trait fallible_iterator::IntoFallibleIterator">IntoFallibleIterator</a>>::<a class="associatedtype" href="https://docs.rs/fallible-iterator/0.2/fallible_iterator/trait.IntoFallibleIterator.html#associatedtype.Error" title="type fallible_iterator::IntoFallibleIterator::Error">Error</a>> <span class="where fmt-newline">where<br> I: <a class="trait" href="https://docs.rs/fallible-iterator/0.2/fallible_iterator/trait.IntoFallibleIterator.html" title="trait fallible_iterator::IntoFallibleIterator">IntoFallibleIterator</a><Item = T>, </span></h4></section></summary><div class='docblock'><p>Creates a value from a fallible iterator.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromIterator%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1203">source</a></span><a href="#impl-FromIterator%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a><T> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_iter" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1204">source</a></span><a href="#method.from_iter" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter" class="fnname">from_iter</a><I>(iter: I) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>, </span></h4></section></summary><div class='docblock'><p>Creates a value from an iterator. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromStream%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-FromStream%3CT%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> FromStream<T> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_stream" class="method trait-impl has-srclink"><a href="#method.from_stream" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from_stream</a><'a, S>(<br> stream: S<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'a, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>> <span class="where fmt-newline">where<br> S: 'a + IntoStream<Item = T>,<br> <S as IntoStream>::IntoStream: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></h4></section></summary><div class='docblock'><p>Creates a value from a stream. <a>Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-HasLen-for-%26%27a%20BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-HasLen-for-%26%27a%20BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> HasLen for &'a <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h3></section></summary><div class="impl-items"><section id="method.length-1" class="method trait-impl has-srclink"><a href="#method.length-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">length</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u64.html">u64</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-HasLen-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-HasLen-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> HasLen for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h3></section></summary><div class="impl-items"><section id="method.length" class="method trait-impl has-srclink"><a href="#method.length" class="anchor"></a><h4 class="code-header">fn <a class="fnname">length</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u64.html">u64</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Hash-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#89">source</a></span><a href="#impl-Hash-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#90">source</a></span><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a><H>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></section></summary><div class='docblock'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/hash/mod.rs.html#237-239">source</a></span><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a><H>(data: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.slice.html">[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></section></summary><div class='docblock'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IntoDeserializer%3C%27de%2C%20E%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/serde/1.0.145/src/serde/de/value.rs.html#1019">source</a></span><a href="#impl-IntoDeserializer%3C%27de%2C%20E%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<'de, T, E> <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.IntoDeserializer.html" title="trait serde::de::IntoDeserializer">IntoDeserializer</a><'de, E> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.IntoDeserializer.html" title="trait serde::de::IntoDeserializer">IntoDeserializer</a><'de, E> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> E: <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.Error.html" title="trait serde::de::Error">Error</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Deserializer" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Deserializer" class="anchor"></a><h4 class="code-header">type <a href="https://docs.rs/serde/1.0.145/serde/de/trait.IntoDeserializer.html#associatedtype.Deserializer" class="associatedtype">Deserializer</a> = <a class="struct" href="https://docs.rs/serde/1.0.145/serde/de/value/struct.SeqDeserializer.html" title="struct serde::de::value::SeqDeserializer">SeqDeserializer</a><<<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>, E></h4></section></summary><div class='docblock'><p>The type of the deserializer being converted into.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_deserializer" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/serde/1.0.145/src/serde/de/value.rs.html#1026">source</a></span><a href="#method.into_deserializer" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.145/serde/de/trait.IntoDeserializer.html#tymethod.into_deserializer" class="fnname">into_deserializer</a>(<br> self<br>) -> <<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> as <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.IntoDeserializer.html" title="trait serde::de::IntoDeserializer">IntoDeserializer</a><'de, E>>::<a class="associatedtype" href="https://docs.rs/serde/1.0.145/serde/de/trait.IntoDeserializer.html#associatedtype.Deserializer" title="type serde::de::IntoDeserializer::Deserializer">Deserializer</a></h4></section></summary><div class='docblock'><p>Convert this value into a deserializer.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26%27a%20BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1272">source</a></span><a href="#impl-IntoIterator-for-%26%27a%20BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &'a <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Item-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&'a </a>T</h4></section></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.IntoIter-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.IntoIter-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.Iter.html" title="struct alloc::collections::btree::set::Iter">Iter</a><'a, T></h4></section></summary><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_iter-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1276">source</a></span><a href="#method.into_iter-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.Iter.html" title="struct alloc::collections::btree::set::Iter">Iter</a><'a, T></h4></section></summary><div class='docblock'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1250">source</a></span><a href="#impl-IntoIterator-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_iter" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1266">source</a></span><a href="#method.into_iter" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.IntoIter.html" title="struct alloc::collections::btree::set::IntoIter">IntoIter</a><T, A></h4></section></summary><div class="docblock"><p>Gets an iterator for moving out the <code>BTreeSet</code>’s contents.</p>
|
||
<h5 id="examples-32"><a href="#examples-32">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">set</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]);
|
||
|
||
<span class="kw">let</span> <span class="ident">v</span>: <span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span> <span class="op">=</span> <span class="ident">set</span>.<span class="ident">into_iter</span>().<span class="ident">collect</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>, [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Item" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.IntoIter" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.IntoIter" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/collections/btree/set/struct.IntoIter.html" title="struct alloc::collections::btree::set::IntoIter">IntoIter</a><T, A></h4></section></summary><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#113">source</a></span><a href="#impl-Ord-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#114">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&self, other: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/1.64.0/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#800-803">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.min" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#827-830">source</a></span><a href="#method.min" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.min" class="fnname">min</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#859-863">source</a></span><a href="#method.clamp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.clamp" class="fnname">clamp</a>(self, min: Self, max: Self) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><Self>, </span></h4></section></summary><div class='docblock'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBTreeSet%3CT%2C%20A%3E%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#96">source</a></span><a href="#impl-PartialEq%3CBTreeSet%3CT%2C%20A%3E%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><T>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#97">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CBTreeSet%3CT%2C%20A%3E%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#106">source</a></span><a href="#impl-PartialOrd%3CBTreeSet%3CT%2C%20A%3E%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><T>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#107">source</a></span><a href="#method.partial_cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fnname">partial_cmp</a>(&self, other: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></h4></section></summary><div class='docblock'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1122">source</a></span><a href="#method.lt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.lt" class="fnname">lt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method 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/1.64.0/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1141">source</a></span><a href="#method.le" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.le" class="fnname">le</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method 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/1.64.0/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1163">source</a></span><a href="#method.gt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.gt" class="fnname">gt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method 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/1.64.0/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1182">source</a></span><a href="#method.ge" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.ge" class="fnname">ge</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method 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/1.64.0/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Serialize-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/serde/1.0.145/src/serde/ser/impls.rs.html#208">source</a></span><a href="#impl-Serialize-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/serde/1.0.145/src/serde/ser/impls.rs.html#208">source</a></span><a href="#method.serialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><S>(<br> &self,<br> serializer: S<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<S as <a class="trait" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>>::<a class="associatedtype" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, <S as <a class="trait" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>>::<a class="associatedtype" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></h4></section></summary><div class='docblock'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1379">source</a></span><a href="#impl-Sub%3C%26BTreeSet%3CT%2C%20A%3E%3E-for-%26BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><&<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>> for &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#1395">source</a></span><a href="#method.sub" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, rhs: &<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A>) -> <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class="docblock"><p>Returns the difference of <code>self</code> and <code>rhs</code> as a new <code>BTreeSet<T></code>.</p>
|
||
<h5 id="examples-33"><a href="#examples-33">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">BTreeSet::from</span>([<span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>]);
|
||
|
||
<span class="kw">let</span> <span class="ident">result</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">a</span> <span class="op">-</span> <span class="kw-2">&</span><span class="ident">b</span>;
|
||
<span class="macro">assert_eq!</span>(<span class="ident">result</span>, <span class="ident">BTreeSet::from</span>([<span class="number">1</span>, <span class="number">2</span>]));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-3" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A></h4></section></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Tagged-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-Tagged-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> Tagged for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h3></section></summary><div class="impl-items"><section id="associatedconstant.TAG" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.TAG" class="anchor"></a><h4 class="code-header">const <a class="constant">TAG</a>: Tag = Tag::Set</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ToDer-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-ToDer-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> ToDer for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: ToDer, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_der_len" class="method trait-impl has-srclink"><a href="#method.to_der_len" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_der_len</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>, Error></h4></section></summary><div class='docblock'><p>Get the length of the object, when encoded <a>Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_der_header" class="method trait-impl has-srclink"><a href="#method.write_der_header" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_der_header</a>(<br> &self,<br> writer: &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>, SerializeError></h4></section></summary><div class='docblock'><p>Attempt to write the DER header to this writer.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_der_content" class="method trait-impl has-srclink"><a href="#method.write_der_content" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_der_content</a>(<br> &self,<br> writer: &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>, SerializeError></h4></section></summary><div class='docblock'><p>Attempt to write the DER content (all except header) to this writer.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_der_vec" class="method trait-impl has-srclink"><a href="#method.to_der_vec" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_der_vec</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, SerializeError></h4></section></summary><div class='docblock'><p>Write the DER encoded representation to a newly allocated <code>Vec<u8></code>.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_der_vec_raw" class="method trait-impl has-srclink"><a href="#method.to_der_vec_raw" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_der_vec_raw</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, SerializeError></h4></section></summary><div class='docblock'><p>Similar to using <code>to_vec</code>, but uses provided values without changes.
|
||
This can generate an invalid encoding for a DER object. <a>Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_der" class="method trait-impl has-srclink"><a href="#method.write_der" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_der</a>(&self, writer: &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>, SerializeError></h4></section></summary><div class='docblock'><p>Attempt to write the DER encoded representation (header and content) into this writer. <a>Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_der_raw" class="method trait-impl has-srclink"><a href="#method.write_der_raw" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_der_raw</a>(&self, writer: &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>, SerializeError></h4></section></summary><div class='docblock'><p>Similar to using <code>to_der</code>, but uses provided values without changes.
|
||
This can generate an invalid encoding for a DER object. <a>Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CAny%3C%27a%3E%3E-for-BTreeSet%3CT%2C%20Global%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CAny%3C%27a%3E%3E-for-BTreeSet%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><Any<'a>> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>> <span class="where fmt-newline">where<br> T: FromBer<'a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = Error</h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(any: Any<'a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, Error></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><section id="impl-Eq-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/collections/btree/set.rs.html#103">source</a></span><a href="#impl-Eq-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>, </span></h3></section><section id="impl-Send-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Send-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></h3></section><section id="impl-Sync-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Sync-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></h3></section><section id="impl-Unpin-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Unpin-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></h3></section><section id="impl-UnwindSafe-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, A> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../idm/authsession/struct.Set.html" title="struct kanidmd_lib::idm::authsession::Set">BTreeSet</a><T, A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>, </span></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#203">source</a></span><a href="#impl-Any-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-AsTaggedExplicit%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-AsTaggedExplicit%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> AsTaggedExplicit<'a> for T <span class="where fmt-newline">where<br> T: 'a, </span></h3></section></summary><div class="impl-items"><section id="method.explicit" class="method trait-impl has-srclink"><a href="#method.explicit" class="anchor"></a><h4 class="code-header">fn <a class="fnname">explicit</a>(self, class: Class, tag: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u32.html">u32</a>) -> TaggedParser<'a, Explicit, Self></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-AsTaggedImplicit%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-AsTaggedImplicit%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> AsTaggedImplicit<'a> for T <span class="where fmt-newline">where<br> T: 'a, </span></h3></section></summary><div class="impl-items"><section id="method.implicit" class="method trait-impl has-srclink"><a href="#method.implicit" class="anchor"></a><h4 class="code-header">fn <a class="fnname">implicit</a>(<br> self,<br> class: Class,<br> constructed: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>,<br> tag: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u32.html">u32</a><br>) -> TaggedParser<'a, Implicit, Self></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#209">source</a></span><a href="#impl-Borrow%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#218">source</a></span><a href="#impl-BorrowMut%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-CallHasher-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-CallHasher-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> CallHasher for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><section id="method.get_hash" class="method trait-impl has-srclink"><a href="#method.get_hash" class="anchor"></a><h4 class="code-header">fn <a class="fnname">get_hash</a><H, B>(value: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>H, build_hasher: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>B) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u64.html">u64</a> <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> B: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a>, </span></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Choice-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Choice-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> Choice for T <span class="where fmt-newline">where<br> T: Tagged, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.can_decode" class="method trait-impl has-srclink"><a href="#method.can_decode" class="anchor"></a><h4 class="code-header">fn <a class="fnname">can_decode</a>(tag: Tag) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>Is the provided [<code>Tag</code>] decodable as a variant of this <code>CHOICE</code>?</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-DynClone-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/dyn_clone/1.0.9/src/dyn_clone/lib.rs.html#188">source</a></span><a href="#impl-DynClone-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/dyn_clone/1.0.9/dyn_clone/trait.DynClone.html" title="trait dyn_clone::DynClone">DynClone</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><section id="method.__clone_box" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/dyn_clone/1.0.9/src/dyn_clone/lib.rs.html#192">source</a></span><a href="#method.__clone_box" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/dyn_clone/1.0.9/dyn_clone/trait.DynClone.html#tymethod.__clone_box" class="fnname">__clone_box</a>(&self, Private) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-DynTagged-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-DynTagged-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> DynTagged for T <span class="where fmt-newline">where<br> T: Tagged, </span></h3></section></summary><div class="impl-items"><section id="method.tag" class="method trait-impl has-srclink"><a href="#method.tag" class="anchor"></a><h4 class="code-header">fn <a class="fnname">tag</a>(&self) -> Tag</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#557">source</a></span><a href="#impl-From%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#559">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FromBer%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-FromBer%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> FromBer<'a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><Any<'a>, Error = Error>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_ber" class="method trait-impl has-srclink"><a href="#method.from_ber" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from_ber</a>(bytes: &'a [<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(&'a [<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>], T), Err<Error>></h4></section></summary><div class='docblock'><p>Attempt to parse input bytes into a BER object</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-FromDer%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-FromDer%3C%27a%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> FromDer<'a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><Any<'a>, Error = Error> + CheckDerConstraints, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_der" class="method trait-impl has-srclink"><a href="#method.from_der" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from_der</a>(bytes: &'a [<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(&'a [<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>], T), Err<Error>></h4></section></summary><div class='docblock'><p>Attempt to parse input bytes into a DER object (enforcing constraints)</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Instrument-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a></span><a href="#impl-Instrument-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a></span><a href="#method.instrument" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'><p>Instruments this type with the provided <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title="Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a></span><a href="#method.in_current_span" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'><p>Instruments this type with the <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current">current</a> <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#541">source</a></span><a href="#impl-Into%3CU%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#549">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html#tymethod.into" class="fnname">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/1.64.0/core/convert/trait.From.html" title="From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Pointable-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Pointable-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> Pointable for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedconstant.ALIGN" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.ALIGN" class="anchor"></a><h4 class="code-header">const <a class="constant">ALIGN</a>: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a> = mem::align_of::<T>()</h4></section></summary><div class='docblock'><p>The alignment of pointer.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Init" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Init" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Init</a> = T</h4></section></summary><div class='docblock'><p>The type for initializers.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.init" class="method trait-impl has-srclink"><a href="#method.init" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">init</a>(init: <T as Pointable>::Init) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'><p>Initializes a with the given initializer. <a>Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl has-srclink"><a href="#method.deref" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">deref</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&'a </a>T</h4></section></summary><div class='docblock'><p>Dereferences the given pointer. <a>Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl has-srclink"><a href="#method.deref_mut" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">deref_mut</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&'a mut </a>T</h4></section></summary><div class='docblock'><p>Mutably dereferences the given pointer. <a>Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl has-srclink"><a href="#method.drop" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">drop</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'><p>Drops the object pointed to by the given pointer. <a>Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Same%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/typenum/1.15.0/src/typenum/type_operators.rs.html#34">source</a></span><a href="#impl-Same%3CT%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/typenum/1.15.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.15.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'><p>Should always be <code>Self</code></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Serialize-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/erased-serde/0.3.23/src/erased_serde/ser.rs.html#238">source</a></span><a href="#impl-Serialize-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/erased-serde/0.3.23/erased_serde/ser/trait.Serialize.html" title="trait erased_serde::ser::Serialize">Serialize</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://docs.rs/serde/1.0.145/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><section id="method.erased_serialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/erased-serde/0.3.23/src/erased_serde/ser.rs.html#242">source</a></span><a href="#method.erased_serialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/erased-serde/0.3.23/erased_serde/ser/trait.Serialize.html#tymethod.erased_serialize" class="fnname">erased_serialize</a>(&self, serializer: &mut dyn <a class="trait" href="https://docs.rs/erased-serde/0.3.23/erased_serde/ser/trait.Serializer.html" title="trait erased_serde::ser::Serializer">Serializer</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Ok, <a class="struct" href="https://docs.rs/erased-serde/0.3.23/erased_serde/error/struct.Error.html" title="struct erased_serde::error::Error">Error</a>></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#83">source</a></span><a href="#impl-ToOwned-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#88">source</a></span><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#92">source</a></span><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>T)</h4></section></summary><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#598">source</a></span><a href="#impl-TryFrom%3CU%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-1" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#604">source</a></span><a href="#method.try_from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#583">source</a></span><a href="#impl-TryInto%3CU%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-2" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#589">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-VZip%3CV%3E-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<V, T> VZip<V> for T <span class="where fmt-newline">where<br> V: MultiLane<T>, </span></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl has-srclink"><a href="#method.vzip" class="anchor"></a><h4 class="code-header">fn <a class="fnname">vzip</a>(self) -> V</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#334">source</a></span><a href="#impl-WithSubscriber-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#169-171">source</a></span><a href="#method.with_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a><S>(self, subscriber: S) -> <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://docs.rs/tracing-core/0.1.22/tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>>, </span></h4></section></summary><div class='docblock'><p>Attaches the provided <a href="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a></span><a href="#method.with_current_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -> <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'><p>Attaches the current <a href="https://docs.rs/tracing/0.1.37/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></p>
|
||
</div></details></div></details><section id="impl-DeserializeOwned-for-BTreeSet%3CT%2C%20A%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/serde/1.0.145/src/serde/de/mod.rs.html#605">source</a></span><a href="#impl-DeserializeOwned-for-BTreeSet%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T <span class="where fmt-newline">where<br> T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.145/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></h3></section></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="kanidmd_lib" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html> |