mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-25 13:37:01 +01:00
206 lines
64 KiB
HTML
206 lines
64 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `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">☰</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<Target=Uuid></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<'a></a></li><li><a href="#impl-AsTaggedImplicit%3C%27a%3E-for-UUID_ADMIN">AsTaggedImplicit<'a></a></li><li><a href="#impl-Borrow%3CT%3E-for-UUID_ADMIN">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-UUID_ADMIN">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-UUID_ADMIN">From<T></a></li><li><a href="#impl-Instrument-for-UUID_ADMIN">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-UUID_ADMIN">Into<U></a></li><li><a href="#impl-Pointable-for-UUID_ADMIN">Pointable</a></li><li><a href="#impl-Same%3CT%3E-for-UUID_ADMIN">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E-for-UUID_ADMIN">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-UUID_ADMIN">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-UUID_ADMIN">VZip<V></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">−</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><Target = <a class="struct" href="../../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>></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>(&self) -> &<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>(&self) -> &<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>(&self) -> &<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>(&self) -> &<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>(&self) -> <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 doesn’t
|
||
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">"02f09a3f-1624-3b1d-8409-44eff7708208"</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>(&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 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">"02f09a3f-1624-3b1d-8409-44eff7708208"</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>(&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="enum" href="https://docs.rs/uuid/1.1.2/uuid/enum.Version.html" title="enum uuid::Version">Version</a>></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 doesn’t contain a recognized version then <code>None</code>
|
||
is returned. If you’re 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 they’re
|
||
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">"02f09a3f-1624-3b1d-8409-44eff7708208"</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>(&self) -> (<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>, &<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">&</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">"a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8"</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">&</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>(&self) -> (<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>, &<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">"a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8"</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">&</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>(&self) -> <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">"a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8"</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>(&self) -> <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">"a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8"</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>(&self) -> (<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">"a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8"</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>(&self) -> &<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">&</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">&</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>(&self) -> <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">"a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8"</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>(&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>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>(&self) -> &<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<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-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<'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-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<'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-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<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-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<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-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<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" 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) -> 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<T> <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>) -> <a class="struct" href="https://docs.rs/tracing/0.1.36/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.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) -> <a class="struct" href="https://docs.rs/tracing/0.1.36/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.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<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-UUID_ADMIN" class="impl has-srclink"><a href="#impl-Pointable-for-UUID_ADMIN" 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-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><'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-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<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" 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<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" 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) -> <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-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<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-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> = <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-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<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-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<T> <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><S>(self, subscriber: S) -> <a class="struct" href="https://docs.rs/tracing/0.1.36/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.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) -> <a class="struct" href="https://docs.rs/tracing/0.1.36/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.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> |