222 lines
160 KiB
HTML
222 lines
160 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="Represents a JSON number, whether integer or floating point."><meta name="keywords" content="rust, rustlang, rust-lang, Number"><title>Number in serde_json - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><script defer src="../main.js"></script>
|
||
<noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a class="sidebar-logo" href="../serde_json/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.png" alt="logo"></div>
|
||
</a><h2 class="location">Struct Number</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><div class="sidebar-links"><a href="#method.as_f64">as_f64</a><a href="#method.as_i64">as_i64</a><a href="#method.as_u64">as_u64</a><a href="#method.from_f64">from_f64</a><a href="#method.is_f64">is_f64</a><a href="#method.is_i64">is_i64</a><a href="#method.is_u64">is_u64</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Deserializer%3C%27de%3E">Deserializer<'de></a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3CNumber%3E">From<Number></a><a href="#impl-From%3Ci16%3E">From<i16></a><a href="#impl-From%3Ci32%3E">From<i32></a><a href="#impl-From%3Ci64%3E">From<i64></a><a href="#impl-From%3Ci8%3E">From<i8></a><a href="#impl-From%3Cisize%3E">From<isize></a><a href="#impl-From%3Cu16%3E">From<u16></a><a href="#impl-From%3Cu32%3E">From<u32></a><a href="#impl-From%3Cu64%3E">From<u64></a><a href="#impl-From%3Cu8%3E">From<u8></a><a href="#impl-From%3Cusize%3E">From<usize></a><a href="#impl-FromStr">FromStr</a><a href="#impl-Hash">Hash</a><a href="#impl-PartialEq%3CNumber%3E">PartialEq<Number></a><a href="#impl-Serialize">Serialize</a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><h2 class="location">Other items in<br><a href="index.html">serde_json</a></h2><div id="sidebar-vars" data-name="Number" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../serde_json/index.html"><img class="rust-logo" src="../rust-logo.png" alt="logo"></a><nav class="sub"><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><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><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="index.html">serde_json</a>::<wbr><a class="struct" href="#">Number</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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_json/number.rs.html#22-24" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Number { /* fields omitted */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents a JSON number, whether integer or floating point.</p>
|
||
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#75-289" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_i64" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#97-106" title="goto source code">[src]</a></div><a href="#method.is_i64" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.is_i64" class="fnname">is_i64</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>Returns true if the <code>Number</code> is an integer between <code>i64::MIN</code> and
|
||
<code>i64::MAX</code>.</p>
|
||
<p>For any Number on which <code>is_i64</code> returns true, <code>as_i64</code> is guaranteed to
|
||
return the integer value.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">big</span> <span class="op">=</span> <span class="ident">i64::max_value</span>() <span class="kw">as</span> <span class="ident">u64</span> <span class="op">+</span> <span class="number">10</span>;
|
||
<span class="kw">let</span> <span class="ident">v</span> <span class="op">=</span> <span class="macro">json!</span>({ <span class="string">"a"</span>: <span class="number">64</span>, <span class="string">"b"</span>: <span class="ident">big</span>, <span class="string">"c"</span>: <span class="number">256.0</span> });
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">v</span>[<span class="string">"a"</span>].<span class="ident">is_i64</span>());
|
||
|
||
<span class="comment">// Greater than i64::MAX.</span>
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">v</span>[<span class="string">"b"</span>].<span class="ident">is_i64</span>());
|
||
|
||
<span class="comment">// Numbers with a decimal point are not considered integers.</span>
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">v</span>[<span class="string">"c"</span>].<span class="ident">is_i64</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_u64" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#127-135" title="goto source code">[src]</a></div><a href="#method.is_u64" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.is_u64" class="fnname">is_u64</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>Returns true if the <code>Number</code> is an integer between zero and <code>u64::MAX</code>.</p>
|
||
<p>For any Number on which <code>is_u64</code> returns true, <code>as_u64</code> is guaranteed to
|
||
return the integer value.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">v</span> <span class="op">=</span> <span class="macro">json!</span>({ <span class="string">"a"</span>: <span class="number">64</span>, <span class="string">"b"</span>: <span class="op">-</span><span class="number">64</span>, <span class="string">"c"</span>: <span class="number">256.0</span> });
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">v</span>[<span class="string">"a"</span>].<span class="ident">is_u64</span>());
|
||
|
||
<span class="comment">// Negative integer.</span>
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">v</span>[<span class="string">"b"</span>].<span class="ident">is_u64</span>());
|
||
|
||
<span class="comment">// Numbers with a decimal point are not considered integers.</span>
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">v</span>[<span class="string">"c"</span>].<span class="ident">is_u64</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_f64" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#157-172" title="goto source code">[src]</a></div><a href="#method.is_f64" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.is_f64" class="fnname">is_f64</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>Returns true if the <code>Number</code> can be represented by f64.</p>
|
||
<p>For any Number on which <code>is_f64</code> returns true, <code>as_f64</code> is guaranteed to
|
||
return the floating point value.</p>
|
||
<p>Currently this function returns true if and only if both <code>is_i64</code> and
|
||
<code>is_u64</code> return false but this is not a guarantee in the future.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">v</span> <span class="op">=</span> <span class="macro">json!</span>({ <span class="string">"a"</span>: <span class="number">256.0</span>, <span class="string">"b"</span>: <span class="number">64</span>, <span class="string">"c"</span>: <span class="op">-</span><span class="number">64</span> });
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">v</span>[<span class="string">"a"</span>].<span class="ident">is_f64</span>());
|
||
|
||
<span class="comment">// Integers.</span>
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">v</span>[<span class="string">"b"</span>].<span class="ident">is_f64</span>());
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">v</span>[<span class="string">"c"</span>].<span class="ident">is_f64</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.as_i64" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#188-203" title="goto source code">[src]</a></div><a href="#method.as_i64" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.as_i64" class="fnname">as_i64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i64.html">i64</a>></h4></div></summary><div class="docblock"><p>If the <code>Number</code> is an integer, represent it as i64 if possible. Returns
|
||
None otherwise.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">big</span> <span class="op">=</span> <span class="ident">i64::max_value</span>() <span class="kw">as</span> <span class="ident">u64</span> <span class="op">+</span> <span class="number">10</span>;
|
||
<span class="kw">let</span> <span class="ident">v</span> <span class="op">=</span> <span class="macro">json!</span>({ <span class="string">"a"</span>: <span class="number">64</span>, <span class="string">"b"</span>: <span class="ident">big</span>, <span class="string">"c"</span>: <span class="number">256.0</span> });
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"a"</span>].<span class="ident">as_i64</span>(), <span class="prelude-val">Some</span>(<span class="number">64</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"b"</span>].<span class="ident">as_i64</span>(), <span class="prelude-val">None</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"c"</span>].<span class="ident">as_i64</span>(), <span class="prelude-val">None</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.as_u64" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#218-226" title="goto source code">[src]</a></div><a href="#method.as_u64" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.as_u64" class="fnname">as_u64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u64.html">u64</a>></h4></div></summary><div class="docblock"><p>If the <code>Number</code> is an integer, represent it as u64 if possible. Returns
|
||
None otherwise.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">v</span> <span class="op">=</span> <span class="macro">json!</span>({ <span class="string">"a"</span>: <span class="number">64</span>, <span class="string">"b"</span>: <span class="op">-</span><span class="number">64</span>, <span class="string">"c"</span>: <span class="number">256.0</span> });
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"a"</span>].<span class="ident">as_u64</span>(), <span class="prelude-val">Some</span>(<span class="number">64</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"b"</span>].<span class="ident">as_u64</span>(), <span class="prelude-val">None</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"c"</span>].<span class="ident">as_u64</span>(), <span class="prelude-val">None</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.as_f64" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#240-249" title="goto source code">[src]</a></div><a href="#method.as_f64" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.as_f64" class="fnname">as_f64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>></h4></div></summary><div class="docblock"><p>Represents the number as f64 if possible. Returns None otherwise.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let</span> <span class="ident">v</span> <span class="op">=</span> <span class="macro">json!</span>({ <span class="string">"a"</span>: <span class="number">256.0</span>, <span class="string">"b"</span>: <span class="number">64</span>, <span class="string">"c"</span>: <span class="op">-</span><span class="number">64</span> });
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"a"</span>].<span class="ident">as_f64</span>(), <span class="prelude-val">Some</span>(<span class="number">256.0</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"b"</span>].<span class="ident">as_f64</span>(), <span class="prelude-val">Some</span>(<span class="number">64.0</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="ident">v</span>[<span class="string">"c"</span>].<span class="ident">as_f64</span>(), <span class="prelude-val">Some</span>(<span class="op">-</span><span class="number">64.0</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#264-280" title="goto source code">[src]</a></div><a href="#method.from_f64" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_f64" class="fnname">from_f64</a>(f: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a>></h4></div></summary><div class="docblock"><p>Converts a finite <code>f64</code> to a <code>Number</code>. Infinite or NaN values are not JSON
|
||
numbers.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert!</span>(<span class="ident">Number::from_f64</span>(<span class="number">256.0</span>).<span class="ident">is_some</span>());
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">Number::from_f64</span>(<span class="ident">f64::NAN</span>).<span class="ident">is_none</span>());</code></pre></div>
|
||
</div></details></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Clone" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h4></div></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><div class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self)</h4></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Debug" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#307-332" title="goto source code">[src]</a></div><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#309-323" title="goto source code">[src]</a></div><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, formatter: &mut <a class="struct" href="https://doc.rust-lang.org/1.59.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.59.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#362-412" title="goto source code">[src]</a></div><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl<'de> <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#364-411" title="goto source code">[src]</a></div><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a>, D::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></h4></div></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Deserializer%3C%27de%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#552-578" title="goto source code">[src]</a></div><a href="#impl-Deserializer%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl<'de> <a class="trait" href="../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error" class="type trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="../serde/de/trait.Deserializer.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a></h4></div></summary><div class='docblock'><p>The error type that can be returned if some error occurs during
|
||
deserialization. <a href="../serde/de/trait.Deserializer.html#associatedtype.Error">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_any" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#555" title="goto source code">[src]</a></div><a href="#method.deserialize_any" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_any" class="fnname">deserialize_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Require the <code>Deserializer</code> to figure out how to drive the visitor based
|
||
on what data type is in the input. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_any">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#557" title="goto source code">[src]</a></div><a href="#method.deserialize_i8" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i8" class="fnname">deserialize_i8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i16" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#558" title="goto source code">[src]</a></div><a href="#method.deserialize_i16" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i16" class="fnname">deserialize_i16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i32" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#559" title="goto source code">[src]</a></div><a href="#method.deserialize_i32" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i32" class="fnname">deserialize_i32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#560" title="goto source code">[src]</a></div><a href="#method.deserialize_i64" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i64" class="fnname">deserialize_i64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#561" title="goto source code">[src]</a></div><a href="#method.deserialize_u8" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u8" class="fnname">deserialize_u8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u16" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#562" title="goto source code">[src]</a></div><a href="#method.deserialize_u16" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u16" class="fnname">deserialize_u16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u32" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#563" title="goto source code">[src]</a></div><a href="#method.deserialize_u32" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u32" class="fnname">deserialize_u32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#564" title="goto source code">[src]</a></div><a href="#method.deserialize_u64" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u64" class="fnname">deserialize_u64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_f32" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#565" title="goto source code">[src]</a></div><a href="#method.deserialize_f32" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_f32" class="fnname">deserialize_f32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_f64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#566" title="goto source code">[src]</a></div><a href="#method.deserialize_f64" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_f64" class="fnname">deserialize_f64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i128" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#569" title="goto source code">[src]</a></div><a href="#method.deserialize_i128" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#method.deserialize_i128" class="fnname">deserialize_i128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i128</code> value. <a href="../serde/de/trait.Deserializer.html#method.deserialize_i128">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u128" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#570" title="goto source code">[src]</a></div><a href="#method.deserialize_u128" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#method.deserialize_u128" class="fnname">deserialize_u128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>u128</code> value. <a href="../serde/de/trait.Deserializer.html#method.deserialize_u128">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_bool" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_bool" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_bool" class="fnname">deserialize_bool</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_char" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_char" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_char" class="fnname">deserialize_char</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_str" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_str" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_str" class="fnname">deserialize_str</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a string value and does
|
||
not benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_str">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_string" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_string" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_string" class="fnname">deserialize_string</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a string value and would
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_string">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_bytes" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_bytes" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_bytes" class="fnname">deserialize_bytes</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a byte array and does not
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_bytes">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_byte_buf" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_byte_buf" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf" class="fnname">deserialize_byte_buf</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a byte array and would
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_option" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_option" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_option" class="fnname">deserialize_option</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an optional value. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_option">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_unit" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_unit" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_unit" class="fnname">deserialize_unit</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a unit value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_unit_struct" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_unit_struct" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct" class="fnname">deserialize_unit_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a unit struct with a
|
||
particular name. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_newtype_struct" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_newtype_struct" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct" class="fnname">deserialize_newtype_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a newtype struct with a
|
||
particular name. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_seq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_seq" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_seq" class="fnname">deserialize_seq</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_tuple" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_tuple" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple" class="fnname">deserialize_tuple</a><V>(<br> self, <br> len: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values and
|
||
knows how many values there are without looking at the serialized data. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_tuple_struct" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_tuple_struct" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct" class="fnname">deserialize_tuple_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a
|
||
particular name and number of fields. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_map" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_map" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_map" class="fnname">deserialize_map</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_struct" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_struct" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_struct" class="fnname">deserialize_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> fields: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&'static [</a>&'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a struct with a particular
|
||
name and fields. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_enum" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_enum" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_enum" class="fnname">deserialize_enum</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> variants: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&'static [</a>&'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an enum value with a
|
||
particular name and possible variants. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_enum">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_identifier" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_identifier" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier" class="fnname">deserialize_identifier</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting the name of a struct
|
||
field or the discriminant of an enum variant. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_ignored_any" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#573-577" title="goto source code">[src]</a></div><a href="#method.deserialize_ignored_any" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any" class="fnname">deserialize_ignored_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type
|
||
doesn’t matter because it is ignored. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_human_readable" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde/de/mod.rs.html#1215" title="goto source code">[src]</a></div><a href="#method.is_human_readable" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#method.is_human_readable" class="fnname">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>Determine whether <code>Deserialize</code> implementations should expect to
|
||
deserialize their human-readable form. <a href="../serde/de/trait.Deserializer.html#method.is_human_readable">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Deserializer%3C%27de%3E-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#580-606" title="goto source code">[src]</a></div><a href="#impl-Deserializer%3C%27de%3E-1" class="anchor"></a><h3 class="code-header in-band">impl<'de, 'a> <a class="trait" href="../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de> for &'a <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error-1" class="type trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="../serde/de/trait.Deserializer.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a></h4></div></summary><div class='docblock'><p>The error type that can be returned if some error occurs during
|
||
deserialization. <a href="../serde/de/trait.Deserializer.html#associatedtype.Error">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_any-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#583" title="goto source code">[src]</a></div><a href="#method.deserialize_any-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_any" class="fnname">deserialize_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Require the <code>Deserializer</code> to figure out how to drive the visitor based
|
||
on what data type is in the input. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_any">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i8-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#585" title="goto source code">[src]</a></div><a href="#method.deserialize_i8-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i8" class="fnname">deserialize_i8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i16-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#586" title="goto source code">[src]</a></div><a href="#method.deserialize_i16-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i16" class="fnname">deserialize_i16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i32-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#587" title="goto source code">[src]</a></div><a href="#method.deserialize_i32-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i32" class="fnname">deserialize_i32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i64-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#588" title="goto source code">[src]</a></div><a href="#method.deserialize_i64-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_i64" class="fnname">deserialize_i64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u8-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#589" title="goto source code">[src]</a></div><a href="#method.deserialize_u8-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u8" class="fnname">deserialize_u8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u16-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#590" title="goto source code">[src]</a></div><a href="#method.deserialize_u16-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u16" class="fnname">deserialize_u16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u32-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#591" title="goto source code">[src]</a></div><a href="#method.deserialize_u32-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u32" class="fnname">deserialize_u32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u64-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#592" title="goto source code">[src]</a></div><a href="#method.deserialize_u64-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_u64" class="fnname">deserialize_u64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_f32-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#593" title="goto source code">[src]</a></div><a href="#method.deserialize_f32-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_f32" class="fnname">deserialize_f32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_f64-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#594" title="goto source code">[src]</a></div><a href="#method.deserialize_f64-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_f64" class="fnname">deserialize_f64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_i128-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#597" title="goto source code">[src]</a></div><a href="#method.deserialize_i128-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#method.deserialize_i128" class="fnname">deserialize_i128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i128</code> value. <a href="../serde/de/trait.Deserializer.html#method.deserialize_i128">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_u128-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#598" title="goto source code">[src]</a></div><a href="#method.deserialize_u128-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#method.deserialize_u128" class="fnname">deserialize_u128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>u128</code> value. <a href="../serde/de/trait.Deserializer.html#method.deserialize_u128">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_bool-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_bool-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_bool" class="fnname">deserialize_bool</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_char-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_char-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_char" class="fnname">deserialize_char</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_str-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_str-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_str" class="fnname">deserialize_str</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a string value and does
|
||
not benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_str">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_string-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_string-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_string" class="fnname">deserialize_string</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a string value and would
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_string">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_bytes-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_bytes-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_bytes" class="fnname">deserialize_bytes</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a byte array and does not
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_bytes">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_byte_buf-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_byte_buf-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf" class="fnname">deserialize_byte_buf</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a byte array and would
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_option-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_option-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_option" class="fnname">deserialize_option</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an optional value. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_option">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_unit-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_unit-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_unit" class="fnname">deserialize_unit</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a unit value.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_unit_struct-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_unit_struct-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct" class="fnname">deserialize_unit_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a unit struct with a
|
||
particular name. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_newtype_struct-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_newtype_struct-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct" class="fnname">deserialize_newtype_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a newtype struct with a
|
||
particular name. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_seq-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_seq-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_seq" class="fnname">deserialize_seq</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_tuple-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_tuple-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple" class="fnname">deserialize_tuple</a><V>(<br> self, <br> len: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values and
|
||
knows how many values there are without looking at the serialized data. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_tuple_struct-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_tuple_struct-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct" class="fnname">deserialize_tuple_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a
|
||
particular name and number of fields. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_map-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_map-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_map" class="fnname">deserialize_map</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_struct-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_struct-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_struct" class="fnname">deserialize_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> fields: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&'static [</a>&'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a struct with a particular
|
||
name and fields. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_struct">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_enum-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_enum-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_enum" class="fnname">deserialize_enum</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>, <br> variants: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&'static [</a>&'static <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an enum value with a
|
||
particular name and possible variants. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_enum">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_identifier-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_identifier-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier" class="fnname">deserialize_identifier</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting the name of a struct
|
||
field or the discriminant of an enum variant. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize_ignored_any-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#601-605" title="goto source code">[src]</a></div><a href="#method.deserialize_ignored_any-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any" class="fnname">deserialize_ignored_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></h4></div></summary><div class='docblock'><p>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type
|
||
doesn’t matter because it is ignored. <a href="../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_human_readable-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde/de/mod.rs.html#1215" title="goto source code">[src]</a></div><a href="#method.is_human_readable-1" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserializer.html#method.is_human_readable" class="fnname">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>Determine whether <code>Deserialize</code> implementations should expect to
|
||
deserialize their human-readable form. <a href="../serde/de/trait.Deserializer.html#method.is_human_readable">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Display" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#291-305" title="goto source code">[src]</a></div><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#293-299" title="goto source code">[src]</a></div><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&self, formatter: &mut <a class="struct" href="https://doc.rust-lang.org/1.59.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.59.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CNumber%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/value/from.rs.html#141-155" title="goto source code">[src]</a></div><a href="#impl-From%3CNumber%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a>> for <a class="enum" href="enum.Value.html" title="enum serde_json::Value">Value</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/value/from.rs.html#152-154" title="goto source code">[src]</a></div><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(f: <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a>) -> Self</h4></div></summary><div class="docblock"><p>Convert <code>Number</code> to <code>Value</code></p>
|
||
<h5 id="examples" class="section-header"><a href="#examples">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">serde_json</span>::{<span class="ident">Number</span>, <span class="ident">Value</span>};
|
||
|
||
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="ident">Number::from</span>(<span class="number">7</span>);
|
||
<span class="kw">let</span> <span class="ident">x</span>: <span class="ident">Value</span> <span class="op">=</span> <span class="ident">n</span>.<span class="ident">into</span>();</code></pre></div>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Ci16%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#impl-From%3Ci16%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i16.html">i16</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#method.from-7" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i16.html">i16</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Ci32%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#impl-From%3Ci32%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#method.from-8" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Ci64%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#impl-From%3Ci64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i64.html">i64</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#method.from-9" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i64.html">i64</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Ci8%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#impl-From%3Ci8%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i8.html">i8</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#method.from-6" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i8.html">i8</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Cisize%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#impl-From%3Cisize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.isize.html">isize</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#749" title="goto source code">[src]</a></div><a href="#method.from-10" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.isize.html">isize</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Cu16%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#impl-From%3Cu16%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u16.html">u16</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u16.html">u16</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Cu32%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#impl-From%3Cu32%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u32.html">u32</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u32.html">u32</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Cu64%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#impl-From%3Cu64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u64.html">u64</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#method.from-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u64.html">u64</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Cu8%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#impl-From%3Cu8%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3Cusize%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#impl-From%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#748" title="goto source code">[src]</a></div><a href="#method.from-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-FromStr" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/de.rs.html#1217-1225" title="goto source code">[src]</a></div><a href="#impl-FromStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/str/traits/trait.FromStr.html" title="trait core::str::traits::FromStr">FromStr</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Err" class="type trait-impl has-srclink"><a href="#associatedtype.Err" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/str/traits/trait.FromStr.html#associatedtype.Err" class="associatedtype">Err</a> = <a class="struct" href="struct.Error.html" title="struct serde_json::Error">Error</a></h4></div></summary><div class='docblock'><p>The associated error which can be returned from parsing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_str" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/de.rs.html#1220-1224" title="goto source code">[src]</a></div><a href="#method.from_str" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/str/traits/trait.FromStr.html#tymethod.from_str" class="fnname">from_str</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/str/traits/trait.FromStr.html#associatedtype.Err" title="type core::str::traits::FromStr::Err">Err</a>></h4></div></summary><div class='docblock'><p>Parses a string <code>s</code> to return a value of this type. <a href="https://doc.rust-lang.org/1.59.0/core/str/traits/trait.FromStr.html#tymethod.from_str">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Hash" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#impl-Hash" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.hash" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&mut </a>__H)</h4></div></summary><div class='docblock'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.hash_slice" class="method trait-impl has-srclink"><div class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/hash/mod.rs.html#237-239" title="goto source code">[src]</a></div><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a><H>(data: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></div></summary><div class='docblock'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CNumber%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CNumber%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a>> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &<a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Serialize" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#334-360" title="goto source code">[src]</a></div><a href="#impl-Serialize" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.serialize" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#337-346" title="goto source code">[src]</a></div><a href="#method.serialize" class="anchor"></a><h4 class="code-header">fn <a href="../serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><S>(&self, serializer: S) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><S::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, S::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></h4></div></summary><div class='docblock'><p>Serialize this value into the given Serde serializer. <a href="../serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||
</div></details></div></details><div id="impl-Eq" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#impl-Eq" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div><div id="impl-StructuralEq" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#impl-StructuralEq" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div><div id="impl-StructuralPartialEq" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde_json/number.rs.html#21" title="goto source code">[src]</a></div><a href="#impl-StructuralPartialEq" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></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"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="value/struct.Number.html" title="struct serde_json::value::Number">Number</a></h3></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"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.59.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.59.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#209-214" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#211" title="goto source code">[src]</a></div><a href="#method.borrow" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>T</h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#218-222" title="goto source code">[src]</a></div><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow_mut" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#219" title="goto source code">[src]</a></div><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&mut </a>T</h4></div></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#550-554" title="goto source code">[src]</a></div><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#551" title="goto source code">[src]</a></div><a href="#method.from-11" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Into%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#538-545" title="goto source code">[src]</a></div><a href="#impl-Into%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#542" title="goto source code">[src]</a></div><a href="#method.into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-ToOwned" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/borrow.rs.html#84-96" title="goto source code">[src]</a></div><a href="#impl-ToOwned" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Owned" class="type trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></div></summary><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_owned" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/borrow.rs.html#89" title="goto source code">[src]</a></div><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</h4></div></summary><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/borrow.rs.html#93" title="goto source code">[src]</a></div><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&mut </a>T)</h4></div></summary><div class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</div></div><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-ToString" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/string.rs.html#2388-2402" title="goto source code">[src]</a></div><a href="#impl-ToString" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_string" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/string.rs.html#2394" title="goto source code">[src]</a></div><a href="#method.to_string" class="anchor"></a><h4 class="code-header">pub default fn <a href="https://doc.rust-lang.org/1.59.0/alloc/string/trait.ToString.html#tymethod.to_string" class="fnname">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></div></summary><div class='docblock'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.59.0/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryFrom%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#588-597" title="goto source code">[src]</a></div><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error-3" class="type trait-impl has-srclink"><a href="#associatedtype.Error-3" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#594" title="goto source code">[src]</a></div><a href="#method.try_from" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryInto%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#574-583" title="goto source code">[src]</a></div><a href="#impl-TryInto%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error-2" class="type trait-impl has-srclink"><a href="#associatedtype.Error-2" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#580" title="goto source code">[src]</a></div><a href="#method.try_into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><div id="impl-DeserializeOwned" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde/de/mod.rs.html#605" title="goto source code">[src]</a></div><a href="#impl-DeserializeOwned" class="anchor"></a><h3 class="code-header in-band">impl<T> <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> T: for<'de> <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></h3></div></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="serde_json" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.59.0 (9d1b2106e 2022-02-23)" ></div>
|
||
</body></html> |