195 lines
44 KiB
HTML
195 lines
44 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 `CompactFormatter` struct in crate `serde_json`.">
|
|||
|
<meta name="keywords" content="rust, rustlang, rust-lang, CompactFormatter">
|
|||
|
|
|||
|
<title>serde_json::ser::CompactFormatter - Rust</title>
|
|||
|
|
|||
|
<link rel="stylesheet" type="text/css" href="../../normalize.css">
|
|||
|
<link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle">
|
|||
|
|
|||
|
<link rel="stylesheet" type="text/css" href="../../dark.css">
|
|||
|
<link rel="stylesheet" type="text/css" href="../../main.css" id="themeStyle">
|
|||
|
<script src="../../storage.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</head>
|
|||
|
<body class="rustdoc struct">
|
|||
|
<!--[if lte IE 8]>
|
|||
|
<div class="warning">
|
|||
|
This old browser is unsupported and will most likely display funky
|
|||
|
things.
|
|||
|
</div>
|
|||
|
<![endif]-->
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<nav class="sidebar">
|
|||
|
<div class="sidebar-menu">☰</div>
|
|||
|
|
|||
|
<p class='location'>Struct CompactFormatter</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Formatter">Formatter</a></div></div><p class='location'><a href='../index.html'>serde_json</a>::<wbr><a href='index.html'>ser</a></p><script>window.sidebarCurrent = {name: 'CompactFormatter', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
|
|||
|
</nav>
|
|||
|
|
|||
|
<div class="theme-picker">
|
|||
|
<button id="theme-picker" aria-label="Pick another theme!">
|
|||
|
<img src="../../brush.svg" width="18" alt="Pick another theme!">
|
|||
|
</button>
|
|||
|
<div id="theme-choices"></div>
|
|||
|
</div>
|
|||
|
<script src="../../theme.js"></script>
|
|||
|
<nav class="sub">
|
|||
|
<form class="search-form js-only">
|
|||
|
<div class="search-container">
|
|||
|
<input class="search-input" name="search"
|
|||
|
autocomplete="off"
|
|||
|
placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
|
|||
|
type="search">
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</nav>
|
|||
|
|
|||
|
<section id='main' class="content">
|
|||
|
<h1 class='fqn'><span class='in-band'>Struct <a href='../index.html'>serde_json</a>::<wbr><a href='index.html'>ser</a>::<wbr><a class="struct" href=''>CompactFormatter</a></span><span class='out-of-band'><span id='render-detail'>
|
|||
|
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
|
|||
|
[<span class='inner'>−</span>]
|
|||
|
</a>
|
|||
|
</span><a class='srclink' href='../../src/serde_json/ser.rs.html#1760' title='goto source code'>[src]</a></span></h1>
|
|||
|
<pre class='rust struct'>pub struct CompactFormatter;</pre><div class='docblock'><p>This structure compacts a JSON value with no extra whitespace.</p>
|
|||
|
</div>
|
|||
|
<h2 id='implementations' class='small-section-header'>
|
|||
|
Trait Implementations<a href='#implementations' class='anchor'></a>
|
|||
|
</h2>
|
|||
|
<h3 id='impl-Clone' 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="struct" href="../../serde_json/ser/struct.CompactFormatter.html" title="struct serde_json::ser::CompactFormatter">CompactFormatter</a></code><a href='#impl-Clone' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1759' 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="struct" href="../../serde_json/ser/struct.CompactFormatter.html" title="struct serde_json::ser::CompactFormatter">CompactFormatter</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1759' title='goto source code'>[src]</a></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: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#112-114' title='goto source code'>[src]</a></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 id='impl-Debug' 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="struct" href="../../serde_json/ser/struct.CompactFormatter.html" title="struct serde_json::ser::CompactFormatter">CompactFormatter</a></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1759' 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><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1759' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
|||
|
</div></div><h3 id='impl-Formatter' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../serde_json/ser/trait.Formatter.html" title="trait serde_json::ser::Formatter">Formatter</a> for <a class="struct" href="../../serde_json/ser/struct.CompactFormatter.html" title="struct serde_json::ser::CompactFormatter">CompactFormatter</a></code><a href='#impl-Formatter' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1762' title='goto source code'>[src]</a></span></h3>
|
|||
|
<div class='impl-items'><h4 id='method.write_null' class="method"><span id='write_null.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_null' class='fnname'>write_null</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1458-1463' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes a <code>null</code> value to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_bool' class="method"><span id='write_bool.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_bool' class='fnname'>write_bool</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1467-1477' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes a <code>true</code> or <code>false</code> value to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_i8' class="method"><span id='write_i8.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_i8' class='fnname'>write_i8</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1481-1486' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>-123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_i16' class="method"><span id='write_i16.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_i16' class='fnname'>write_i16</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1490-1495' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>-123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_i32' class="method"><span id='write_i32.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_i32' class='fnname'>write_i32</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1499-1504' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>-123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_i64' class="method"><span id='write_i64.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_i64' class='fnname'>write_i64</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1508-1513' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>-123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_u8' class="method"><span id='write_u8.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_u8' class='fnname'>write_u8</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1517-1522' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_u16' class="method"><span id='write_u16.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_u16' class='fnname'>write_u16</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1526-1531' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_u32' class="method"><span id='write_u32.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_u32' class='fnname'>write_u32</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1535-1540' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_u64' class="method"><span id='write_u64.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_u64' class='fnname'>write_u64</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1544-1549' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes an integer value like <code>123</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_f32' class="method"><span id='write_f32.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_f32' class='fnname'>write_f32</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1553-1560' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes a floating point value like <code>-31.26e+12</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_f64' class="method"><span id='write_f64.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_f64' class='fnname'>write_f64</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1564-1571' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes a floating point value like <code>-31.26e+12</code> to the specified writer.</p>
|
|||
|
</div><h4 id='method.write_number_str' class="method"><span id='write_number_str.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_number_str' class='fnname'>write_number_str</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &mut self, <br> writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, <br> value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1575-1580' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes a number that has already been rendered to a string.</p>
|
|||
|
</div><h4 id='method.begin_string' class="method"><span id='begin_string.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.begin_string' class='fnname'>begin_string</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1585-1590' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called before each series of <code>write_string_fragment</code> and <code>write_char_escape</code>. Writes a <code>"</code> to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.begin_string">Read more</a></p>
|
|||
|
</div><h4 id='method.end_string' class="method"><span id='end_string.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.end_string' class='fnname'>end_string</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1595-1600' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called after each series of <code>write_string_fragment</code> and <code>write_char_escape</code>. Writes a <code>"</code> to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.end_string">Read more</a></p>
|
|||
|
</div><h4 id='method.write_string_fragment' class="method"><span id='write_string_fragment.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_string_fragment' class='fnname'>write_string_fragment</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &mut self, <br> writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, <br> fragment: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1605-1610' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes a string fragment that doesn't need any escaping to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.write_string_fragment">Read more</a></p>
|
|||
|
</div><h4 id='method.write_char_escape' class="method"><span id='write_char_escape.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.write_char_escape' class='fnname'>write_char_escape</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &mut self, <br> writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, <br> char_escape: <a class="enum" href="../../serde_json/ser/enum.CharEscape.html" title="enum serde_json::ser::CharEscape">CharEscape</a><br>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1614-1648' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Writes a character escape code to the specified writer.</p>
|
|||
|
</div><h4 id='method.begin_array' class="method"><span id='begin_array.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.begin_array' class='fnname'>begin_array</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1653-1658' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called before every array. Writes a <code>[</code> to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.begin_array">Read more</a></p>
|
|||
|
</div><h4 id='method.end_array' class="method"><span id='end_array.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.end_array' class='fnname'>end_array</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1663-1668' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called after every array. Writes a <code>]</code> to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.end_array">Read more</a></p>
|
|||
|
</div><h4 id='method.begin_array_value' class="method"><span id='begin_array_value.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.begin_array_value' class='fnname'>begin_array_value</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &mut self, <br> writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, <br> first: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1673-1682' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called before every array value. Writes a <code>,</code> if needed to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.begin_array_value">Read more</a></p>
|
|||
|
</div><h4 id='method.end_array_value' class="method"><span id='end_array_value.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.end_array_value' class='fnname'>end_array_value</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, _writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1686-1691' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called after every array value.</p>
|
|||
|
</div><h4 id='method.begin_object' class="method"><span id='begin_object.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.begin_object' class='fnname'>begin_object</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1696-1701' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called before every object. Writes a <code>{</code> to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.begin_object">Read more</a></p>
|
|||
|
</div><h4 id='method.end_object' class="method"><span id='end_object.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.end_object' class='fnname'>end_object</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1706-1711' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called after every object. Writes a <code>}</code> to the specified writer. <a href="../../serde_json/ser/trait.Formatter.html#method.end_object">Read more</a></p>
|
|||
|
</div><h4 id='method.begin_object_key' class="method"><span id='begin_object_key.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.begin_object_key' class='fnname'>begin_object_key</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &mut self, <br> writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, <br> first: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1715-1724' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called before every object key.</p>
|
|||
|
</div><h4 id='method.end_object_key' class="method"><span id='end_object_key.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.end_object_key' class='fnname'>end_object_key</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, _writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1730-1735' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called after every object key. A <code>:</code> should be written to the specified writer by either this method or <code>begin_object_value</code>. <a href="../../serde_json/ser/trait.Formatter.html#method.end_object_key">Read more</a></p>
|
|||
|
</div><h4 id='method.begin_object_value' class="method"><span id='begin_object_value.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.begin_object_value' class='fnname'>begin_object_value</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1741-1746' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called before every object value. A <code>:</code> should be written to the specified writer by either this method or <code>end_object_key</code>. <a href="../../serde_json/ser/trait.Formatter.html#method.begin_object_value">Read more</a></p>
|
|||
|
</div><h4 id='method.end_object_value' class="method"><span id='end_object_value.v' class='invisible'><code>fn <a href='../../serde_json/ser/trait.Formatter.html#method.end_object_value' class='fnname'>end_object_value</a><W: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&mut self, _writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/serde_json/ser.rs.html#1750-1755' title='goto source code'>[src]</a></span></h4>
|
|||
|
<div class='docblock'><p>Called after every object value.</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><kbd>?</kbd></dt>
|
|||
|
<dd>Show this help dialog</dd>
|
|||
|
<dt><kbd>S</kbd></dt>
|
|||
|
<dd>Focus the search field</dd>
|
|||
|
<dt><kbd>↑</kbd></dt>
|
|||
|
<dd>Move up in search results</dd>
|
|||
|
<dt><kbd>↓</kbd></dt>
|
|||
|
<dd>Move down in search results</dd>
|
|||
|
<dt><kbd>↹</kbd></dt>
|
|||
|
<dd>Switch tab</dd>
|
|||
|
<dt><kbd>⏎</kbd></dt>
|
|||
|
<dd>Go to active search result</dd>
|
|||
|
<dt><kbd>+</kbd></dt>
|
|||
|
<dd>Expand all sections</dd>
|
|||
|
<dt><kbd>-</kbd></dt>
|
|||
|
<dd>Collapse all sections</dd>
|
|||
|
</dl>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="infos">
|
|||
|
<h2>Search Tricks</h2>
|
|||
|
|
|||
|
<p>
|
|||
|
Prefix searches with a type followed by a colon (e.g.
|
|||
|
<code>fn:</code>) to restrict the search to a given type.
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
Accepted types are: <code>fn</code>, <code>mod</code>,
|
|||
|
<code>struct</code>, <code>enum</code>,
|
|||
|
<code>trait</code>, <code>type</code>, <code>macro</code>,
|
|||
|
and <code>const</code>.
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
Search functions by type signature (e.g.
|
|||
|
<code>vec -> usize</code> or <code>* -> vec</code>)
|
|||
|
</p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</aside>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script>
|
|||
|
window.rootPath = "../../";
|
|||
|
window.currentCrate = "serde_json";
|
|||
|
</script>
|
|||
|
<script src="../../main.js"></script>
|
|||
|
<script defer src="../../search-index.js"></script>
|
|||
|
</body>
|
|||
|
</html>
|