<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `Deserializer` struct in crate `serde_json`."><metaname="keywords"content="rust, rustlang, rust-lang, Deserializer"><title>serde_json::Deserializer - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptsrc="../storage.js"></script><noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="shortcut icon"href="../favicon.ico"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../serde_json/index.html'><divclass='logo-container'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass='location'>Struct Deserializer</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#methods">Methods</a><divclass="sidebar-links"><ahref="#method.end">end</a><ahref="#method.from_reader">from_reader</a><ahref="#method.from_slice">from_slice</a><ahref="#method.from_str">from_str</a><ahref="#method.into_iter">into_iter</a><ahref="#method.new">new</a></div><aclass="sidebar-title"href="#implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-Deserializer%3C%27de%3E">Deserializer<'de></a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-RefUnwindSafe">RefUnwindSafe</a><ahref="#impl-Send">Send</a><ahref="#impl-Sync">Sync</a><ahref="#impl-Unpin">Unpin</a><ahref="#impl-UnwindSafe">UnwindSafe</a></div><aclass="sidebar-title"href="#blanket-implementations">Blanket Implementations</a><divclass="sidebar-links"><ahref="#impl-Any">Any</a><ahref="#impl-Borrow%3CT%3E">Borrow<T></a><ahref="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><ahref="#impl-From%3CT%3E">From<T></a><ahref="#impl-Into%3CU%3E">Into<U></a><ahref="#impl-TryFrom%3CU%3E">TryFrom<U></a><ahref="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><pclass='location'><ahref='index.html'>serde_json</a></p><script>window.sidebarCurrent={name:'Deserializer',ty:'struct',relpath:''};</script><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"><imgsrc="../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"></div></div><scriptsrc="../theme.js"></script><navclass="sub"><formclass="search-form js-only"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><aid="settings-menu"href="../settings.html"><imgsrc="../wheel.svg"width="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class='fqn'><spanclass='out-of-band'><spanid='render-detail'><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass='inner'>−</span>]</a></span><aclass='srclink'href='../src/serde_json/de.rs.html#24-30'title='goto source code'>[src]</a></span><spanclass='in-band'>Struct <ahref='index.html'>serde_json</a>::<wbr><aclass="struct"href=''>Deserializer</a></span></h1><divclass="docblock type-decl hidden-by-usual-hider"><preclass='rust struct'>pub struct Deserializer<R> { /* fields omitted */ }</pre></div><divcl
</div><h2id='methods'class='small-section-header'>Methods<ahref='#methods'class='anchor'></a></h2><h3id='impl'class='impl'><codeclass='in-band'>impl<'de, R><aclass="struct"href="../serde_json/de/struct.Deserializer.html"title="struct serde_json::de::Deserializer">Deserializer</a><R><spanclass="where fmt-newline">where<br> R: <aclass="trait"href="../serde_json/de/trait.Read.html"title="trait serde_json::de::Read">Read</a><'de>, </span></code><ahref='#impl'class='anchor'></a><aclass='srclink'href='../src/serde_json/de.rs.html#32-64'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.new'class="method"><codeid='new.v'>pub fn <ahref='#method.new'class='fnname'>new</a>(read: R) -> Self</code><aclass='srclink'href='../src/serde_json/de.rs.html#44-63'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create a JSON deserializer from one of the possible serde_json input
sources.</p>
<p>Typically it is more convenient to use one of these methods instead:</p>
<ul>
<li>Deserializer::from_str</li>
<li>Deserializer::from_bytes</li>
<li>Deserializer::from_reader</li>
</ul>
</div></div><h3id='impl-1'class='impl'><codeclass='in-band'>impl<R><aclass="struct"href="../serde_json/de/struct.Deserializer.html"title="struct serde_json::de::Deserializer">Deserializer</a><<aclass="struct"href="../serde_json/de/struct.IoRead.html"title="struct serde_json::de::IoRead">IoRead</a><R>><spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a>, </span></code><ahref='#impl-1'class='anchor'></a><aclass='srclink'href='../src/serde_json/de.rs.html#66-74'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from_reader'class="method"><codeid='from_reader.v'>pub fn <ahref='#method.from_reader'class='fnname'>from_reader</a>(reader: R) -> Self</code><aclass='srclink'href='../src/serde_json/de.rs.html#71-73'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a JSON deserializer from an <code>io::Read</code>.</p>
</div></div><h3id='impl-2'class='impl'><codeclass='in-band'>impl<'a><aclass="struct"href="../serde_json/de/struct.Deserializer.html"title="struct serde_json::de::Deserializer">Deserializer</a><<aclass="struct"href="../serde_json/de/struct.SliceRead.html"title="struct serde_json::de::SliceRead">SliceRead</a><'a>></code><ahref='#impl-2'class='anchor'></a><aclass='srclink'href='../src/serde_json/de.rs.html#76-81'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from_slice'class="method"><codeid='from_slice.v'>pub fn <ahref='#method.from_slice'class='fnname'>from_slice</a>(bytes: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> Self</code><aclass='srclink'href='../src/serde_json/de.rs.html#78-80'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a JSON deserializer from a <code>&[u8]</code>.</p>
</div></div><h3id='impl-3'class='impl'><codeclass='in-band'>impl<'a><aclass="struct"href="../serde_json/de/struct.Deserializer.html"title="struct serde_json::de::Deserializer">Deserializer</a><<aclass="struct"href="../serde_json/de/struct.StrRead.html"title="struct serde_json::de::StrRead">StrRead</a><'a>></code><ahref='#impl-3'class='anchor'></a><aclass='srclink'href='../src/serde_json/de.rs.html#83-88'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from_str'class="method"><codeid='from_str.v'>pub fn <ahref='#method.from_str'class='fnname'>from_str</a>(s: &'a <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><aclass='srclink'href='../src/serde_json/de.rs.html#85-87'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a JSON deserializer from a <code>&str</code>.</p>
</div></div><h3id='impl-4'class='impl'><codeclass='in-band'>impl<'de, R: <aclass="trait"href="../serde_json/de/trait.Read.html"title="trait serde_json::de::Read">Read</a><'de>><aclass="struct"href="../serde_json/de/struct.Deserializer.html"title="struct serde_json::de::Deserializer">Deserializer</a><R></code><ahref='#impl-4'class='anchor'></a><aclass='srclink'href='../src/serde_json/de.rs.html#131-1012'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.end'class="method"><codeid='end.v'>pub fn <ahref='#method.end'class='fnname'>end</a>(&mut self) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><aclass='srclink'href='../src/serde_json/de.rs.html#135-140'title='goto source code'>[src]</a></h4><divclass='docblock'><p>The <code>Deserializer::end</code> method should be called after a value has been fully deserialized.
This allows the <code>Deserializer</code> to validate that the input stream is at the end or that it
only has trailing whitespace.</p>
</div><h4id='method.into_iter'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../serde_json/de/struct.StreamDeserializer.html"title="struct serde_json::de::StreamDeserializer">StreamDeserializer</a><'de, R, T></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../serde_json/de/struct.StreamDeserializer.html"title="struct serde_json::de::StreamDeserializer">StreamDeserializer</a><'de, R, T></h3><codeclass="content"><spanclass="where fmt-newline">impl<'de, R, T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../serde_json/de/struct.StreamDeserializer.html"title="struct serde_json::de::StreamDeserializer">StreamDeserializer</a><'de, R, T><spanclass="where fmt-newline">where<br> R: <aclass="trait"href="../serde_json/de/trait.Read.html"title="trait serde_json::de::Read">Read</a><'de>,<br> T: <aclass="trait"href="../serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><T>;</span></code></div></div><codeid='into_iter.v'>pub fn <ahref='#method.into_iter'class='fnname'>into_iter</a><T>(self) -><aclass="struct"href="../serde_json/de/struct.StreamDeserializer.html"title="struct serde_json::de::StreamDeserializer">StreamDeserializer</a><'de, R, T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="../serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#143-156'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Turn a JSON deserializer into an iterator over values of type T.</p>
</div></div><h2id='implementations'class='small-section-header'>Trait Implementations<ahref='#implementations'class='anchor'></a></h2><divid='implementations-list'><h3id='impl-Deserializer%3C%27de%3E'class='impl'><codeclass='in-band'>impl<'de, 'a, R: <aclass="trait"href="../serde_json/de/trait.Read.html"title="trait serde_json::de::Read">Read</a><'de>><aclass="trait"href="../serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de> for &'a mut <aclass="struct"href="../serde_json/de/struct.Deserializer.html"title="struct serde_json::de::Deserializer">Deserializer</a><R></code><ahref='#impl-Deserializer%3C%27de%3E'class='anchor'></a><aclass='srclink'href='../src/serde_json/de.rs.html#1102-1689'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error'class="type"><codeid='Error.t'>type <ahref='../serde/de/trait.Deserializer.html#associatedtype.Error'class="type">Error</a> = <aclass="struct"href="../serde_json/error/struct.Error.html"title="struct serde_json::error::Error">Error</a></code></h4><divclass='docblock'><p>The error type that can be returned if some error occurs during deserialization. <ahref="../serde/de/trait.Deserializer.html#associatedtype.Error">Read more</a></p>
</div><h4id='method.deserialize_any'class="method hidden"><codeid='deserialize_any.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_any'class='fnname'>deserialize_any</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1106-1180'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Require the <code>Deserializer</code> to figure out how to drive the visitor based on what data type is in the input. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_any">Read more</a></p>
</div><h4id='method.deserialize_bool'class="method hidden"><codeid='deserialize_bool.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_bool'class='fnname'>deserialize_bool</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1182-1211'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</p>
</div><h4id='method.deserialize_i8'class="method hidden"><codeid='deserialize_i8.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_i8'class='fnname'>deserialize_i8</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</p>
</div><h4id='method.deserialize_i16'class="method hidden"><codeid='deserialize_i16.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_i16'class='fnname'>deserialize_i16</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</p>
</div><h4id='method.deserialize_i32'class="method hidden"><codeid='deserialize_i32.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_i32'class='fnname'>deserialize_i32</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</p>
</div><h4id='method.deserialize_i64'class="method hidden"><codeid='deserialize_i64.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_i64'class='fnname'>deserialize_i64</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</p>
</div><h4id='method.deserialize_u8'class="method hidden"><codeid='deserialize_u8.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_u8'class='fnname'>deserialize_u8</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</p>
</div><h4id='method.deserialize_u16'class="method hidden"><codeid='deserialize_u16.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_u16'class='fnname'>deserialize_u16</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</p>
</div><h4id='method.deserialize_u32'class="method hidden"><codeid='deserialize_u32.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_u32'class='fnname'>deserialize_u32</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</p>
</div><h4id='method.deserialize_u64'class="method hidden"><codeid='deserialize_u64.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_u64'class='fnname'>deserialize_u64</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</p>
</div><h4id='method.deserialize_f32'class="method hidden"><codeid='deserialize_f32.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_f32'class='fnname'>deserialize_f32</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</p>
</div><h4id='method.deserialize_f64'class="method hidden"><codeid='deserialize_f64.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_f64'class='fnname'>deserialize_f64</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1060-1065'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</p>
</div><h4id='method.deserialize_i128'class="method hidden"><codeid='deserialize_i128.v'>fn <ahref='../serde/de/trait.Deserializer.html#method.deserialize_i128'class='fnname'>deserialize_i128</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1225-1255'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i128</code> value. <ahref="../serde/de/trait.Deserializer.html#method.deserialize_i128">Read more</a></p>
</div><h4id='method.deserialize_u128'class="method hidden"><codeid='deserialize_u128.v'>fn <ahref='../serde/de/trait.Deserializer.html#method.deserialize_u128'class='fnname'>deserialize_u128</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1257-1285'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting an <code>u128</code> value. <ahref="../serde/de/trait.Deserializer.html#method.deserialize_u128">Read more</a></p>
</div><h4id='method.deserialize_char'class="method hidden"><codeid='deserialize_char.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_char'class='fnname'>deserialize_char</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1288-1293'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</p>
</div><h4id='method.deserialize_str'class="method hidden"><codeid='deserialize_str.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_str'class='fnname'>deserialize_str</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1295-1322'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a string value and does not benefit from taking ownership of buffered data owned by the <code>Deserializer</code>. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_str">Read more</a></p>
</div><h4id='method.deserialize_string'class="method hidden"><codeid='deserialize_string.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_string'class='fnname'>deserialize_string</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1324-1329'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a string value and would benefit from taking ownership of buffered data owned by the <code>Deserializer</code>. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_string">Read more</a></p>
</div><h4id='method.deserialize_bytes'class="method"><codeid='deserialize_bytes.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_bytes'class='fnname'>deserialize_bytes</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1406-1434'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Parses a JSON string as bytes. Note that this function does not check
whether the bytes represent a valid UTF-8 string.</p>
<p>The relevant part of the JSON specification is Section 8.2 of <ahref="https://tools.ietf.org/html/rfc7159">RFC
7159</a>:</p>
<blockquote>
<p>When all the strings represented in a JSON text are composed entirely
of Unicode characters (however escaped), then that JSON text is
interoperable in the sense that all software implementations that
parse it will agree on the contents of names and of string values in
objects and arrays.</p>
<p>However, the ABNF in this specification allows member names and string
values to contain bit sequences that cannot encode Unicode characters;
for example, "\uDEAD" (a single unpaired UTF-16 surrogate). Instances
of this have been observed, for example, when a library truncates a
UTF-16 string without checking whether the truncation split a
surrogate pair. The behavior of software that receives JSON texts
containing such values is unpredictable; for example, implementations
might return different values for the length of a string value or even
suffer fatal runtime exceptions.</p>
</blockquote>
<p>The behavior of serde_json is specified to fail on non-UTF-8 strings
when deserializing into Rust UTF-8 string types such as String, and
succeed with non-UTF-8 bytes when deserializing using this method.</p>
<p>Escape sequences are processed as usual, and for <code>\uXXXX</code> escapes it is
still checked if the hex number represents a valid Unicode code point.</p>
<spanclass="kw">let</span><spanclass="ident">expected_msg</span><spanclass="op">=</span><spanclass="string">"unexpected end of hex escape at line 1 column 35"</span>;
</div><h4id='method.deserialize_byte_buf'class="method hidden"><codeid='deserialize_byte_buf.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf'class='fnname'>deserialize_byte_buf</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1437-1442'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a byte array and would benefit from taking ownership of buffered data owned by the <code>Deserializer</code>. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf">Read more</a></p>
</div><h4id='method.deserialize_option'class="method"><codeid='deserialize_option.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_option'class='fnname'>deserialize_option</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1446-1458'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Parses a <code>null</code> as a None, and any other values as a <code>Some(...)</code>.</p>
</div><h4id='method.deserialize_unit'class="method hidden"><codeid='deserialize_unit.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_unit'class='fnname'>deserialize_unit</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1460-1484'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a unit value.</p>
</div><h4id='method.deserialize_unit_struct'class="method hidden"><codeid='deserialize_unit_struct.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct'class='fnname'>deserialize_unit_struct</a><V>(<br> self, <br> _name: &'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> visitor: V<br>) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1486-1491'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a unit struct with a particular name. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct">Read more</a></p>
</div><h4id='method.deserialize_newtype_struct'class="method"><codeid='deserialize_newtype_struct.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct'class='fnname'>deserialize_newtype_struct</a><V>(<br> self, <br> name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> visitor: V<br>) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1495-1508'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Parses a newtype struct as the underlying value.</p>
</div><h4id='method.deserialize_seq'class="method hidden"><codeid='deserialize_seq.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_seq'class='fnname'>deserialize_seq</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1510-1540'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</p>
</div><h4id='method.deserialize_tuple'class="method hidden"><codeid='deserialize_tuple.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple'class='fnname'>deserialize_tuple</a><V>(self, _len: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1542-1547'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values and knows how many values there are without looking at the serialized data. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple">Read more</a></p>
</div><h4id='method.deserialize_tuple_struct'class="method hidden"><codeid='deserialize_tuple_struct.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct'class='fnname'>deserialize_tuple_struct</a><V>(<br> self, <br> _name: &'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _len: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> visitor: V<br>) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1549-1559'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a particular name and number of fields. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct">Read more</a></p>
</div><h4id='method.deserialize_map'class="method hidden"><codeid='deserialize_map.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_map'class='fnname'>deserialize_map</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1561-1591'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</p>
</div><h4id='method.deserialize_struct'class="method hidden"><codeid='deserialize_struct.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_struct'class='fnname'>deserialize_struct</a><V>(<br> self, <br> _name: &'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _fields: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'static [</a>&'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1593-1639'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting a struct with a particular name and fields. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_struct">Read more</a></p>
</div><h4id='method.deserialize_enum'class="method"><codeid='deserialize_enum.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_enum'class='fnname'>deserialize_enum</a><V>(<br> self, <br> _name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _variants: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'static [</a>&'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1644-1673'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Parses an enum as an object like <code>{"$KEY":$VALUE}</code>, where $VALUE is either a straight
value, a <code>[..]</code>, or a <code>{..}</code>.</p>
</div><h4id='method.deserialize_identifier'class="method hidden"><codeid='deserialize_identifier.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier'class='fnname'>deserialize_identifier</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1675-1680'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type is expecting the name of a struct field or the discriminant of an enum variant. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier">Read more</a></p>
</div><h4id='method.deserialize_ignored_any'class="method hidden"><codeid='deserialize_ignored_any.v'>fn <ahref='../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any'class='fnname'>deserialize_ignored_any</a><V>(self, visitor: V) -><aclass="type"href="../serde_json/type.Result.html"title="type serde_json::Result">Result</a><V::<aclass="type"href="../serde/de/trait.Visitor.html#associatedtype.Value"title="type serde::de::Visitor::Value">Value</a>><spanclass="where fmt-newline">where<br> V: <aclass="trait"href="../serde/de/trait.Visitor.html"title="trait serde::de::Visitor">Visitor</a><'de>, </span></code><aclass='srclink'href='../src/serde_json/de.rs.html#1682-1688'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type doesn't matter because it is ignored. <ahref="../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any">Read more</a></p>
</div><h4id='method.is_human_readable'class="method hidden"><codeid='is_human_readable.v'>fn <ahref='../serde/de/trait.Deserializer.html#method.is_human_readable'class='fnname'>is_human_readable</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><aclass='srclink'href='../src/serde/de/mod.rs.html#1207-1209'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Determine whether <code>Deserialize</code> implementations should expect to deserialize their human-readable form. <ahref="../serde/de/trait.Deserializer.html#method.is_human_readable">Read more</a></p>
</div></div><h3id='impl-From%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</code><ahref='#impl-From%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#552-554'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from'class="method hidden"><codeid='from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from'class='fnname'>from</a>(t: T) -> T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryFrom%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref='#impl-TryFrom%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-1'class="type"><codeid='Error.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error'class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_from'class="method hidden"><codeid='try_from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from'class='fnname'>try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryInto%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref='#impl-TryInto%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-2'class="type"><codeid='Error.t-2'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error'class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_into'class="method hidden"><codeid='try_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into'class='fnname'>try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-BorrowMut%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-BorrowMut%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow_mut'class="method hidden"><codeid='borrow_mut.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut'class='fnname'>borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id='impl-Borrow%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Borrow%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow'class="method hidden"><codeid='borrow.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow'class='fnname'>borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id='impl-Any'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Any'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.type_id'class="method hidden"><codeid='type_id.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id'class='fnname'>type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath="../";window.currentCrate="serde_json";</script><scriptsrc="../aliases.js"></script><scriptsrc="../main.js"></script><scriptdefersrc="../search-index.js"></script></body></html>