349 lines
83 KiB
HTML
349 lines
83 KiB
HTML
|
<!DOCTYPE html>
|
|||
|
<html lang="en">
|
|||
|
<head>
|
|||
|
<meta charset="utf-8">
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|||
|
<meta name="generator" content="rustdoc">
|
|||
|
<meta name="description" content="API documentation for the Rust `Value` enum in crate `toml`.">
|
|||
|
<meta name="keywords" content="rust, rustlang, rust-lang, Value">
|
|||
|
|
|||
|
<title>toml::value::Value - Rust</title>
|
|||
|
|
|||
|
<link rel="stylesheet" type="text/css" href="../../normalize.css">
|
|||
|
<link rel="stylesheet" type="text/css" href="../../rustdoc.css">
|
|||
|
<link rel="stylesheet" type="text/css" href="../../main.css">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</head>
|
|||
|
<body class="rustdoc enum">
|
|||
|
<!--[if lte IE 8]>
|
|||
|
<div class="warning">
|
|||
|
This old browser is unsupported and will most likely display funky
|
|||
|
things.
|
|||
|
</div>
|
|||
|
<![endif]-->
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<nav class="sidebar">
|
|||
|
|
|||
|
<p class='location'>Enum Value</p><div class="block items"><ul><li><a href="#variants">Variants</a></li><li><a href="#methods">Methods</a></li><li><a href="#implementations">Trait Implementations</a></li></ul></div><p class='location'><a href='../index.html'>toml</a>::<wbr><a href='index.html'>value</a></p><script>window.sidebarCurrent = {name: 'Value', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script>
|
|||
|
</nav>
|
|||
|
|
|||
|
<nav class="sub">
|
|||
|
<form class="search-form js-only">
|
|||
|
<div class="search-container">
|
|||
|
<input class="search-input" name="search"
|
|||
|
autocomplete="off"
|
|||
|
placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
|
|||
|
type="search">
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</nav>
|
|||
|
|
|||
|
<section id='main' class="content">
|
|||
|
<h1 class='fqn'><span class='in-band'>Enum <a href='../index.html'>toml</a>::<wbr><a href='index.html'>value</a>::<wbr><a class="enum" href=''>Value</a></span><span class='out-of-band'><span id='render-detail'>
|
|||
|
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
|
|||
|
[<span class='inner'>−</span>]
|
|||
|
</a>
|
|||
|
</span><a class='srclink' href='../../src/toml/value.rs.html#19-34' title='goto source code'>[src]</a></span></h1>
|
|||
|
<pre class='rust enum'>pub enum Value {
|
|||
|
String(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>),
|
|||
|
Integer(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>),
|
|||
|
Float(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>),
|
|||
|
Boolean(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>),
|
|||
|
Datetime(<a class="struct" href="../../toml/value/struct.Datetime.html" title="struct toml::value::Datetime">Datetime</a>),
|
|||
|
Array(<a class="type" href="../../toml/value/type.Array.html" title="type toml::value::Array">Array</a>),
|
|||
|
Table(<a class="type" href="../../toml/value/type.Table.html" title="type toml::value::Table">Table</a>),
|
|||
|
}</pre><div class='docblock'><p>Representation of a TOML value.</p>
|
|||
|
</div><h2 id='variants' class='variants'>Variants</h2>
|
|||
|
<span id='variant.String' class='variant'><span id='String.v' class='invisible'><code>String(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)</code></span></span><div class='docblock'><p>Represents a TOML string</p>
|
|||
|
</div><span id='variant.Integer' class='variant'><span id='Integer.v' class='invisible'><code>Integer(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>)</code></span></span><div class='docblock'><p>Represents a TOML integer</p>
|
|||
|
</div><span id='variant.Float' class='variant'><span id='Float.v' class='invisible'><code>Float(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code></span></span><div class='docblock'><p>Represents a TOML float</p>
|
|||
|
</div><span id='variant.Boolean' class='variant'><span id='Boolean.v' class='invisible'><code>Boolean(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>)</code></span></span><div class='docblock'><p>Represents a TOML boolean</p>
|
|||
|
</div><span id='variant.Datetime' class='variant'><span id='Datetime.v' class='invisible'><code>Datetime(<a class="struct" href="../../toml/value/struct.Datetime.html" title="struct toml::value::Datetime">Datetime</a>)</code></span></span><div class='docblock'><p>Represents a TOML datetime</p>
|
|||
|
</div><span id='variant.Array' class='variant'><span id='Array.v' class='invisible'><code>Array(<a class="type" href="../../toml/value/type.Array.html" title="type toml::value::Array">Array</a>)</code></span></span><div class='docblock'><p>Represents a TOML array</p>
|
|||
|
</div><span id='variant.Table' class='variant'><span id='Table.v' class='invisible'><code>Table(<a class="type" href="../../toml/value/type.Table.html" title="type toml::value::Table">Table</a>)</code></span></span><div class='docblock'><p>Represents a TOML table</p>
|
|||
|
</div><h2 id='methods'>Methods</h2><h3 class='impl'><span class='in-band'><code>impl <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#42-207' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.try_from' class="method"><span id='try_from.v' class='invisible'><code>fn <a href='#method.try_from' class='fnname'>try_from</a><T>(value: T) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>, <a class="enum" href="../../toml/ser/enum.Error.html" title="enum toml::ser::Error">Error</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Convert a <code>T</code> into <code>toml::Value</code> which is an enum that can represent
|
|||
|
any valid TOML data.</p>
|
|||
|
|
|||
|
<p>This conversion can fail if <code>T</code>'s implementation of <code>Serialize</code> decides to
|
|||
|
fail, or if <code>T</code> contains a map with non-string keys.</p>
|
|||
|
</div><h4 id='method.try_into' class="method"><span id='try_into.v' class='invisible'><code>fn <a href='#method.try_into' class='fnname'>try_into</a><'de, T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <a class="struct" href="../../toml/de/struct.Error.html" title="struct toml::de::Error">Error</a>> <span class="where fmt-newline">where<br> T: <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Interpret a <code>toml::Value</code> as an instance of type <code>T</code>.</p>
|
|||
|
|
|||
|
<p>This conversion can fail if the structure of the <code>Value</code> does not match the
|
|||
|
structure expected by <code>T</code>, for example if <code>T</code> is a struct type but the
|
|||
|
<code>Value</code> contains something other than a TOML table. It can also fail if the
|
|||
|
structure is correct but <code>T</code>'s implementation of <code>Deserialize</code> decides that
|
|||
|
something is wrong with the data, for example required struct fields are
|
|||
|
missing from the TOML map or some number is too big to fit in the expected
|
|||
|
primitive type.</p>
|
|||
|
</div><h4 id='method.get' class="method"><span id='get.v' class='invisible'><code>fn <a href='#method.get' class='fnname'>get</a><I: <a class="trait" href="../../toml/value/trait.Index.html" title="trait toml::value::Index">Index</a>>(&self, index: I) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Index into a TOML array or map. A string index can be used to access a
|
|||
|
value in a map, and a usize index can be used to access an element of an
|
|||
|
array.</p>
|
|||
|
|
|||
|
<p>Returns <code>None</code> if the type of <code>self</code> does not match the type of the
|
|||
|
index, for example if the index is a string and <code>self</code> is an array or a
|
|||
|
number. Also returns <code>None</code> if the given key does not exist in the map
|
|||
|
or the given index is not within the bounds of the array.</p>
|
|||
|
</div><h4 id='method.get_mut' class="method"><span id='get_mut.v' class='invisible'><code>fn <a href='#method.get_mut' class='fnname'>get_mut</a><I: <a class="trait" href="../../toml/value/trait.Index.html" title="trait toml::value::Index">Index</a>>(&mut self, index: I) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Mutably index into a TOML array or map. A string index can be used to
|
|||
|
access a value in a map, and a usize index can be used to access an
|
|||
|
element of an array.</p>
|
|||
|
|
|||
|
<p>Returns <code>None</code> if the type of <code>self</code> does not match the type of the
|
|||
|
index, for example if the index is a string and <code>self</code> is an array or a
|
|||
|
number. Also returns <code>None</code> if the given key does not exist in the map
|
|||
|
or the given index is not within the bounds of the array.</p>
|
|||
|
</div><h4 id='method.as_integer' class="method"><span id='as_integer.v' class='invisible'><code>fn <a href='#method.as_integer' class='fnname'>as_integer</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the integer value if it is an integer.</p>
|
|||
|
</div><h4 id='method.is_integer' class="method"><span id='is_integer.v' class='invisible'><code>fn <a href='#method.is_integer' class='fnname'>is_integer</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Tests whether this value is an integer</p>
|
|||
|
</div><h4 id='method.as_float' class="method"><span id='as_float.v' class='invisible'><code>fn <a href='#method.as_float' class='fnname'>as_float</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the float value if it is a float.</p>
|
|||
|
</div><h4 id='method.is_float' class="method"><span id='is_float.v' class='invisible'><code>fn <a href='#method.is_float' class='fnname'>is_float</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Tests whether this value is a float</p>
|
|||
|
</div><h4 id='method.as_bool' class="method"><span id='as_bool.v' class='invisible'><code>fn <a href='#method.as_bool' class='fnname'>as_bool</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the boolean value if it is a boolean.</p>
|
|||
|
</div><h4 id='method.is_bool' class="method"><span id='is_bool.v' class='invisible'><code>fn <a href='#method.is_bool' class='fnname'>is_bool</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Tests whether this value is a boolean</p>
|
|||
|
</div><h4 id='method.as_str' class="method"><span id='as_str.v' class='invisible'><code>fn <a href='#method.as_str' class='fnname'>as_str</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the string of this value if it is a string.</p>
|
|||
|
</div><h4 id='method.is_str' class="method"><span id='is_str.v' class='invisible'><code>fn <a href='#method.is_str' class='fnname'>is_str</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Tests if this value is a string</p>
|
|||
|
</div><h4 id='method.as_datetime' class="method"><span id='as_datetime.v' class='invisible'><code>fn <a href='#method.as_datetime' class='fnname'>as_datetime</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../toml/value/struct.Datetime.html" title="struct toml::value::Datetime">Datetime</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the datetime value if it is a datetime.</p>
|
|||
|
|
|||
|
<p>Note that a parsed TOML value will only contain ISO 8601 dates. An
|
|||
|
example date is:</p>
|
|||
|
|
|||
|
<pre><code class="language-notrust">1979-05-27T07:32:00Z
|
|||
|
</code></pre>
|
|||
|
</div><h4 id='method.is_datetime' class="method"><span id='is_datetime.v' class='invisible'><code>fn <a href='#method.is_datetime' class='fnname'>is_datetime</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Tests whether this value is a datetime</p>
|
|||
|
</div><h4 id='method.as_array' class="method"><span id='as_array.v' class='invisible'><code>fn <a href='#method.as_array' class='fnname'>as_array</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the array value if it is an array.</p>
|
|||
|
</div><h4 id='method.as_array_mut' class="method"><span id='as_array_mut.v' class='invisible'><code>fn <a href='#method.as_array_mut' class='fnname'>as_array_mut</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the array value if it is an array.</p>
|
|||
|
</div><h4 id='method.is_array' class="method"><span id='is_array.v' class='invisible'><code>fn <a href='#method.is_array' class='fnname'>is_array</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Tests whether this value is an array</p>
|
|||
|
</div><h4 id='method.as_table' class="method"><span id='as_table.v' class='invisible'><code>fn <a href='#method.as_table' class='fnname'>as_table</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="type" href="../../toml/value/type.Table.html" title="type toml::value::Table">Table</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the table value if it is a table.</p>
|
|||
|
</div><h4 id='method.as_table_mut' class="method"><span id='as_table_mut.v' class='invisible'><code>fn <a href='#method.as_table_mut' class='fnname'>as_table_mut</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="type" href="../../toml/value/type.Table.html" title="type toml::value::Table">Table</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the table value if it is a table.</p>
|
|||
|
</div><h4 id='method.is_table' class="method"><span id='is_table.v' class='invisible'><code>fn <a href='#method.is_table' class='fnname'>is_table</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Extracts the table value if it is a table.</p>
|
|||
|
</div><h4 id='method.same_type' class="method"><span id='same_type.v' class='invisible'><code>fn <a href='#method.same_type' class='fnname'>same_type</a>(&self, other: &<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Tests whether this and another value have the same type.</p>
|
|||
|
</div><h4 id='method.type_str' class="method"><span id='type_str.v' class='invisible'><code>fn <a href='#method.type_str' class='fnname'>type_str</a>(&self) -> &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Returns a human-readable representation of the type of this value.</p>
|
|||
|
</div></div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#18' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, __arg_0: &<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
|||
|
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, __arg_0: &<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
|
|||
|
<div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#18' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
|||
|
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: &Self)</code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
|
|||
|
<div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#18' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Formats the value using the given formatter.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<I> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><I> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a> <span class="where fmt-newline">where<br> I: <a class="trait" href="../../toml/value/trait.Index.html" title="trait toml::value::Index">Index</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#209-215' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='associatedtype.Output' class="type"><span id='Output.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output' class="type">Output</a> = <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>The returned type after indexing</p>
|
|||
|
</div><h4 id='method.index' class="method"><span id='index.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index' class='fnname'>index</a>(&self, index: I) -> &<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>The method for the indexing (<code>container[index]</code>) operation</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<I> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a><I> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a> <span class="where fmt-newline">where<br> I: <a class="trait" href="../../toml/value/trait.Index.html" title="trait toml::value::Index">Index</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#217-221' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.index_mut' class="method"><span id='index_mut.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut' class='fnname'>index_mut</a>(&mut self, index: I) -> &mut <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>The method for the mutable indexing (<code>container[index]</code>) operation</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#223-228' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><V>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#230-234' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><V>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>, V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/btree/map/struct.BTreeMap.html" title="struct alloc::btree::map::BTreeMap">BTreeMap</a><S, V>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#236-244' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-2' class="method"><span id='from.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/btree/map/struct.BTreeMap.html" title="struct alloc::btree::map::BTreeMap">BTreeMap</a><S, V>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>, V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><S, V>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#246-254' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-3' class="method"><span id='from.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><S, V>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-4' class="method"><span id='from.v-4' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-5' class="method"><span id='from.v-5' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-6' class="method"><span id='from.v-6' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-7' class="method"><span id='from.v-7' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-8' class="method"><span id='from.v-8' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-9' class="method"><span id='from.v-9' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-10' class="method"><span id='from.v-10' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-11' class="method"><span id='from.v-11' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-12' class="method"><span id='from.v-12' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../../toml/value/struct.Datetime.html" title="struct toml::value::Datetime">Datetime</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#258-263' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.from-13' class="method"><span id='from.v-13' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(val: <a class="struct" href="../../toml/value/struct.Datetime.html" title="struct toml::value::Datetime">Datetime</a>) -> <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Performs the conversion.</p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#353-357' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
|
|||
|
<div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#359-364' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='associatedtype.Err' class="type"><span id='Err.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../toml/de/struct.Error.html" title="struct toml::de::Error">Error</a></code></span></h4>
|
|||
|
<div class='docblock'><p>The associated error which can be returned from parsing.</p>
|
|||
|
</div><h4 id='method.from_str' class="method"><span id='from_str.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str' class='fnname'>from_str</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>></code></span></h4>
|
|||
|
<div class='docblock'><p>Parses a string <code>s</code> to return a value of this type. <a href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str">Read more</a></p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#366-403' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.serialize' class="method"><span id='serialize.v' class='invisible'><code>fn <a href='../../serde/ser/trait.Serialize.html#tymethod.serialize' class='fnname'>serialize</a><S>(&self, serializer: S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><S::<a class="type" href="../../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, S::<a class="type" href="../../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Serialize this value into the given Serde serializer. <a href="../../serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<'de> <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#405-484' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.deserialize' class="method"><span id='deserialize.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a>, D::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> D: <a class="trait" href="../../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="../../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<'de> <a class="trait" href="../../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#486-552' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../serde/de/trait.Deserializer.html#associatedtype.Error' class="type">Error</a> = <a class="struct" href="../../toml/de/struct.Error.html" title="struct toml::de::Error">Error</a></code></span></h4>
|
|||
|
<div class='docblock'><p>The error type that can be returned if some error occurs during deserialization. <a href="../../serde/de/trait.Deserializer.html#associatedtype.Error">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_any' class="method"><span id='deserialize_any.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_any' class='fnname'>deserialize_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="../../toml/de/struct.Error.html" title="struct toml::de::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Require the <code>Deserializer</code> to figure out how to drive the visitor based on what data type is in the input. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_any">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_enum' class="method"><span id='deserialize_enum.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_enum' class='fnname'>deserialize_enum</a><V>(<br> self, <br> _name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _variants: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'static [</a>&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="../../toml/de/struct.Error.html" title="struct toml::de::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an enum value with a particular name and possible variants. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_enum">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_option' class="method"><span id='deserialize_option.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_option' class='fnname'>deserialize_option</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, <a class="struct" href="../../toml/de/struct.Error.html" title="struct toml::de::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an optional value. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_option">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_bool' class="method"><span id='deserialize_bool.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_bool' class='fnname'>deserialize_bool</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_u8' class="method"><span id='deserialize_u8.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_u8' class='fnname'>deserialize_u8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_u16' class="method"><span id='deserialize_u16.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_u16' class='fnname'>deserialize_u16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_u32' class="method"><span id='deserialize_u32.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_u32' class='fnname'>deserialize_u32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_u64' class="method"><span id='deserialize_u64.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_u64' class='fnname'>deserialize_u64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_i8' class="method"><span id='deserialize_i8.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_i8' class='fnname'>deserialize_i8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_i16' class="method"><span id='deserialize_i16.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_i16' class='fnname'>deserialize_i16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_i32' class="method"><span id='deserialize_i32.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_i32' class='fnname'>deserialize_i32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_i64' class="method"><span id='deserialize_i64.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_i64' class='fnname'>deserialize_i64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_f32' class="method"><span id='deserialize_f32.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_f32' class='fnname'>deserialize_f32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_f64' class="method"><span id='deserialize_f64.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_f64' class='fnname'>deserialize_f64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_char' class="method"><span id='deserialize_char.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_char' class='fnname'>deserialize_char</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</p>
|
|||
|
</div><h4 id='method.deserialize_str' class="method"><span id='deserialize_str.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_str' class='fnname'>deserialize_str</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a string value and does not benefit from taking ownership of buffered data owned by the <code>Deserializer</code>. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_str">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_string' class="method"><span id='deserialize_string.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_string' class='fnname'>deserialize_string</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a string value and would benefit from taking ownership of buffered data owned by the <code>Deserializer</code>. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_string">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_unit' class="method"><span id='deserialize_unit.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_unit' class='fnname'>deserialize_unit</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a unit value.</p>
|
|||
|
</div><h4 id='method.deserialize_seq' class="method"><span id='deserialize_seq.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_seq' class='fnname'>deserialize_seq</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</p>
|
|||
|
</div><h4 id='method.deserialize_bytes' class="method"><span id='deserialize_bytes.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_bytes' class='fnname'>deserialize_bytes</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the <code>Deserializer</code>. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_bytes">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_byte_buf' class="method"><span id='deserialize_byte_buf.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf' class='fnname'>deserialize_byte_buf</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a byte array and would benefit from taking ownership of buffered data owned by the <code>Deserializer</code>. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_byte_buf">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_map' class="method"><span id='deserialize_map.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_map' class='fnname'>deserialize_map</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</p>
|
|||
|
</div><h4 id='method.deserialize_unit_struct' class="method"><span id='deserialize_unit_struct.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct' class='fnname'>deserialize_unit_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a unit struct with a particular name. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_unit_struct">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_tuple_struct' class="method"><span id='deserialize_tuple_struct.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct' class='fnname'>deserialize_tuple_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a particular name and number of fields. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_struct' class="method"><span id='deserialize_struct.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_struct' class='fnname'>deserialize_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> fields: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'static [</a>&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a struct with a particular name and fields. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_struct">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_tuple' class="method"><span id='deserialize_tuple.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple' class='fnname'>deserialize_tuple</a><V>(<br> self, <br> len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values and knows how many values there are without looking at the serialized data. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_tuple">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_ignored_any' class="method"><span id='deserialize_ignored_any.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any' class='fnname'>deserialize_ignored_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type doesn't matter because it is ignored. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_ignored_any">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_newtype_struct' class="method"><span id='deserialize_newtype_struct.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct' class='fnname'>deserialize_newtype_struct</a><V>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> visitor: V<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting a newtype struct with a particular name. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct">Read more</a></p>
|
|||
|
</div><h4 id='method.deserialize_identifier' class="method"><span id='deserialize_identifier.v' class='invisible'><code>fn <a href='../../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier' class='fnname'>deserialize_identifier</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="type" href="../../serde/de/trait.Visitor.html#associatedtype.Value" title="type serde::de::Visitor::Value">Value</a>, Self::<a class="type" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> V: <a class="trait" href="../../serde/de/trait.Visitor.html" title="trait serde::de::Visitor">Visitor</a><'de>, </span></code></span></h4>
|
|||
|
<div class='docblock'><p>Hint that the <code>Deserialize</code> type is expecting the name of a struct field or the discriminant of an enum variant. <a href="../../serde/de/trait.Deserializer.html#tymethod.deserialize_identifier">Read more</a></p>
|
|||
|
</div></div><h3 class='impl'><span class='in-band'><code>impl<'de> <a class="trait" href="../../serde/de/trait.IntoDeserializer.html" title="trait serde::de::IntoDeserializer">IntoDeserializer</a><'de, <a class="struct" href="../../toml/de/struct.Error.html" title="struct toml::de::Error">Error</a>> for <a class="enum" href="../../toml/value/enum.Value.html" title="enum toml::value::Value">Value</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/toml/value.rs.html#637-643' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='associatedtype.Deserializer' class="type"><span id='Deserializer.t' class='invisible'><code>type <a href='../../serde/de/trait.IntoDeserializer.html#associatedtype.Deserializer' class="type">Deserializer</a> = Self</code></span></h4>
|
|||
|
<div class='docblock'><p>The type of the deserializer being converted into.</p>
|
|||
|
</div><h4 id='method.into_deserializer' class="method"><span id='into_deserializer.v' class='invisible'><code>fn <a href='../../serde/de/trait.IntoDeserializer.html#tymethod.into_deserializer' class='fnname'>into_deserializer</a>(self) -> Self</code></span></h4>
|
|||
|
<div class='docblock'><p>Convert this value into a deserializer.</p>
|
|||
|
</div></div></section>
|
|||
|
<section id='search' class="content hidden"></section>
|
|||
|
|
|||
|
<section class="footer"></section>
|
|||
|
|
|||
|
<aside id="help" class="hidden">
|
|||
|
<div>
|
|||
|
<h1 class="hidden">Help</h1>
|
|||
|
|
|||
|
<div class="shortcuts">
|
|||
|
<h2>Keyboard Shortcuts</h2>
|
|||
|
|
|||
|
<dl>
|
|||
|
<dt>?</dt>
|
|||
|
<dd>Show this help dialog</dd>
|
|||
|
<dt>S</dt>
|
|||
|
<dd>Focus the search field</dd>
|
|||
|
<dt>⇤</dt>
|
|||
|
<dd>Move up in search results</dd>
|
|||
|
<dt>⇥</dt>
|
|||
|
<dd>Move down in search results</dd>
|
|||
|
<dt>⏎</dt>
|
|||
|
<dd>Go to active search result</dd>
|
|||
|
<dt>+</dt>
|
|||
|
<dd>Collapse/expand all sections</dd>
|
|||
|
</dl>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="infos">
|
|||
|
<h2>Search Tricks</h2>
|
|||
|
|
|||
|
<p>
|
|||
|
Prefix searches with a type followed by a colon (e.g.
|
|||
|
<code>fn:</code>) to restrict the search to a given type.
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
Accepted types are: <code>fn</code>, <code>mod</code>,
|
|||
|
<code>struct</code>, <code>enum</code>,
|
|||
|
<code>trait</code>, <code>type</code>, <code>macro</code>,
|
|||
|
and <code>const</code>.
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
Search functions by type signature (e.g.
|
|||
|
<code>vec -> usize</code> or <code>* -> vec</code>)
|
|||
|
</p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</aside>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script>
|
|||
|
window.rootPath = "../../";
|
|||
|
window.currentCrate = "toml";
|
|||
|
</script>
|
|||
|
<script src="../../main.js"></script>
|
|||
|
<script defer src="../../search-index.js"></script>
|
|||
|
</body>
|
|||
|
</html>
|