286 lines
152 KiB
HTML
286 lines
152 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."><title>Number in serde_json::value - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="serde_json" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.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]--><rustdoc-topbar><h2><a href="#">Number</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../serde_json/index.html">serde_<wbr>json</a><span class="version">1.0.149</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Number</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.as_f64" title="as_f64">as_f64</a></li><li><a href="#method.as_i64" title="as_i64">as_i64</a></li><li><a href="#method.as_i128" title="as_i128">as_i128</a></li><li><a href="#method.as_u64" title="as_u64">as_u64</a></li><li><a href="#method.as_u128" title="as_u128">as_u128</a></li><li><a href="#method.from_f64" title="from_f64">from_f64</a></li><li><a href="#method.from_i128" title="from_i128">from_i128</a></li><li><a href="#method.from_u128" title="from_u128">from_u128</a></li><li><a href="#method.is_f64" title="is_f64">is_f64</a></li><li><a href="#method.is_i64" title="is_i64">is_i64</a></li><li><a href="#method.is_u64" title="is_u64">is_u64</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Number" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-Number" title="Debug">Debug</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-Number" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-Deserializer%3C'de%3E-for-%26Number" title="Deserializer<'de>">Deserializer<'de></a></li><li><a href="#impl-Deserializer%3C'de%3E-for-Number" title="Deserializer<'de>">Deserializer<'de></a></li><li><a href="#impl-Display-for-Number" title="Display">Display</a></li><li><a href="#impl-Eq-for-Number" title="Eq">Eq</a></li><li><a href="#impl-From%3CNumber%3E-for-Value" title="From<Number>">From<Number></a></li><li><a href="#impl-From%3Ci8%3E-for-Number" title="From<i8>">From<i8></a></li><li><a href="#impl-From%3Ci16%3E-for-Number" title="From<i16>">From<i16></a></li><li><a href="#impl-From%3Ci32%3E-for-Number" title="From<i32>">From<i32></a></li><li><a href="#impl-From%3Ci64%3E-for-Number" title="From<i64>">From<i64></a></li><li><a href="#impl-From%3Cisize%3E-for-Number" title="From<isize>">From<isize></a></li><li><a href="#impl-From%3Cu8%3E-for-Number" title="From<u8>">From<u8></a></li><li><a href="#impl-From%3Cu16%3E-for-Number" title="From<u16>">From<u16></a></li><li><a href="#impl-From%3Cu32%3E-for-Number" title="From<u32>">From<u32></a></li><li><a href="#impl-From%3Cu64%3E-for-Number" title="From<u64>">From<u64></a></li><li><a href="#impl-From%3Cusize%3E-for-Number" title="From<usize>">From<usize></a></li><li><a href="#impl-FromStr-for-Number" title="FromStr">FromStr</a></li><li><a href="#impl-Hash-for-Number" title="Hash">Hash</a></li><li><a href="#impl-PartialEq-for-Number" title="PartialEq">PartialEq</a></li><li><a href="#impl-Serialize-for-Number" title="Serialize">Serialize</a></li><li><a href="#impl-StructuralPartialEq-for-Number" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Number" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Number" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Number" title="Send">Send</a></li><li><a href="#impl-Sync-for-Number" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Number" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Number" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-DeserializeOwned-for-T" title="DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In serde_<wbr>json::<wbr>value</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">serde_json</a>::<wbr><a href="index.html">value</a></div><h1>Struct <span class="struct">Number</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/serde_json/number.rs.html#22-24">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Number { <span class="comment">/* private fields */</span> }</code></pre><details class="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="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#75-348">Source</a><a href="#impl-Number" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is_i64" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#81-90">Source</a><h4 class="code-header">pub fn <a href="#method.is_i64" class="fn">is_i64</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></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></details><details class="toggle method-toggle" open><summary><section id="method.is_u64" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#96-104">Source</a><h4 class="code-header">pub fn <a href="#method.is_u64" class="fn">is_u64</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></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></details><details class="toggle method-toggle" open><summary><section id="method.is_f64" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#113-128">Source</a><h4 class="code-header">pub fn <a href="#method.is_f64" class="fn">is_f64</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></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></details><details class="toggle method-toggle" open><summary><section id="method.as_i64" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#132-147">Source</a><h4 class="code-header">pub fn <a href="#method.as_i64" class="fn">as_i64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i64.html">i64</a>></h4></section></summary><div class="docblock"><p>If the <code>Number</code> is an integer, represent it as i64 if possible. Returns
|
||
None otherwise.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_u64" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#151-159">Source</a><h4 class="code-header">pub fn <a href="#method.as_u64" class="fn">as_u64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u64.html">u64</a>></h4></section></summary><div class="docblock"><p>If the <code>Number</code> is an integer, represent it as u64 if possible. Returns
|
||
None otherwise.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_f64" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#162-171">Source</a><h4 class="code-header">pub fn <a href="#method.as_f64" class="fn">as_f64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.f64.html">f64</a>></h4></section></summary><div class="docblock"><p>Represents the number as f64 if possible. Returns None otherwise.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_f64" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#183-199">Source</a><h4 class="code-header">pub fn <a href="#method.from_f64" class="fn">from_f64</a>(f: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a>></h4></section></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>(Number::from_f64(<span class="number">256.0</span>).is_some());
|
||
|
||
<span class="macro">assert!</span>(Number::from_f64(f64::NAN).is_none());</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.as_i128" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#203-212">Source</a><h4 class="code-header">pub fn <a href="#method.as_i128" class="fn">as_i128</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i128.html">i128</a>></h4></section></summary><div class="docblock"><p>If the <code>Number</code> is an integer, represent it as i128 if possible. Returns
|
||
None otherwise.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_u128" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#216-224">Source</a><h4 class="code-header">pub fn <a href="#method.as_u128" class="fn">as_u128</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u128.html">u128</a>></h4></section></summary><div class="docblock"><p>If the <code>Number</code> is an integer, represent it as u128 if possible. Returns
|
||
None otherwise.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_i128" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#235-253">Source</a><h4 class="code-header">pub fn <a href="#method.from_i128" class="fn">from_i128</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i128.html">i128</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a>></h4></section></summary><div class="docblock"><p>Converts an <code>i128</code> to a <code>Number</code>. Numbers smaller than i64::MIN or
|
||
larger than u64::MAX can only be represented in <code>Number</code> if serde_json’s
|
||
“arbitrary_precision” feature is enabled.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert!</span>(Number::from_i128(<span class="number">256</span>).is_some());</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.from_u128" class="method"><a class="src rightside" href="../../src/serde_json/number.rs.html#264-280">Source</a><h4 class="code-header">pub fn <a href="#method.from_u128" class="fn">from_u128</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u128.html">u128</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a>></h4></section></summary><div class="docblock"><p>Converts a <code>u128</code> to a <code>Number</code>. Numbers greater than u64::MAX can only
|
||
be represented in <code>Number</code> if serde_json’s “arbitrary_precision” feature
|
||
is enabled.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert!</span>(Number::from_u128(<span class="number">256</span>).is_some());</code></pre></div></div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#impl-Clone-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#366-370">Source</a><a href="#impl-Debug-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#367-369">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, formatter: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.93.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#398-460">Source</a><a href="#impl-Deserialize%3C'de%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../../serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#400-459">Source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a>, D::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
D: <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="../../serde_core/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserializer%3C'de%3E-for-%26Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#627-650">Source</a><a href="#impl-Deserializer%3C'de%3E-for-%26Number" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de> for &<a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#628">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../../serde_core/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></section></summary><div class='docblock'>The error type that can be returned if some error occurs during
|
||
deserialization.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_any-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#630">Source</a><a href="#method.deserialize_any-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_any" class="fn">deserialize_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i8-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#632">Source</a><a href="#method.deserialize_i8-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i8" class="fn">deserialize_i8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i16-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#633">Source</a><a href="#method.deserialize_i16-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i16" class="fn">deserialize_i16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i32-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#634">Source</a><a href="#method.deserialize_i32-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i32" class="fn">deserialize_i32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i64-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#635">Source</a><a href="#method.deserialize_i64-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i64" class="fn">deserialize_i64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i128-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#636">Source</a><a href="#method.deserialize_i128-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_i128" class="fn">deserialize_i128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i128</code> value. <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_i128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u8-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#637">Source</a><a href="#method.deserialize_u8-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u8" class="fn">deserialize_u8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u16-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#638">Source</a><a href="#method.deserialize_u16-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u16" class="fn">deserialize_u16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u32-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#639">Source</a><a href="#method.deserialize_u32-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u32" class="fn">deserialize_u32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u64-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#640">Source</a><a href="#method.deserialize_u64-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u64" class="fn">deserialize_u64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u128-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#641">Source</a><a href="#method.deserialize_u128-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_u128" class="fn">deserialize_u128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>u128</code> value. <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_u128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_f32-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#642">Source</a><a href="#method.deserialize_f32-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_f32" class="fn">deserialize_f32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_f64-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#643">Source</a><a href="#method.deserialize_f64-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_f64" class="fn">deserialize_f64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_bool-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_bool-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_bool" class="fn">deserialize_bool</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_char-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_char-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_char" class="fn">deserialize_char</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_str-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_str-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_str" class="fn">deserialize_str</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_str">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_string-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_string-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_string" class="fn">deserialize_string</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_string">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_bytes-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_bytes" class="fn">deserialize_bytes</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_byte_buf-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_byte_buf-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_byte_buf" class="fn">deserialize_byte_buf</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_byte_buf">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_option-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_option-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_option" class="fn">deserialize_option</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an optional value. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_option">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_unit-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_unit-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_unit" class="fn">deserialize_unit</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a unit value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_unit_struct-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_unit_struct-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_unit_struct" class="fn">deserialize_unit_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a unit struct with a
|
||
particular name.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_newtype_struct-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_newtype_struct-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct" class="fn">deserialize_newtype_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a newtype struct with a
|
||
particular name.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_seq-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_seq-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_seq" class="fn">deserialize_seq</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_tuple-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_tuple-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_tuple" class="fn">deserialize_tuple</a><V>(
|
||
self,
|
||
len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_tuple_struct-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_tuple_struct-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct" class="fn">deserialize_tuple_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a
|
||
particular name and number of fields.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_map-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_map-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_map" class="fn">deserialize_map</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_struct-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_struct-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_struct" class="fn">deserialize_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
fields: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>],
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a struct with a particular
|
||
name and fields.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_enum-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_enum-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_enum" class="fn">deserialize_enum</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
variants: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>],
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an enum value with a
|
||
particular name and possible variants.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_identifier-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_identifier-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_identifier" class="fn">deserialize_identifier</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting the name of a struct
|
||
field or the discriminant of an enum variant.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_ignored_any-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#645-649">Source</a><a href="#method.deserialize_ignored_any-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_ignored_any" class="fn">deserialize_ignored_any</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type
|
||
doesn’t matter because it is ignored. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_ignored_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_human_readable-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_core/de/mod.rs.html#1253">Source</a><a href="#method.is_human_readable-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.is_human_readable" class="fn">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Determine whether <code>Deserialize</code> implementations should expect to
|
||
deserialize their human-readable form. <a href="../../serde_core/de/trait.Deserializer.html#method.is_human_readable">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserializer%3C'de%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#602-625">Source</a><a href="#impl-Deserializer%3C'de%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#603">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../../serde_core/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></section></summary><div class='docblock'>The error type that can be returned if some error occurs during
|
||
deserialization.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_any" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#605">Source</a><a href="#method.deserialize_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_any" class="fn">deserialize_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i8" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#607">Source</a><a href="#method.deserialize_i8" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i8" class="fn">deserialize_i8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i16" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#608">Source</a><a href="#method.deserialize_i16" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i16" class="fn">deserialize_i16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i32" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#609">Source</a><a href="#method.deserialize_i32" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i32" class="fn">deserialize_i32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i64" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#610">Source</a><a href="#method.deserialize_i64" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i64" class="fn">deserialize_i64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i128" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#611">Source</a><a href="#method.deserialize_i128" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_i128" class="fn">deserialize_i128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i128</code> value. <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_i128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u8" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#612">Source</a><a href="#method.deserialize_u8" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u8" class="fn">deserialize_u8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u16" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#613">Source</a><a href="#method.deserialize_u16" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u16" class="fn">deserialize_u16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u32" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#614">Source</a><a href="#method.deserialize_u32" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u32" class="fn">deserialize_u32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u64" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#615">Source</a><a href="#method.deserialize_u64" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u64" class="fn">deserialize_u64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u128" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#616">Source</a><a href="#method.deserialize_u128" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_u128" class="fn">deserialize_u128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>u128</code> value. <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_u128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_f32" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#617">Source</a><a href="#method.deserialize_f32" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_f32" class="fn">deserialize_f32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_f64" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#618">Source</a><a href="#method.deserialize_f64" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_f64" class="fn">deserialize_f64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_bool" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_bool" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_bool" class="fn">deserialize_bool</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_char" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_char" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_char" class="fn">deserialize_char</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_str" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_str" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_str" class="fn">deserialize_str</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_str">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_string" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_string" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_string" class="fn">deserialize_string</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_string">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_bytes" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_bytes" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_bytes" class="fn">deserialize_bytes</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_byte_buf" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_byte_buf" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_byte_buf" class="fn">deserialize_byte_buf</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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_core/de/trait.Deserializer.html#tymethod.deserialize_byte_buf">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_option" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_option" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_option" class="fn">deserialize_option</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an optional value. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_option">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_unit" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_unit" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_unit" class="fn">deserialize_unit</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a unit value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_unit_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_unit_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_unit_struct" class="fn">deserialize_unit_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a unit struct with a
|
||
particular name.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_newtype_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_newtype_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct" class="fn">deserialize_newtype_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a newtype struct with a
|
||
particular name.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_seq" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_seq" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_seq" class="fn">deserialize_seq</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_tuple" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_tuple" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_tuple" class="fn">deserialize_tuple</a><V>(
|
||
self,
|
||
len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>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.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_tuple_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_tuple_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct" class="fn">deserialize_tuple_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a
|
||
particular name and number of fields.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_map" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_map" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_map" class="fn">deserialize_map</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_struct" class="fn">deserialize_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
fields: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>],
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a struct with a particular
|
||
name and fields.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_enum" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_enum" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_enum" class="fn">deserialize_enum</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
variants: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>],
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an enum value with a
|
||
particular name and possible variants.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_identifier" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_identifier" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_identifier" class="fn">deserialize_identifier</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting the name of a struct
|
||
field or the discriminant of an enum variant.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_ignored_any" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#620-624">Source</a><a href="#method.deserialize_ignored_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_ignored_any" class="fn">deserialize_ignored_any</a><V>(
|
||
self,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <Self as <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>>::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type
|
||
doesn’t matter because it is ignored. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_ignored_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_human_readable" class="method trait-impl"><a class="src rightside" href="../../src/serde_core/de/mod.rs.html#1253">Source</a><a href="#method.is_human_readable" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.is_human_readable" class="fn">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Determine whether <code>Deserialize</code> implementations should expect to
|
||
deserialize their human-readable form. <a href="../../serde_core/de/trait.Deserializer.html#method.is_human_readable">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#350-364">Source</a><a href="#impl-Display-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#352-358">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&self, formatter: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.93.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CNumber%3E-for-Value" class="impl"><a class="src rightside" href="../../src/serde_json/value/from.rs.html#137-151">Source</a><a href="#impl-From%3CNumber%3E-for-Value" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a>> for <a class="enum" href="../enum.Value.html" title="enum serde_json::Value">Value</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/value/from.rs.html#148-150">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(f: <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a>) -> Self</h4></section></summary><div class="docblock"><p>Convert <code>Number</code> to <code>Value::Number</code>.</p>
|
||
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>serde_json::{Number, Value};
|
||
|
||
<span class="kw">let </span>n = Number::from(<span class="number">7</span>);
|
||
<span class="kw">let </span>x: Value = n.into();</code></pre></div></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Ci16%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#impl-From%3Ci16%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i16.html">i16</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-7" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#method.from-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i16.html">i16</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Ci32%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#impl-From%3Ci32%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i32.html">i32</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-8" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#method.from-8" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i32.html">i32</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Ci64%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#impl-From%3Ci64%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i64.html">i64</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-9" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#method.from-9" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i64.html">i64</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Ci8%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#impl-From%3Ci8%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i8.html">i8</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-6" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#method.from-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i8.html">i8</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cisize%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#impl-From%3Cisize%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.isize.html">isize</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-10" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#791">Source</a><a href="#method.from-10" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.isize.html">isize</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cu16%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#impl-From%3Cu16%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u16.html">u16</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#method.from-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u16.html">u16</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cu32%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#impl-From%3Cu32%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#method.from-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cu64%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#impl-From%3Cu64%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u64.html">u64</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-4" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#method.from-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u64.html">u64</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cu8%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#impl-From%3Cu8%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#impl-From%3Cusize%3E-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-5" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#790">Source</a><a href="#method.from-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(u: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromStr-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/de.rs.html#1296-1304">Source</a><a href="#impl-FromStr-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/str/traits/trait.FromStr.html" title="trait core::str::traits::FromStr">FromStr</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Err" class="associatedtype trait-impl"><a class="src rightside" href="../../src/serde_json/de.rs.html#1297">Source</a><a href="#associatedtype.Err" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/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></section></summary><div class='docblock'>The associated error which can be returned from parsing.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_str" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/de.rs.html#1299-1303">Source</a><a href="#method.from_str" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/str/traits/trait.FromStr.html#tymethod.from_str" class="fn">from_str</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/str/traits/trait.FromStr.html#associatedtype.Err" title="type core::str::traits::FromStr::Err">Err</a>></h4></section></summary><div class='docblock'>Parses a string <code>s</code> to return a value of this type. <a href="https://doc.rust-lang.org/1.93.1/core/str/traits/trait.FromStr.html#tymethod.from_str">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#impl-Hash-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&mut __H</a>)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/hash/mod.rs.html#235-237">Source</a></span><a href="#method.hash_slice" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html#method.hash_slice" class="fn">hash_slice</a><H>(data: &[Self], state: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&mut H</a>)<div class="where">where
|
||
H: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#impl-PartialEq-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/cmp.rs.html#264">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#372-396">Source</a><a href="#impl-Serialize-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../serde_core/ser/trait.Serialize.html" title="trait serde_core::ser::Serialize">Serialize</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#374-383">Source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><S>(&self, serializer: S) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><S::<a class="associatedtype" href="../../serde_core/ser/trait.Serializer.html#associatedtype.Ok" title="type serde_core::ser::Serializer::Ok">Ok</a>, S::<a class="associatedtype" href="../../serde_core/ser/trait.Serializer.html#associatedtype.Error" title="type serde_core::ser::Serializer::Error">Error</a>><div class="where">where
|
||
S: <a class="trait" href="../../serde_core/ser/trait.Serializer.html" title="trait serde_core::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="../../serde_core/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details><section id="impl-Eq-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#impl-Eq-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section><section id="impl-StructuralPartialEq-for-Number" class="impl"><a class="src rightside" href="../../src/serde_json/number.rs.html#21">Source</a><a href="#impl-StructuralPartialEq-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Number" class="impl"><a href="#impl-Freeze-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section><section id="impl-RefUnwindSafe-for-Number" class="impl"><a href="#impl-RefUnwindSafe-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section><section id="impl-Send-for-Number" class="impl"><a href="#impl-Send-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section><section id="impl-Sync-for-Number" class="impl"><a href="#impl-Sync-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section><section id="impl-Unpin-for-Number" class="impl"><a href="#impl-Unpin-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section><section id="impl-UnwindSafe-for-Number" class="impl"><a href="#impl-UnwindSafe-for-Number" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../struct.Number.html" title="struct serde_json::Number">Number</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#547">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#549">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-11" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from-11" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#85-87">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#89">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#90">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#94">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/string.rs.html#2864">Source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/string.rs.html#2866">Source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/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.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/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.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="../../src/serde_core/de/mod.rs.html#633">Source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../serde_core/de/trait.DeserializeOwned.html" title="trait serde_core::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||
T: for<'de> <a class="trait" href="../../serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a><'de>,</div></h3></section></div></section></div></main></body></html> |