kanidm/docs/v1.1.0-alpha.9/rustdoc/kanidmd_lib/constants/uuids/struct.UUID_ADMIN.html
2022-10-07 09:23:12 +00:00

206 lines
64 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `UUID_ADMIN` struct in crate `kanidmd_lib`."><meta name="keywords" content="rust, rustlang, rust-lang, UUID_ADMIN"><title>UUID_ADMIN in kanidmd_lib::constants::uuids - 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">&#9776;</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="#">UUID_ADMIN</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#deref-methods-Uuid">Methods from Deref&lt;Target=Uuid&gt;</a></h3><ul><li><a href="#method.as_braced">as_braced</a></li><li><a href="#method.as_bytes">as_bytes</a></li><li><a href="#method.as_fields">as_fields</a></li><li><a href="#method.as_hyphenated">as_hyphenated</a></li><li><a href="#method.as_simple">as_simple</a></li><li><a href="#method.as_u128">as_u128</a></li><li><a href="#method.as_u64_pair">as_u64_pair</a></li><li><a href="#method.as_urn">as_urn</a></li><li><a href="#method.get_variant">get_variant</a></li><li><a href="#method.get_version">get_version</a></li><li><a href="#method.get_version_num">get_version_num</a></li><li><a href="#method.is_nil">is_nil</a></li><li><a href="#method.to_bytes_le">to_bytes_le</a></li><li><a href="#method.to_fields_le">to_fields_le</a></li><li><a href="#method.to_u128_le">to_u128_le</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Deref-for-UUID_ADMIN">Deref</a></li><li><a href="#impl-LazyStatic-for-UUID_ADMIN">LazyStatic</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-UUID_ADMIN">RefUnwindSafe</a></li><li><a href="#impl-Send-for-UUID_ADMIN">Send</a></li><li><a href="#impl-Sync-for-UUID_ADMIN">Sync</a></li><li><a href="#impl-Unpin-for-UUID_ADMIN">Unpin</a></li><li><a href="#impl-UnwindSafe-for-UUID_ADMIN">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-UUID_ADMIN">Any</a></li><li><a href="#impl-AsTaggedExplicit%3C%27a%3E-for-UUID_ADMIN">AsTaggedExplicit&lt;&#39;a&gt;</a></li><li><a href="#impl-AsTaggedImplicit%3C%27a%3E-for-UUID_ADMIN">AsTaggedImplicit&lt;&#39;a&gt;</a></li><li><a href="#impl-Borrow%3CT%3E-for-UUID_ADMIN">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-UUID_ADMIN">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-UUID_ADMIN">From&lt;T&gt;</a></li><li><a href="#impl-Instrument-for-UUID_ADMIN">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-UUID_ADMIN">Into&lt;U&gt;</a></li><li><a href="#impl-Pointable-for-UUID_ADMIN">Pointable</a></li><li><a href="#impl-Same%3CT%3E-for-UUID_ADMIN">Same&lt;T&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E-for-UUID_ADMIN">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-UUID_ADMIN">TryInto&lt;U&gt;</a></li><li><a href="#impl-VZip%3CV%3E-for-UUID_ADMIN">VZip&lt;V&gt;</a></li><li><a href="#impl-WithSubscriber-for-UUID_ADMIN">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In kanidmd_lib::constants::uuids</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">constants</a>::<wbr><a href="index.html">uuids</a>::<wbr><a class="struct" href="#">UUID_ADMIN</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"><a class="srclink" href="../../../src/kanidmd_lib/constants/uuids.rs.html#272-275">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct UUID_ADMIN { /* private fields */ }</code></pre></div><h2 id="deref-methods-Uuid" class="small-section-header"><span>Methods from <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = <a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>&gt;</span><a href="#deref-methods-Uuid" class="anchor"></a></h2><div id="deref-methods-Uuid-1"><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_hyphenated" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/fmt.rs.html#97">source</a></span><h4 class="code-header">pub fn <a href="#method.as_hyphenated" class="fnname">as_hyphenated</a>(&amp;self) -&gt; &amp;<a class="struct" href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Hyphenated.html" title="struct uuid::fmt::Hyphenated">Hyphenated</a></h4></section></summary><div class="docblock"><p>Get a borrowed <a href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Hyphenated.html" title="Hyphenated"><code>Hyphenated</code></a> formatter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_simple" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/fmt.rs.html#110">source</a></span><h4 class="code-header">pub fn <a href="#method.as_simple" class="fnname">as_simple</a>(&amp;self) -&gt; &amp;<a class="struct" href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Simple.html" title="struct uuid::fmt::Simple">Simple</a></h4></section></summary><div class="docblock"><p>Get a borrowed <a href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Simple.html" title="Simple"><code>Simple</code></a> formatter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_urn" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/fmt.rs.html#123">source</a></span><h4 class="code-header">pub fn <a href="#method.as_urn" class="fnname">as_urn</a>(&amp;self) -&gt; &amp;<a class="struct" href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Urn.html" title="struct uuid::fmt::Urn">Urn</a></h4></section></summary><div class="docblock"><p>Get a borrowed <a href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Urn.html" title="Urn"><code>Urn</code></a> formatter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_braced" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/fmt.rs.html#136">source</a></span><h4 class="code-header">pub fn <a href="#method.as_braced" class="fnname">as_braced</a>(&amp;self) -&gt; &amp;<a class="struct" href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Braced.html" title="struct uuid::fmt::Braced">Braced</a></h4></section></summary><div class="docblock"><p>Get a borrowed <a href="https://docs.rs/uuid/1.1.2/uuid/fmt/struct.Braced.html" title="Braced"><code>Braced</code></a> formatter.</p>
</div></details></div><div class="impl-items"><section id="associatedconstant.NAMESPACE_DNS" class="associatedconstant has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#404">source</a></span><h4 class="code-header">pub const <a href="#associatedconstant.NAMESPACE_DNS" class="constant">NAMESPACE_DNS</a>: <a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a> = Uuid([107, 167, 184, 16, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48,
200])</h4></section><section id="associatedconstant.NAMESPACE_OID" class="associatedconstant has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#410">source</a></span><h4 class="code-header">pub const <a href="#associatedconstant.NAMESPACE_OID" class="constant">NAMESPACE_OID</a>: <a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a> = Uuid([107, 167, 184, 18, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48,
200])</h4></section><section id="associatedconstant.NAMESPACE_URL" class="associatedconstant has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#416">source</a></span><h4 class="code-header">pub const <a href="#associatedconstant.NAMESPACE_URL" class="constant">NAMESPACE_URL</a>: <a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a> = Uuid([107, 167, 184, 17, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48,
200])</h4></section><section id="associatedconstant.NAMESPACE_X500" class="associatedconstant has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#422">source</a></span><h4 class="code-header">pub const <a href="#associatedconstant.NAMESPACE_X500" class="constant">NAMESPACE_X500</a>: <a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a> = Uuid([107, 167, 184, 20, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48,
200])</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_variant" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#450">source</a></span><h4 class="code-header">pub fn <a href="#method.get_variant" class="fnname">get_variant</a>(&amp;self) -&gt; <a class="enum" href="https://docs.rs/uuid/1.1.2/uuid/enum.Variant.html" title="enum uuid::Variant">Variant</a></h4></section></summary><div class="docblock"><p>Returns the variant of the UUID structure.</p>
<p>This determines the interpretation of the structure of the UUID.
This method simply reads the value of the variant byte. It doesnt
validate the rest of the UUID as conforming to that variant.</p>
<h5 id="examples"><a href="#examples">Examples</a></h5>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">my_uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;02f09a3f-1624-3b1d-8409-44eff7708208&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(<span class="ident">Variant::RFC4122</span>, <span class="ident">my_uuid</span>.<span class="ident">get_variant</span>());</code></pre></div>
<h5 id="references"><a href="#references">References</a></h5>
<ul>
<li><a href="http://tools.ietf.org/html/rfc4122#section-4.1.1">Variant in RFC4122</a></li>
</ul>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_version_num" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#485">source</a></span><h4 class="code-header">pub fn <a href="#method.get_version_num" class="fnname">get_version_num</a>(&amp;self) -&gt; <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 version number of the UUID.</p>
<p>This represents the algorithm used to generate the value.
This method is the future-proof alternative to <a href="../../prelude/struct.Uuid.html#method.get_version" title="Uuid::get_version"><code>Uuid::get_version</code></a>.</p>
<h5 id="examples-1"><a href="#examples-1">Examples</a></h5>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">my_uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;02f09a3f-1624-3b1d-8409-44eff7708208&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(<span class="number">3</span>, <span class="ident">my_uuid</span>.<span class="ident">get_version_num</span>());</code></pre></div>
<h5 id="references-1"><a href="#references-1">References</a></h5>
<ul>
<li><a href="https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.3">Version in RFC4122</a></li>
</ul>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_version" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#515">source</a></span><h4 class="code-header">pub fn <a href="#method.get_version" class="fnname">get_version</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://docs.rs/uuid/1.1.2/uuid/enum.Version.html" title="enum uuid::Version">Version</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the version of the UUID.</p>
<p>This represents the algorithm used to generate the value.
If the version field doesnt contain a recognized version then <code>None</code>
is returned. If youre trying to read the version for a future extension
you can also use <a href="../../prelude/struct.Uuid.html#method.get_version_num" title="Uuid::get_version_num"><code>Uuid::get_version_num</code></a> to unconditionally return a
number. Future extensions may start to return <code>Some</code> once theyre
standardized and supported.</p>
<h5 id="examples-2"><a href="#examples-2">Examples</a></h5>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">my_uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;02f09a3f-1624-3b1d-8409-44eff7708208&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="ident">Version::Md5</span>), <span class="ident">my_uuid</span>.<span class="ident">get_version</span>());</code></pre></div>
<h5 id="references-2"><a href="#references-2">References</a></h5>
<ul>
<li><a href="https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.3">Version in RFC4122</a></li>
</ul>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_fields" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#570">source</a></span><h4 class="code-header">pub fn <a href="#method.as_fields" class="fnname">as_fields</a>(&amp;self) -&gt; (<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u16.html">u16</a>, <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u16.html">u16</a>, &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">; 8]</a>)</h4></section></summary><div class="docblock"><p>Returns the four field values of the UUID.</p>
<p>These values can be passed to the <a href="../../prelude/struct.Uuid.html#method.from_fields" title="Uuid::from_fields"><code>Uuid::from_fields</code></a> method to get
the original <code>Uuid</code> back.</p>
<ul>
<li>The first field value represents the first group of (eight) hex
digits, taken as a big-endian <code>u32</code> value. For V1 UUIDs, this field
represents the low 32 bits of the timestamp.</li>
<li>The second field value represents the second group of (four) hex
digits, taken as a big-endian <code>u16</code> value. For V1 UUIDs, this field
represents the middle 16 bits of the timestamp.</li>
<li>The third field value represents the third group of (four) hex digits,
taken as a big-endian <code>u16</code> value. The 4 most significant bits give
the UUID version, and for V1 UUIDs, the last 12 bits represent the
high 12 bits of the timestamp.</li>
<li>The last field value represents the last two groups of four and twelve
hex digits, taken in order. The first 1-3 bits of this indicate the
UUID variant, and for V1 UUIDs, the next 13-15 bits indicate the clock
sequence and the last 48 bits indicate the node ID.</li>
</ul>
<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">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid::nil</span>();
<span class="macro">assert_eq!</span>(<span class="ident">uuid</span>.<span class="ident">as_fields</span>(), (<span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="kw-2">&amp;</span>[<span class="number">0u8</span>; <span class="number">8</span>]));
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(
<span class="ident">uuid</span>.<span class="ident">as_fields</span>(),
(
<span class="number">0xa1a2a3a4</span>,
<span class="number">0xb1b2</span>,
<span class="number">0xc1c2</span>,
<span class="kw-2">&amp;</span>[<span class="number">0xd1</span>, <span class="number">0xd2</span>, <span class="number">0xd3</span>, <span class="number">0xd4</span>, <span class="number">0xd5</span>, <span class="number">0xd6</span>, <span class="number">0xd7</span>, <span class="number">0xd8</span>],
)
);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_fields_le" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#613">source</a></span><h4 class="code-header">pub fn <a href="#method.to_fields_le" class="fnname">to_fields_le</a>(&amp;self) -&gt; (<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u16.html">u16</a>, <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u16.html">u16</a>, &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">; 8]</a>)</h4></section></summary><div class="docblock"><p>Returns the four field values of the UUID in little-endian order.</p>
<p>The bytes in the returned integer fields will be converted from
big-endian order. This is based on the endianness of the UUID,
rather than the target environment so bytes will be flipped on both
big and little endian machines.</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">uuid::Uuid</span>;
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(
<span class="ident">uuid</span>.<span class="ident">to_fields_le</span>(),
(
<span class="number">0xa4a3a2a1</span>,
<span class="number">0xb2b1</span>,
<span class="number">0xc2c1</span>,
<span class="kw-2">&amp;</span>[<span class="number">0xd1</span>, <span class="number">0xd2</span>, <span class="number">0xd3</span>, <span class="number">0xd4</span>, <span class="number">0xd5</span>, <span class="number">0xd6</span>, <span class="number">0xd7</span>, <span class="number">0xd8</span>],
)
);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_u128" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#646">source</a></span><h4 class="code-header">pub fn <a href="#method.as_u128" class="fnname">as_u128</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u128.html">u128</a></h4></section></summary><div class="docblock"><p>Returns a 128bit value containing the value.</p>
<p>The bytes in the UUID will be packed directly into a <code>u128</code>.</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">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(
<span class="ident">uuid</span>.<span class="ident">as_u128</span>(),
<span class="number">0xa1a2a3a4b1b2c1c2d1d2d3d4d5d6d7d8</span>,
);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u128_le" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#690">source</a></span><h4 class="code-header">pub fn <a href="#method.to_u128_le" class="fnname">to_u128_le</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u128.html">u128</a></h4></section></summary><div class="docblock"><p>Returns a 128bit little-endian value containing the value.</p>
<p>The bytes in the <code>u128</code> will be flipped to convert into big-endian
order. This is based on the endianness of the UUID, rather than the
target environment so bytes will be flipped on both big and little
endian machines.</p>
<p>Note that this will produce a different result than
<a href="../../prelude/struct.Uuid.html#method.to_fields_le" title="Uuid::to_fields_le"><code>Uuid::to_fields_le</code></a>, because the entire UUID is reversed, rather
than reversing the individual fields in-place.</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">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(
<span class="ident">uuid</span>.<span class="ident">to_u128_le</span>(),
<span class="number">0xd8d7d6d5d4d3d2d1c2c1b2b1a4a3a2a1</span>,
);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_u64_pair" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#728">source</a></span><h4 class="code-header">pub fn <a href="#method.as_u64_pair" class="fnname">as_u64_pair</a>(&amp;self) -&gt; (<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u64.html">u64</a>)</h4></section></summary><div class="docblock"><p>Returns two 64bit values containing the value.</p>
<p>The bytes in the UUID will be split into two <code>u64</code>.
The first u64 represents the 64 most significant bits,
the second one represents the 64 least significant.</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">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(
<span class="ident">uuid</span>.<span class="ident">as_u64_pair</span>(),
(<span class="number">0xa1a2a3a4b1b2c1c2</span>, <span class="number">0xd1d2d3d4d5d6d7d8</span>),
);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_bytes" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#759">source</a></span><h4 class="code-header">pub fn <a href="#method.as_bytes" class="fnname">as_bytes</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">; 16]</a></h4></section></summary><div class="docblock"><p>Returns a slice of 16 octets containing the value.</p>
<p>This method borrows the underlying byte value of the UUID.</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">let</span> <span class="ident">bytes1</span> <span class="op">=</span> [
<span class="number">0xa1</span>, <span class="number">0xa2</span>, <span class="number">0xa3</span>, <span class="number">0xa4</span>,
<span class="number">0xb1</span>, <span class="number">0xb2</span>,
<span class="number">0xc1</span>, <span class="number">0xc2</span>,
<span class="number">0xd1</span>, <span class="number">0xd2</span>, <span class="number">0xd3</span>, <span class="number">0xd4</span>, <span class="number">0xd5</span>, <span class="number">0xd6</span>, <span class="number">0xd7</span>, <span class="number">0xd8</span>,
];
<span class="kw">let</span> <span class="ident">uuid1</span> <span class="op">=</span> <span class="ident">Uuid::from_bytes_ref</span>(<span class="kw-2">&amp;</span><span class="ident">bytes1</span>);
<span class="kw">let</span> <span class="ident">bytes2</span> <span class="op">=</span> <span class="ident">uuid1</span>.<span class="ident">as_bytes</span>();
<span class="kw">let</span> <span class="ident">uuid2</span> <span class="op">=</span> <span class="ident">Uuid::from_bytes_ref</span>(<span class="ident">bytes2</span>);
<span class="macro">assert_eq!</span>(<span class="ident">uuid1</span>, <span class="ident">uuid2</span>);
<span class="macro">assert!</span>(<span class="ident">std::ptr::eq</span>(
<span class="ident">uuid2</span> <span class="kw">as</span> <span class="kw-2">*const</span> <span class="ident">Uuid</span> <span class="kw">as</span> <span class="kw-2">*const</span> <span class="ident">u8</span>,
<span class="kw-2">&amp;</span><span class="ident">bytes1</span> <span class="kw">as</span> <span class="kw-2">*const</span> [<span class="ident">u8</span>; <span class="number">16</span>] <span class="kw">as</span> <span class="kw-2">*const</span> <span class="ident">u8</span>,
));</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bytes_le" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#806">source</a></span><h4 class="code-header">pub fn <a href="#method.to_bytes_le" class="fnname">to_bytes_le</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.array.html">; 16]</a></h4></section></summary><div class="docblock"><p>Returns the bytes of the UUID in little-endian order.</p>
<p>The bytes will be flipped to convert into little-endian order. This is
based on the endianness of the UUID, rather than the target environment
so bytes will be flipped on both big and little endian machines.</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">uuid::Uuid</span>;
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid::parse_str</span>(<span class="string">&quot;a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8&quot;</span>)<span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(
<span class="ident">uuid</span>.<span class="ident">to_bytes_le</span>(),
([
<span class="number">0xa4</span>, <span class="number">0xa3</span>, <span class="number">0xa2</span>, <span class="number">0xa1</span>, <span class="number">0xb2</span>, <span class="number">0xb1</span>, <span class="number">0xc2</span>, <span class="number">0xc1</span>, <span class="number">0xd1</span>, <span class="number">0xd2</span>,
<span class="number">0xd3</span>, <span class="number">0xd4</span>, <span class="number">0xd5</span>, <span class="number">0xd6</span>, <span class="number">0xd7</span>, <span class="number">0xd8</span>
])
);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_nil" class="method has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/uuid/1.1.2/src/uuid/lib.rs.html#815">source</a></span><h4 class="code-header">pub fn <a href="#method.is_nil" class="fnname">is_nil</a>(&amp;self) -&gt; <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>Tests if the UUID is nil.</p>
</div></details></div></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-Deref-for-UUID_ADMIN" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/kanidmd_lib/constants/uuids.rs.html#272-275">source</a></span><a href="#impl-Deref-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.UUID_ADMIN.html" title="struct kanidmd_lib::constants::uuids::UUID_ADMIN">UUID_ADMIN</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Target" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a></h4></section></summary><div class='docblock'><p>The resulting type after dereferencing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/kanidmd_lib/constants/uuids.rs.html#272-275">source</a></span><a href="#method.deref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fnname">deref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a></h4></section></summary><div class='docblock'><p>Dereferences the value.</p>
</div></details></div></details><section id="impl-LazyStatic-for-UUID_ADMIN" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/kanidmd_lib/constants/uuids.rs.html#272-275">source</a></span><a href="#impl-LazyStatic-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://docs.rs/lazy_static/1.4.0/lazy_static/trait.LazyStatic.html" title="trait lazy_static::LazyStatic">LazyStatic</a> for <a class="struct" href="struct.UUID_ADMIN.html" title="struct kanidmd_lib::constants::uuids::UUID_ADMIN">UUID_ADMIN</a></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-UUID_ADMIN" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl <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="struct.UUID_ADMIN.html" title="struct kanidmd_lib::constants::uuids::UUID_ADMIN">UUID_ADMIN</a></h3></section><section id="impl-Send-for-UUID_ADMIN" class="impl has-srclink"><a href="#impl-Send-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl <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="struct.UUID_ADMIN.html" title="struct kanidmd_lib::constants::uuids::UUID_ADMIN">UUID_ADMIN</a></h3></section><section id="impl-Sync-for-UUID_ADMIN" class="impl has-srclink"><a href="#impl-Sync-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl <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="struct.UUID_ADMIN.html" title="struct kanidmd_lib::constants::uuids::UUID_ADMIN">UUID_ADMIN</a></h3></section><section id="impl-Unpin-for-UUID_ADMIN" class="impl has-srclink"><a href="#impl-Unpin-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl <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="struct.UUID_ADMIN.html" title="struct kanidmd_lib::constants::uuids::UUID_ADMIN">UUID_ADMIN</a></h3></section><section id="impl-UnwindSafe-for-UUID_ADMIN" class="impl has-srclink"><a href="#impl-UnwindSafe-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl <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="struct.UUID_ADMIN.html" title="struct kanidmd_lib::constants::uuids::UUID_ADMIN">UUID_ADMIN</a></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-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;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>,&nbsp;</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>(&amp;self) -&gt; <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-UUID_ADMIN" class="impl has-srclink"><a href="#impl-AsTaggedExplicit%3C%27a%3E-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a, T&gt; AsTaggedExplicit&lt;'a&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a,&nbsp;</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>) -&gt; TaggedParser&lt;'a, Explicit, Self&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-AsTaggedImplicit%3C%27a%3E-for-UUID_ADMIN" class="impl has-srclink"><a href="#impl-AsTaggedImplicit%3C%27a%3E-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a, T&gt; AsTaggedImplicit&lt;'a&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a,&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;class: Class,<br>&nbsp;&nbsp;&nbsp;&nbsp;constructed: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;tag: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u32.html">u32</a><br>) -&gt; TaggedParser&lt;'a, Implicit, Self&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>,&nbsp;</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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;</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-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>,&nbsp;</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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;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-From%3CT%3E-for-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</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"><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" 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) -&gt; 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-Instrument-for-UUID_ADMIN" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#276">source</a></span><a href="#impl-Instrument-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://docs.rs/tracing/0.1.36/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.36/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.36/tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.36/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'><p>Instruments this type with the provided <a href="https://docs.rs/tracing/0.1.36/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.36/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.36/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.36/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'><p>Instruments this type with the <a href="https://docs.rs/tracing/0.1.36/tracing/span/struct.Span.html#method.current">current</a> <a href="https://docs.rs/tracing/0.1.36/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.36/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-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;,&nbsp;</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) -&gt; 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>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Pointable-for-UUID_ADMIN" class="impl has-srclink"><a href="#impl-Pointable-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; 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::&lt;T&gt;()</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: &lt;T as Pointable&gt;::Init) -&gt; <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-1" class="method trait-impl has-srclink"><a href="#method.deref-1" class="anchor"></a><h4 class="code-header">unsafe fn <a class="fnname">deref</a>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;'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>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;'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-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <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>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><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://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-TryFrom%3CU%3E-for-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;,&nbsp;</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> = <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" 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" 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) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;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>&lt;U&gt;&gt;::<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>&gt;</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-UUID_ADMIN" 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-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;,&nbsp;</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.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;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>&lt;T&gt;&gt;::<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) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;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>&lt;T&gt;&gt;::<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>&gt;</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-UUID_ADMIN" class="impl has-srclink"><a href="#impl-VZip%3CV%3E-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;V, T&gt; VZip&lt;V&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: MultiLane&lt;T&gt;,&nbsp;</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) -&gt; V</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-UUID_ADMIN" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#334">source</a></span><a href="#impl-WithSubscriber-for-UUID_ADMIN" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://docs.rs/tracing/0.1.36/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.36/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.36/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;<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>&gt;,&nbsp;</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.36/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.36/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.36/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.36/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;</h4></section></summary><div class='docblock'><p>Attaches the current <a href="https://docs.rs/tracing/0.1.36/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.36/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.36/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></p>
</div></details></div></details></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>