Files
tantivy/master/uuid/struct.Uuid.html
2019-06-16 03:00:46 +00:00

285 lines
88 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` struct in crate `uuid`."><meta name="keywords" content="rust, rustlang, rust-lang, Uuid"><title>uuid::Uuid - Rust</title><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="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="https://www.rust-lang.org/favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../uuid/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a><p class='location'>Struct Uuid</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.as_bytes">as_bytes</a><a href="#method.as_fields">as_fields</a><a href="#method.encode_buffer">encode_buffer</a><a href="#method.from_bytes">from_bytes</a><a href="#method.from_fields">from_fields</a><a href="#method.from_fields_le">from_fields_le</a><a href="#method.from_random_bytes">from_random_bytes</a><a href="#method.from_slice">from_slice</a><a href="#method.get_variant">get_variant</a><a href="#method.get_version">get_version</a><a href="#method.get_version_num">get_version_num</a><a href="#method.is_nil">is_nil</a><a href="#method.new_v4">new_v4</a><a href="#method.nil">nil</a><a href="#method.parse_str">parse_str</a><a href="#method.to_fields_le">to_fields_le</a><a href="#method.to_hyphenated">to_hyphenated</a><a href="#method.to_hyphenated_ref">to_hyphenated_ref</a><a href="#method.to_simple">to_simple</a><a href="#method.to_simple_ref">to_simple_ref</a><a href="#method.to_timestamp">to_timestamp</a><a href="#method.to_urn">to_urn</a><a href="#method.to_urn_ref">to_urn_ref</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize&lt;&#39;de&gt;</a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3C%26%27a%20Uuid%3E">From&lt;&amp;&#39;a Uuid&gt;</a><a href="#impl-From%3CUuid%3E">From&lt;Uuid&gt;</a><a href="#impl-FromStr">FromStr</a><a href="#impl-Hash">Hash</a><a href="#impl-LowerHex">LowerHex</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CUuid%3E">PartialEq&lt;Uuid&gt;</a><a href="#impl-PartialOrd%3CUuid%3E">PartialOrd&lt;Uuid&gt;</a><a href="#impl-Serialize">Serialize</a><a href="#impl-UpperHex">UpperHex</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow">Borrow</a><a href="#impl-BorrowMut">BorrowMut</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-From">From</a><a href="#impl-Into">Into</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom">TryFrom</a><a href="#impl-TryInto">TryInto</a></div></div><p class='location'><a href='index.html'>uuid</a></p><script>window.sidebarCurrent = {name: 'Uuid', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../src/uuid/lib.rs.html#289' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>uuid</a>::<wbr><a class="struct" href=''>Uuid</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Uuid(_);</pre></div><div class='docblock'><p>A Universally Unique Identifier (UUID).</p>
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/uuid/adapter/mod.rs.html#72-192' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_hyphenated' class="method"><code id='to_hyphenated.v'>pub fn <a href='#method.to_hyphenated' class='fnname'>to_hyphenated</a>(self) -&gt; <a class="struct" href="../uuid/adapter/struct.Hyphenated.html" title="struct uuid::adapter::Hyphenated">Hyphenated</a></code><a class='srclink' href='../src/uuid/adapter/mod.rs.html#79-81' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <a href="adapter/struct.Hyphenated.html"><code>Hyphenated</code></a> instance from a <a href="../struct.Uuid.html"><code>Uuid</code></a>.</p>
</div><h4 id='method.to_hyphenated_ref' class="method"><code id='to_hyphenated_ref.v'>pub fn <a href='#method.to_hyphenated_ref' class='fnname'>to_hyphenated_ref</a>(&amp;self) -&gt; <a class="struct" href="../uuid/adapter/struct.HyphenatedRef.html" title="struct uuid::adapter::HyphenatedRef">HyphenatedRef</a></code><a class='srclink' href='../src/uuid/adapter/mod.rs.html#99-101' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <a href="adapter/struct.HyphenatedRef.html"><code>HyphenatedRef</code></a> instance from a <a href="../struct.Uuid.html"><code>Uuid</code></a> reference.</p>
</div><h4 id='method.to_simple' class="method"><code id='to_simple.v'>pub fn <a href='#method.to_simple' class='fnname'>to_simple</a>(self) -&gt; <a class="struct" href="../uuid/adapter/struct.Simple.html" title="struct uuid::adapter::Simple">Simple</a></code><a class='srclink' href='../src/uuid/adapter/mod.rs.html#119-121' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <a href="adapter/struct.Simple.html"><code>Simple</code></a> instance from a <a href="../struct.Uuid.html"><code>Uuid</code></a>.</p>
</div><h4 id='method.to_simple_ref' class="method"><code id='to_simple_ref.v'>pub fn <a href='#method.to_simple_ref' class='fnname'>to_simple_ref</a>(&amp;self) -&gt; <a class="struct" href="../uuid/adapter/struct.SimpleRef.html" title="struct uuid::adapter::SimpleRef">SimpleRef</a></code><a class='srclink' href='../src/uuid/adapter/mod.rs.html#139-141' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <a href="adapter/struct.SimpleRef.html"><code>SimpleRef</code></a> instance from a <a href="../struct.Uuid.html"><code>Uuid</code></a> reference.</p>
</div><h4 id='method.to_urn' class="method"><code id='to_urn.v'>pub fn <a href='#method.to_urn' class='fnname'>to_urn</a>(self) -&gt; <a class="struct" href="../uuid/adapter/struct.Urn.html" title="struct uuid::adapter::Urn">Urn</a></code><a class='srclink' href='../src/uuid/adapter/mod.rs.html#159-161' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <a href="adapter/struct.Urn.html"><code>Urn</code></a> instance from a <a href="../struct.Uuid.html"><code>Uuid</code></a>.</p>
</div><h4 id='method.to_urn_ref' class="method"><code id='to_urn_ref.v'>pub fn <a href='#method.to_urn_ref' class='fnname'>to_urn_ref</a>(&amp;self) -&gt; <a class="struct" href="../uuid/adapter/struct.UrnRef.html" title="struct uuid::adapter::UrnRef">UrnRef</a></code><a class='srclink' href='../src/uuid/adapter/mod.rs.html#179-181' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <a href="adapter/struct.UrnRef.html"><code>UrnRef</code></a> instance from a <a href="../struct.Uuid.html"><code>Uuid</code></a> reference.</p>
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/uuid/v4.rs.html#4-39' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new_v4' class="method"><code id='new_v4.v'>pub fn <a href='#method.new_v4' class='fnname'>new_v4</a>() -&gt; Self</code><a class='srclink' href='../src/uuid/v4.rs.html#26-38' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a random <a href="../struct.Uuid.html"><code>Uuid</code></a>.</p>
<p>This uses the <a href="https://crates.io/crates/rand"><code>rand</code></a> crate's default task RNG as the source of random
numbers. If you'd like to use a custom generator, don't use this
method: use the <code>rand::Rand trait</code>'s <code>rand()</code> method instead.</p>
<p>Note that usage of this method requires the <code>v4</code> feature of this crate
to be enabled.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">new_v4</span>();</pre></div>
</div></div><h3 id='impl-2' class='impl'><code class='in-band'>impl <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-2' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#339-1028' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedconstant.NAMESPACE_DNS' class="associatedconstant"><code id='NAMESPACE_DNS.v'>pub const <a href='#associatedconstant.NAMESPACE_DNS' class="constant"><b>NAMESPACE_DNS</b></a>: Self</code><a class='srclink' href='../src/uuid/lib.rs.html#343-346' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="struct.Uuid.html"><code>Uuid</code></a> namespace for Domain Name System (DNS).</p>
</div><h4 id='associatedconstant.NAMESPACE_OID' class="associatedconstant"><code id='NAMESPACE_OID.v'>pub const <a href='#associatedconstant.NAMESPACE_OID' class="constant"><b>NAMESPACE_OID</b></a>: Self</code><a class='srclink' href='../src/uuid/lib.rs.html#351-354' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="struct.Uuid.html"><code>Uuid</code></a> namespace for ISO Object Identifiers (OIDs).</p>
</div><h4 id='associatedconstant.NAMESPACE_URL' class="associatedconstant"><code id='NAMESPACE_URL.v'>pub const <a href='#associatedconstant.NAMESPACE_URL' class="constant"><b>NAMESPACE_URL</b></a>: Self</code><a class='srclink' href='../src/uuid/lib.rs.html#359-362' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="struct.Uuid.html"><code>Uuid</code></a> namespace for Uniform Resource Locators (URLs).</p>
</div><h4 id='associatedconstant.NAMESPACE_X500' class="associatedconstant"><code id='NAMESPACE_X500.v'>pub const <a href='#associatedconstant.NAMESPACE_X500' class="constant"><b>NAMESPACE_X500</b></a>: Self</code><a class='srclink' href='../src/uuid/lib.rs.html#367-370' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="struct.Uuid.html"><code>Uuid</code></a> namespace for X.500 Distinguished Names (DNs).</p>
</div><h4 id='method.nil' class="method"><code id='nil.v'>pub fn <a href='#method.nil' class='fnname'>nil</a>() -&gt; <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a class='srclink' href='../src/uuid/lib.rs.html#420-422' title='goto source code'>[src]</a></h4><div class='docblock'><p>The 'nil UUID'.</p>
<p>The nil UUID is special form of UUID that is specified to have all
128 bits set to zero, as defined in <a href="https://tools.ietf.org/html/rfc4122.html#section-4.1.7">IETF RFC 4122 Section 4.1.7</a>.</p>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">nil</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(
<span class="ident">uuid</span>.<span class="ident">to_hyphenated</span>().<span class="ident">to_string</span>(),
<span class="string">&quot;00000000-0000-0000-0000-000000000000&quot;</span>
);</pre></div>
</div><h4 id='method.from_fields' class="method"><code id='from_fields.v'>pub fn <a href='#method.from_fields' class='fnname'>from_fields</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;d1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;d2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;d3: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;d4: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>, <a class="struct" href="../uuid/struct.BytesError.html" title="struct uuid::BytesError">BytesError</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#461-493' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <code>Uuid</code> from four field values in big-endian order.</p>
<h1 id="errors" class="section-header"><a href="#errors">Errors</a></h1>
<p>This function will return an error if <code>d4</code>'s length is not 8 bytes.</p>
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">d4</span> <span class="op">=</span> [<span class="number">12</span>, <span class="number">3</span>, <span class="number">9</span>, <span class="number">56</span>, <span class="number">54</span>, <span class="number">43</span>, <span class="number">8</span>, <span class="number">9</span>];
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">from_fields</span>(<span class="number">42</span>, <span class="number">12</span>, <span class="number">5</span>, <span class="kw-2">&amp;</span><span class="ident">d4</span>);
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">uuid</span>.<span class="ident">map</span>(<span class="op">|</span><span class="ident">uuid</span><span class="op">|</span> <span class="ident">uuid</span>.<span class="ident">to_hyphenated</span>().<span class="ident">to_string</span>());
<span class="kw">let</span> <span class="ident">expected_uuid</span> <span class="op">=</span>
<span class="prelude-val">Ok</span>(<span class="ident">String</span>::<span class="ident">from</span>(<span class="string">&quot;0000002a-000c-0005-0c03-0938362b0809&quot;</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">expected_uuid</span>, <span class="ident">uuid</span>);</pre></div>
<p>An invalid length:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="ident">d4</span> <span class="op">=</span> [<span class="number">12</span>];
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>::<span class="ident">from_fields</span>(<span class="number">42</span>, <span class="number">12</span>, <span class="number">5</span>, <span class="kw-2">&amp;</span><span class="ident">d4</span>);
<span class="kw">let</span> <span class="ident">expected_uuid</span> <span class="op">=</span> <span class="prelude-val">Err</span>(<span class="ident">uuid</span>::<span class="ident">BytesError</span>::<span class="ident">new</span>(<span class="number">8</span>, <span class="ident">d4</span>.<span class="ident">len</span>()));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">expected_uuid</span>, <span class="ident">uuid</span>);</pre></div>
</div><h4 id='method.from_fields_le' class="method"><code id='from_fields_le.v'>pub fn <a href='#method.from_fields_le' class='fnname'>from_fields_le</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;d1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;d2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;d3: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;d4: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>, <a class="struct" href="../uuid/struct.BytesError.html" title="struct uuid::BytesError">BytesError</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#518-550' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <code>Uuid</code> from four field values in little-endian order.</p>
<p>The bytes in the <code>d1</code>, <code>d2</code> and <code>d3</code> fields will
be converted into big-endian order.</p>
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">d1</span> <span class="op">=</span> <span class="number">0xAB3F1097u32</span>;
<span class="kw">let</span> <span class="ident">d2</span> <span class="op">=</span> <span class="number">0x501Eu16</span>;
<span class="kw">let</span> <span class="ident">d3</span> <span class="op">=</span> <span class="number">0xB736u16</span>;
<span class="kw">let</span> <span class="ident">d4</span> <span class="op">=</span> [<span class="number">12</span>, <span class="number">3</span>, <span class="number">9</span>, <span class="number">56</span>, <span class="number">54</span>, <span class="number">43</span>, <span class="number">8</span>, <span class="number">9</span>];
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">from_fields_le</span>(<span class="ident">d1</span>, <span class="ident">d2</span>, <span class="ident">d3</span>, <span class="kw-2">&amp;</span><span class="ident">d4</span>);
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">uuid</span>.<span class="ident">map</span>(<span class="op">|</span><span class="ident">uuid</span><span class="op">|</span> <span class="ident">uuid</span>.<span class="ident">to_hyphenated</span>().<span class="ident">to_string</span>());
<span class="kw">let</span> <span class="ident">expected_uuid</span> <span class="op">=</span>
<span class="prelude-val">Ok</span>(<span class="ident">String</span>::<span class="ident">from</span>(<span class="string">&quot;97103fab-1e50-36b7-0c03-0938362b0809&quot;</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">expected_uuid</span>, <span class="ident">uuid</span>);</pre></div>
</div><h4 id='method.from_slice' class="method"><code id='from_slice.v'>pub fn <a href='#method.from_slice' class='fnname'>from_slice</a>(b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>, <a class="struct" href="../uuid/struct.BytesError.html" title="struct uuid::BytesError">BytesError</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#589-601' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <code>Uuid</code> using the supplied big-endian bytes.</p>
<h1 id="errors-1" class="section-header"><a href="#errors-1">Errors</a></h1>
<p>This function will return an error if <code>b</code> has any length other than 16.</p>
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">bytes</span> <span class="op">=</span> [<span class="number">4</span>, <span class="number">54</span>, <span class="number">67</span>, <span class="number">12</span>, <span class="number">43</span>, <span class="number">2</span>, <span class="number">98</span>, <span class="number">76</span>, <span class="number">32</span>, <span class="number">50</span>, <span class="number">87</span>, <span class="number">5</span>, <span class="number">1</span>, <span class="number">33</span>, <span class="number">43</span>, <span class="number">87</span>];
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">from_slice</span>(<span class="kw-2">&amp;</span><span class="ident">bytes</span>);
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">uuid</span>.<span class="ident">map</span>(<span class="op">|</span><span class="ident">uuid</span><span class="op">|</span> <span class="ident">uuid</span>.<span class="ident">to_hyphenated</span>().<span class="ident">to_string</span>());
<span class="kw">let</span> <span class="ident">expected_uuid</span> <span class="op">=</span>
<span class="prelude-val">Ok</span>(<span class="ident">String</span>::<span class="ident">from</span>(<span class="string">&quot;0436430c-2b02-624c-2032-570501212b57&quot;</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">expected_uuid</span>, <span class="ident">uuid</span>);</pre></div>
<p>An incorrect number of bytes:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="ident">bytes</span> <span class="op">=</span> [<span class="number">4</span>, <span class="number">54</span>, <span class="number">67</span>, <span class="number">12</span>, <span class="number">43</span>, <span class="number">2</span>, <span class="number">98</span>, <span class="number">76</span>];
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">from_slice</span>(<span class="kw-2">&amp;</span><span class="ident">bytes</span>);
<span class="kw">let</span> <span class="ident">expected_uuid</span> <span class="op">=</span> <span class="prelude-val">Err</span>(<span class="ident">uuid</span>::<span class="ident">BytesError</span>::<span class="ident">new</span>(<span class="number">16</span>, <span class="number">8</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">expected_uuid</span>, <span class="ident">uuid</span>);</pre></div>
</div><h4 id='method.from_bytes' class="method"><code id='from_bytes.v'>pub fn <a href='#method.from_bytes' class='fnname'>from_bytes</a>(bytes: <a class="type" href="../uuid/type.Bytes.html" title="type uuid::Bytes">Bytes</a>) -&gt; <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a class='srclink' href='../src/uuid/lib.rs.html#605-607' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a <code>Uuid</code> using the supplied big-endian bytes.</p>
</div><h4 id='method.from_random_bytes' class="method"><code id='from_random_bytes.v'>pub fn <a href='#method.from_random_bytes' class='fnname'>from_random_bytes</a>(bytes: <a class="type" href="../uuid/type.Bytes.html" title="type uuid::Bytes">Bytes</a>) -&gt; <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a class='srclink' href='../src/uuid/lib.rs.html#640-645' title='goto source code'>[src]</a></h4><div class='stability'><div class='stab deprecated'>Deprecated since 0.7.2: <p>please use the <code>uuid::Builder</code> instead to set the variant and version</p>
</div></div><div class='docblock'><p>Creates a v4 Uuid from random bytes (e.g. bytes supplied from <code>Rand</code>
crate)</p>
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Bytes</span>;
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">bytes</span>: <span class="ident">Bytes</span> <span class="op">=</span> [
<span class="number">70</span>, <span class="number">235</span>, <span class="number">208</span>, <span class="number">238</span>, <span class="number">14</span>, <span class="number">109</span>, <span class="number">67</span>, <span class="number">201</span>, <span class="number">185</span>, <span class="number">13</span>, <span class="number">204</span>, <span class="number">195</span>, <span class="number">90</span>, <span class="number">145</span>, <span class="number">63</span>, <span class="number">62</span>,
];
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">from_random_bytes</span>(<span class="ident">bytes</span>);
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">uuid</span>.<span class="ident">to_hyphenated</span>().<span class="ident">to_string</span>();
<span class="kw">let</span> <span class="ident">expected_uuid</span> <span class="op">=</span> <span class="ident">String</span>::<span class="ident">from</span>(<span class="string">&quot;46ebd0ee-0e6d-43c9-b90d-ccc35a913f3e&quot;</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">expected_uuid</span>, <span class="ident">uuid</span>);</pre></div>
</div><h4 id='method.get_variant' class="method"><code id='get_variant.v'>pub fn <a href='#method.get_variant' class='fnname'>get_variant</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../uuid/enum.Variant.html" title="enum uuid::Variant">Variant</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#664-672' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the variant of the <code>Uuid</code> structure.</p>
<p>This determines the interpretation of the structure of the UUID.
Currently only the RFC4122 variant is generated by this module.</p>
<ul>
<li><a href="http://tools.ietf.org/html/rfc4122#section-4.1.1">Variant Reference</a></li>
</ul>
</div><h4 id='method.get_version_num' class="method"><code id='get_version_num.v'>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/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../src/uuid/lib.rs.html#690-692' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the version number of the <code>Uuid</code>.</p>
<p>This represents the algorithm used to generate the contents.</p>
<p>Currently only the Random (V4) algorithm is supported by this
module. There are security and privacy implications for using
older versions - see <a href="http://en.wikipedia.org/wiki/Universally_unique_identifier">Wikipedia: Universally Unique Identifier</a> for
details.</p>
<ul>
<li><a href="http://tools.ietf.org/html/rfc4122#section-4.1.3">Version Reference</a></li>
</ul>
</div><h4 id='method.get_version' class="method"><code id='get_version.v'>pub fn <a href='#method.get_version' class='fnname'>get_version</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../uuid/enum.Version.html" title="enum uuid::Version">Version</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#697-708' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the version of the <code>Uuid</code>.</p>
<p>This represents the algorithm used to generate the contents</p>
</div><h4 id='method.as_fields' class="method"><code id='as_fields.v'>pub fn <a href='#method.as_fields' class='fnname'>as_fields</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 8]</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/uuid/lib.rs.html#749-764' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the four field values of the UUID in big-endian order.</p>
<p>These values can be passed to the <code>from_fields()</code> 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>
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">nil</span>();
<span class="macro">assert_eq</span><span class="macro">!</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</span>::<span class="ident">parse_str</span>(<span class="string">&quot;936DA01F-9ABD-4D9D-80C7-02AF85C822A8&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(
<span class="ident">uuid</span>.<span class="ident">as_fields</span>(),
(
<span class="number">0x936DA01F</span>,
<span class="number">0x9ABD</span>,
<span class="number">0x4D9D</span>,
<span class="string">b&quot;\x80\xC7\x02\xAF\x85\xC8\x22\xA8&quot;</span>
)
);</pre></div>
</div><h4 id='method.to_fields_le' class="method"><code id='to_fields_le.v'>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/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>, &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 8]</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/uuid/lib.rs.html#787-802' title='goto source code'>[src]</a></h4><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.</p>
<h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">parse_str</span>(<span class="string">&quot;936DA01F-9ABD-4D9D-80C7-02AF85C822A8&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(
<span class="ident">uuid</span>.<span class="ident">to_fields_le</span>(),
(
<span class="number">0x1FA06D93</span>,
<span class="number">0xBD9A</span>,
<span class="number">0x9D4D</span>,
<span class="string">b&quot;\x80\xC7\x02\xAF\x85\xC8\x22\xA8&quot;</span>
)
);</pre></div>
</div><h4 id='method.as_bytes' class="method"><code id='as_bytes.v'>pub fn <a href='#method.as_bytes' class='fnname'>as_bytes</a>(&amp;self) -&gt; &amp;<a class="type" href="../uuid/type.Bytes.html" title="type uuid::Bytes">Bytes</a></code><a class='srclink' href='../src/uuid/lib.rs.html#814-816' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns an array of 16 octets containing the UUID data.
This method wraps [<code>Uuid::as_bytes</code>]</p>
</div><h4 id='method.to_timestamp' class="method"><code id='to_timestamp.v'>pub fn <a href='#method.to_timestamp' class='fnname'>to_timestamp</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#821-843' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns an Optional Tuple of (u64, u16) representing the timestamp and
counter portion of a V1 UUID. If the supplied UUID is not V1, this
will return None</p>
</div><h4 id='method.parse_str' class="method"><code id='parse_str.v'>pub fn <a href='#method.parse_str' class='fnname'>parse_str</a>(input: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>, <a class="enum" href="../uuid/parser/enum.ParseError.html" title="enum uuid::parser::ParseError">ParseError</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#850-992' title='goto source code'>[src]</a></h4><div class='docblock'><p>Parses a <code>Uuid</code> from a string of hexadecimal digits with optional
hyphens.</p>
<p>Any of the formats generated by this module (simple, hyphenated, urn)
are supported by this parsing function.</p>
</div><h4 id='method.is_nil' class="method"><code id='is_nil.v'>pub fn <a href='#method.is_nil' class='fnname'>is_nil</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/uuid/lib.rs.html#995-997' title='goto source code'>[src]</a></h4><div class='docblock'><p>Tests if the UUID is nil</p>
</div><h4 id='method.encode_buffer' class="method"><code id='encode_buffer.v'>pub fn <a href='#method.encode_buffer' class='fnname'>encode_buffer</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 45]</a></code><a class='srclink' href='../src/uuid/lib.rs.html#1025-1027' title='goto source code'>[src]</a></h4><div class='docblock'><p>A buffer that can be used for <code>encode_...</code> calls, that is
guaranteed to be long enough for any of the adapters.</p>
<h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">uuid</span>::<span class="ident">Uuid</span>;
<span class="kw">let</span> <span class="ident">uuid</span> <span class="op">=</span> <span class="ident">Uuid</span>::<span class="ident">nil</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(
<span class="ident">uuid</span>.<span class="ident">to_simple</span>().<span class="ident">encode_lower</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">Uuid</span>::<span class="ident">encode_buffer</span>()),
<span class="string">&quot;00000000000000000000000000000000&quot;</span>
);
<span class="macro">assert_eq</span><span class="macro">!</span>(
<span class="ident">uuid</span>.<span class="ident">to_hyphenated</span>()
.<span class="ident">encode_lower</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">Uuid</span>::<span class="ident">encode_buffer</span>()),
<span class="string">&quot;00000000-0000-0000-0000-000000000000&quot;</span>
);
<span class="macro">assert_eq</span><span class="macro">!</span>(
<span class="ident">uuid</span>.<span class="ident">to_urn</span>().<span class="ident">encode_lower</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">Uuid</span>::<span class="ident">encode_buffer</span>()),
<span class="string">&quot;urn:uuid:00000000-0000-0000-0000-000000000000&quot;</span>
);</pre></div>
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-PartialEq%3CUuid%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-PartialEq%3CUuid%3E' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id='impl-Ord' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cmp' class="method hidden"><code id='cmp.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an <code>Ordering</code> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div><h4 id='method.max' class="method"><code id='max.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -&gt; Self</code><div class='since' title='Stable since Rust version 1.21.0'>1.21.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#549-552' title='goto source code'>[src]</a></h4><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div><h4 id='method.min' class="method"><code id='min.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -&gt; Self</code><div class='since' title='Stable since Rust version 1.21.0'>1.21.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#566-569' title='goto source code'>[src]</a></h4><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div><h4 id='method.clamp' class="method"><code id='clamp.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp' class='fnname'>clamp</a>(self, min: Self, max: Self) -&gt; Self</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#590-600' title='goto source code'>[src]</a></h4><div class='stability'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>clamp</code>)</div></div><div class='docblock'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
</div></div><h3 id='impl-From%3CUuid%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/adapter/struct.Hyphenated.html" title="struct uuid::adapter::Hyphenated">Hyphenated</a></code><a href='#impl-From%3CUuid%3E' class='anchor'></a><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#135-140' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(f: <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; Self</code><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#137-139' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3C%26%27a%20Uuid%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/adapter/struct.HyphenatedRef.html" title="struct uuid::adapter::HyphenatedRef">HyphenatedRef</a>&lt;'a&gt;</code><a href='#impl-From%3C%26%27a%20Uuid%3E' class='anchor'></a><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#142-147' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(f: &amp;'a <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; Self</code><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#144-146' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CUuid%3E-1' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/adapter/struct.Simple.html" title="struct uuid::adapter::Simple">Simple</a></code><a href='#impl-From%3CUuid%3E-1' class='anchor'></a><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#149-154' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(f: <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; Self</code><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#151-153' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3C%26%27a%20Uuid%3E-1' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/adapter/struct.SimpleRef.html" title="struct uuid::adapter::SimpleRef">SimpleRef</a>&lt;'a&gt;</code><a href='#impl-From%3C%26%27a%20Uuid%3E-1' class='anchor'></a><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#156-161' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(f: &amp;'a <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; Self</code><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#158-160' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CUuid%3E-2' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/adapter/struct.Urn.html" title="struct uuid::adapter::Urn">Urn</a></code><a href='#impl-From%3CUuid%3E-2' class='anchor'></a><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#163-168' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-4' class="method hidden"><code id='from.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(f: <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; Self</code><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#165-167' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3C%26%27a%20Uuid%3E-2' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/adapter/struct.UrnRef.html" title="struct uuid::adapter::UrnRef">UrnRef</a>&lt;'a&gt;</code><a href='#impl-From%3C%26%27a%20Uuid%3E-2' class='anchor'></a><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#170-175' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-5' class="method hidden"><code id='from.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(f: &amp;'a <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; Self</code><a class='srclink' href='../src/uuid/adapter/core_support/mod.rs.html#172-174' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-PartialOrd%3CUuid%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>&gt; for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-PartialOrd%3CUuid%3E' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.partial_cmp' class="method hidden"><code id='partial_cmp.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp' class='fnname'>partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt;</code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div><h4 id='method.lt' class="method hidden"><code id='lt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt' class='fnname'>lt</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4 id='method.le' class="method hidden"><code id='le.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le' class='fnname'>le</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4 id='method.gt' class="method hidden"><code id='gt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt' class='fnname'>gt</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div><h4 id='method.ge' class="method hidden"><code id='ge.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge' class='fnname'>ge</a>(&amp;self, other: &amp;<a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Default' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/uuid/core_support.rs.html#87-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method hidden"><code id='default.v'>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -&gt; Self</code><a class='srclink' href='../src/uuid/core_support.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/uuid/core_support.rs.html#22-27' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/uuid/core_support.rs.html#24-26' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Display' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/uuid/core_support.rs.html#38-42' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code id='fmt.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/uuid/core_support.rs.html#39-41' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Hash' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Hash' class='anchor'></a><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.hash' class="method hidden"><code id='hash.v'>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a>&lt;__H:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>&gt;(&amp;self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>__H)</code><a class='srclink' href='../src/uuid/lib.rs.html#288' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Feeds this value into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div><h4 id='method.hash_slice' class="method"><code id='hash_slice.v'>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a>&lt;H&gt;(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code><div class='since' title='Stable since Rust version 1.3.0'>1.3.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#193-199' title='goto source code'>[src]</a></h4><div class='docblock'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></div><h3 id='impl-FromStr' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-FromStr' class='anchor'></a><a class='srclink' href='../src/uuid/core_support.rs.html#79-85' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Err' class="type"><code id='Err.t'>type <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err' class="type">Err</a> = <a class="enum" href="../uuid/parser/enum.ParseError.html" title="enum uuid::parser::ParseError">ParseError</a></code></h4><div class='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4 id='method.from_str' class="method hidden"><code id='from_str.v'>fn <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str' class='fnname'>from_str</a>(uuid_str: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code><a class='srclink' href='../src/uuid/core_support.rs.html#82-84' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Parses a string <code>s</code> to return a value of this type. <a href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str">Read more</a></p>
</div></div><h3 id='impl-LowerHex' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-LowerHex' class='anchor'></a><a class='srclink' href='../src/uuid/core_support.rs.html#66-70' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-2' class="method hidden"><code id='fmt.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/uuid/core_support.rs.html#67-69' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id='impl-UpperHex' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-UpperHex' class='anchor'></a><a class='srclink' href='../src/uuid/core_support.rs.html#72-77' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-3' class="method hidden"><code id='fmt.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/uuid/core_support.rs.html#74-76' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id='impl-Serialize' class='impl'><code class='in-band'>impl <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Serialize' class='anchor'></a><a class='srclink' href='../src/uuid/serde_support.rs.html#17-29' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.serialize' class="method hidden"><code id='serialize.v'>fn <a href='../serde/ser/trait.Serialize.html#tymethod.serialize' class='fnname'>serialize</a>&lt;S:&nbsp;<a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>&gt;(&amp;self, serializer: S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;S::<a class="type" href="../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, S::<a class="type" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</code><a class='srclink' href='../src/uuid/serde_support.rs.html#18-28' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="../serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
</div></div><h3 id='impl-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl&lt;'de&gt; <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../src/uuid/serde_support.rs.html#32-89' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code id='deserialize.v'>fn <a href='../serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a>&lt;D:&nbsp;<a class="trait" href="../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;&gt;(deserializer: D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, D::<a class="type" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt;</code><a class='srclink' href='../src/uuid/serde_support.rs.html#33-88' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div></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'><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../uuid/struct.Uuid.html" title="struct uuid::Uuid">Uuid</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-From' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a> for T</code><a href='#impl-From' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#546-548' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-6' class="method hidden"><code id='from.v-6'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#547' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Into' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-Into' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#537-542' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#539-541' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-91' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&amp;self) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#84-86' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#88-90' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3 id='impl-ToString' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-ToString' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2122-2132' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_string' class="method hidden"><code id='to_string.v'>default fn <a href='https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string' class='fnname'>to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2124-2131' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
</div></div><h3 id='impl-TryFrom' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryFrom' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#565-571' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/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/nightly/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/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#568-570' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Borrow' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Borrow' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/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/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id='impl-BorrowMut' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-BorrowMut' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/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/nightly/std/primitive.reference.html">&amp;mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id='impl-TryInto' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryInto' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553-560' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/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/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#557-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-DeserializeOwned' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,&nbsp;</span></code><a href='#impl-DeserializeOwned' class='anchor'></a><a class='srclink' href='../src/serde/de/mod.rs.html#597' title='goto source code'>[src]</a></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "uuid";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>