180 lines
290 KiB
HTML
180 lines
290 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 `Deserialize` trait in crate `serde`.">
|
|||
|
<meta name="keywords" content="rust, rustlang, rust-lang, Deserialize">
|
|||
|
|
|||
|
<title>serde::Deserialize - 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>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</head>
|
|||
|
<body class="rustdoc trait">
|
|||
|
<!--[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">☰</div>
|
|||
|
|
|||
|
<p class='location'>Trait Deserialize</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.deserialize">deserialize</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Deserialize%3C%27de%3E">()</a><a href="#impl-Deserialize%3C%27de%3E">bool</a><a href="#impl-Deserialize%3C%27de%3E">i8</a><a href="#impl-Deserialize%3C%27de%3E">i16</a><a href="#impl-Deserialize%3C%27de%3E">i32</a><a href="#impl-Deserialize%3C%27de%3E">i64</a><a href="#impl-Deserialize%3C%27de%3E">isize</a><a href="#impl-Deserialize%3C%27de%3E">u8</a><a href="#impl-Deserialize%3C%27de%3E">u16</a><a href="#impl-Deserialize%3C%27de%3E">u32</a><a href="#impl-Deserialize%3C%27de%3E">u64</a><a href="#impl-Deserialize%3C%27de%3E">usize</a><a href="#impl-Deserialize%3C%27de%3E">f32</a><a href="#impl-Deserialize%3C%27de%3E">f64</a><a href="#impl-Deserialize%3C%27de%3E">i128</a><a href="#impl-Deserialize%3C%27de%3E">u128</a><a href="#impl-Deserialize%3C%27de%3E">char</a><a href="#impl-Deserialize%3C%27de%3E">String</a><a href="#impl-Deserialize%3C%27de%3E">&'a str</a><a href="#impl-Deserialize%3C%27de%3E">&'a [u8]</a><a href="#impl-Deserialize%3C%27de%3E">CString</a><a href="#impl-Deserialize%3C%27de%3E">Box<CStr></a><a href="#impl-Deserialize%3C%27de%3E">Option<T></a><a href="#impl-Deserialize%3C%27de%3E">PhantomData<T></a><a href="#impl-Deserialize%3C%27de%3E">BinaryHeap<T></a><a href="#impl-Deserialize%3C%27de%3E">BTreeSet<T></a><a href="#impl-Deserialize%3C%27de%3E">LinkedList<T></a><a href="#impl-Deserialize%3C%27de%3E">HashSet<T, S></a><a href="#impl-Deserialize%3C%27de%3E">Vec<T></a><a href="#impl-Deserialize%3C%27de%3E">VecDeque<T></a><a href="#impl-Deserialize%3C%27de%3E">[T; 0]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 1]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 2]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 3]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 4]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 5]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 6]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 7]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 8]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 9]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 10]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 11]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 12]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 13]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 14]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 15]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 16]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 17]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 18]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 19]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 20]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 21]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 22]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 23]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 24]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 25]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 26]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 27]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 28]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 29]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 30]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 31]</a><a href="#impl-Deserialize%3C%27de%3E">[T; 32]</a><a href="#impl-Deserialize%3C%27de%3E">(T0,)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1, T2)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1, T2, T3)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1, T2, T3, T4)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1, T2, T3, T4, T5)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1, T2, T3, T4, T5, T6)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1, T2, T3, T4, T5, T6, T7)</a><a href="#impl-Deserialize%3C%27de%3E">(T0, T1, T2, T3, T4, T5
|
|||
|
</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">
|
|||
|
<input class="search-input" name="search"
|
|||
|
autocomplete="off"
|
|||
|
placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
|
|||
|
type="search">
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</nav>
|
|||
|
|
|||
|
<section id='main' class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='index.html'>serde</a>::<wbr><a class="trait" href=''>Deserialize</a></span><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'>−</span>]
|
|||
|
</a>
|
|||
|
</span><a class='srclink' href='../src/serde/de/mod.rs.html#523-562' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait Deserialize<'de>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
|||
|
fn <a href='#tymethod.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>><br> <span class="where">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de></span>;
|
|||
|
}</pre></div><div class='docblock'><p>A <strong>data structure</strong> that can be deserialized from any data format supported
|
|||
|
by Serde.</p>
|
|||
|
<p>Serde provides <code>Deserialize</code> implementations for many Rust primitive and
|
|||
|
standard library types. The complete list is <a href="https://docs.serde.rs/serde/de/index.html">here</a>. All of these can
|
|||
|
be deserialized using Serde out of the box.</p>
|
|||
|
<p>Additionally, Serde provides a procedural macro called <code>serde_derive</code> to
|
|||
|
automatically generate <code>Deserialize</code> implementations for structs and enums
|
|||
|
in your program. See the <a href="https://serde.rs/codegen.html">codegen section of the manual</a> for how to
|
|||
|
use this.</p>
|
|||
|
<p>In rare cases it may be necessary to implement <code>Deserialize</code> manually for
|
|||
|
some type in your program. See the <a href="https://serde.rs/impl-deserialize.html">Implementing
|
|||
|
<code>Deserialize</code></a> section of the manual for more about this.</p>
|
|||
|
<p>Third-party crates may provide <code>Deserialize</code> implementations for types that
|
|||
|
they expose. For example the <code>linked-hash-map</code> crate provides a
|
|||
|
<code>LinkedHashMap<K, V></code> type that is deserializable by Serde because the crate
|
|||
|
provides an implementation of <code>Deserialize</code> for it.</p>
|
|||
|
<h1 id="lifetime" class="section-header"><a href="#lifetime">Lifetime</a></h1>
|
|||
|
<p>The <code>'de</code> lifetime of this trait is the lifetime of data that may be
|
|||
|
borrowed by <code>Self</code> when deserialized. See the page <a href="https://serde.rs/lifetimes.html">Understanding
|
|||
|
deserializer lifetimes</a> for a more detailed explanation of these lifetimes.</p>
|
|||
|
</div>
|
|||
|
<h2 id='required-methods' class='small-section-header'>
|
|||
|
Required Methods<a href='#required-methods' class='anchor'></a>
|
|||
|
</h2>
|
|||
|
<div class='methods'>
|
|||
|
<h3 id='tymethod.deserialize' class='method'><span id='deserialize.v' class='invisible'><code>fn <a href='#tymethod.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></h3><div class='docblock'><p>Deserialize this value from the given Serde deserializer.</p>
|
|||
|
<p>See the <a href="https://serde.rs/impl-deserialize.html">Implementing <code>Deserialize</code></a> section of the
|
|||
|
manual for more information about how to implement this method.</p>
|
|||
|
</div></div>
|
|||
|
<h2 id='foreign-impls' class='small-section-header'>
|
|||
|
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
|
|||
|
</h2>
|
|||
|
<h3 id='impl-Deserialize%3C%27de%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#43-50' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize' class="method"><span id='deserialize.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#44-49' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Deserialize%3C%27de%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href='#impl-Deserialize%3C%27de%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#81-88' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-1' class="method"><span id='deserialize.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#82-87' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Deserialize%3C%27de%3E-2' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code><a href='#impl-Deserialize%3C%27de%3E-2' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#121-143' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-2' class="method"><span id='deserialize.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deseriali
|
|||
|
<code>Weak<T></code> has a reference count of 0 and cannot be upgraded.</p>
|
|||
|
</div><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-94' class="method"><span id='deserialize.v-95' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1655-1661' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Deserialize%3C%27de%3E-95' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de, T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/arc/struct.Weak.html" title="struct alloc::arc::Weak">ArcWeak</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de>, </span></code><a href='#impl-Deserialize%3C%27de%3E-95' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1669-1680' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>This impl requires the <a href="https://serde.rs/feature-flags.html#-features-rc"><code>"rc"</code></a> Cargo feature of Serde. The resulting
|
|||
|
<code>Weak<T></code> has a reference count of 0 and cannot be upgraded.</p>
|
|||
|
</div><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-95' class="method"><span id='deserialize.v-96' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1673-1679' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Deserialize%3C%27de%3E-96' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de, T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><T> <span class="where fmt-newline">where<br> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T>: <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de>, </span></code><a href='#impl-Deserialize%3C%27de%3E-96' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1691-1701' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>This impl requires the <a href="https://serde.rs/feature-flags.html#-features-rc"><code>"rc"</code></a> Cargo feature of Serde.</p>
|
|||
|
<p>Deserializing a data structure containing <code>Rc</code> will not attempt to
|
|||
|
deduplicate <code>Rc</code> references to the same data. Every deserialized <code>Rc</code>
|
|||
|
will end up with a strong count of 1.</p>
|
|||
|
</div><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-96' class="method"><span id='deserialize.v-97' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1695-1700' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Deserialize%3C%27de%3E-97' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de, T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html" title="struct alloc::arc::Arc">Arc</a><T> <span class="where fmt-newline">where<br> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T>: <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de>, </span></code><a href='#impl-Deserialize%3C%27de%3E-97' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1691-1701' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>This impl requires the <a href="https://serde.rs/feature-flags.html#-features-rc"><code>"rc"</code></a> Cargo feature of Serde.</p>
|
|||
|
<p>Deserializing a data structure containing <code>Arc</code> will not attempt to
|
|||
|
deduplicate <code>Arc</code> references to the same data. Every deserialized <code>Arc</code>
|
|||
|
will end up with a strong count of 1.</p>
|
|||
|
</div><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-97' class="method"><span id='deserialize.v-98' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1695-1700' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Deserialize%3C%27de%3E-98' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de, T> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></code><a href='#impl-Deserialize%3C%27de%3E-98' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1731-1741' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-98' class="method"><span id='deserialize.v-99' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="type" href="../serde/trait.Deserializer.html#associatedtype.Error" title="type serde::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/trait.Deserializer.html" title="trait serde::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#1735-1740' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Deserialize%3C%27de%3E-99' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'de, T: <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de>> <a class="trait" href="../serde/trait.Deserialize.html" title="trait serde::Deserialize">Deserialize</a><'de> for <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a><T></code><a href='#impl-Deserialize%3C%27de%3E-99' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/serde/de/impls.rs.html#575-582' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.deserialize-99' class="method"><span id='deserialize.v-100' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a clas
|
|||
|
<h2 id='implementors' class='small-section-header'>
|
|||
|
Implementors<a href='#implementors' class='anchor'></a>
|
|||
|
</h2>
|
|||
|
<ul class='item-list' id='implementors-list'>
|
|||
|
<li><table class='table-display'><tbody><tr><td><code>impl<'de> Deserialize<'de> for <a class="struct" href="../serde/de/struct.IgnoredAny.html" title="struct serde::de::IgnoredAny">IgnoredAny</a></code><td><div class='out-of-band'><a class='srclink' href='../src/serde/de/ignored_any.rs.html#212-220' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
|||
|
</ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
|
|||
|
src="../implementors/serde/trait.Deserialize.js">
|
|||
|
</script></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>⏎</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>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</aside>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script>
|
|||
|
window.rootPath = "../";
|
|||
|
window.currentCrate = "serde";
|
|||
|
</script>
|
|||
|
<script src="../main.js"></script>
|
|||
|
<script defer src="../search-index.js"></script>
|
|||
|
</body>
|
|||
|
</html>
|