<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `Impossible` struct in crate `serde`."><metaname="keywords"content="rust, rustlang, rust-lang, Impossible"><title>serde::ser::Impossible - Rust</title><linkrel="stylesheet"type="text/css"href="../../normalize.css"><linkrel="stylesheet"type="text/css"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../../dark.css"><linkrel="stylesheet"type="text/css"href="../../light.css"id="themeStyle"><scriptsrc="../../storage.js"></script><noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="shortcut icon"href="../../favicon.ico"><styletype="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../../serde/index.html'><divclass='logo-container'><imgsrc='../../rust-logo.png'alt='logo'></div></a><pclass='location'>Struct Impossible</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-SerializeMap">SerializeMap</a><ahref="#impl-SerializeSeq">SerializeSeq</a><ahref="#impl-SerializeStruct">SerializeStruct</a><ahref="#impl-SerializeStructVariant">SerializeStructVariant</a><ahref="#impl-SerializeTuple">SerializeTuple</a><ahref="#impl-SerializeTupleStruct">SerializeTupleStruct</a><ahref="#impl-SerializeTupleVariant">SerializeTupleVariant</a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-RefUnwindSafe">RefUnwindSafe</a><ahref="#impl-Send">Send</a><ahref="#impl-Sync">Sync</a><ahref="#impl-Unpin">Unpin</a><ahref="#impl-UnwindSafe">UnwindSafe</a></div><aclass="sidebar-title"href="#blanket-implementations">Blanket Implementations</a><divclass="sidebar-links"><ahref="#impl-Any">Any</a><ahref="#impl-Borrow%3CT%3E">Borrow<T></a><ahref="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><ahref="#impl-From%3CT%3E">From<T></a><ahref="#impl-Into%3CU%3E">Into<U></a><ahref="#impl-TryFrom%3CU%3E">TryFrom<U></a><ahref="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><pclass='location'><ahref='../index.html'>serde</a>::<wbr><ahref='index.html'>ser</a></p><script>window.sidebarCurrent={name:'Impossible',ty:'struct',relpath:''};</script><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"><imgsrc="../../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"></div></div><scriptsrc="../../theme.js"></script><navclass="sub"><formclass="search-form js-only"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><aid="settings-menu"href="../../settings.html"><imgsrc="../../wheel.svg"width="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class='fqn'><spanclass='out-of-band'><spanid='render-detail'><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass='inner'>−</span>]</a></span><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#60-64'title='goto source code'>[src]</a></span><spanclass='in-band'>Struct <ahref='../index.html'>serde</a>::<wbr><ahref='index.html'>ser</a>::<wbr><aclass="struct"href=''>Impossible</a></span></h1><divclass="docblock type-decl hidden-by-usual-hider"><precla
serializing one of the compound types.</p>
<p>This type cannot be instantiated, but implements every one of the traits
corresponding to the <ahref="trait.Serializer.html"><code>Serializer</code></a> compound types: <ahref="trait.SerializeSeq.html"><code>SerializeSeq</code></a>,
<ahref="trait.SerializeMap.html"><code>SerializeMap</code></a>, <ahref="trait.SerializeStruct.html"><code>SerializeStruct</code></a>, and <ahref="trait.SerializeStructVariant.html"><code>SerializeStructVariant</code></a>.</p>
<divclass='information'><divclass='tooltip edition'>ⓘ<spanclass='tooltiptext'>This code runs with edition 2018</span></div></div><divclass="example-wrap"><preclass="rust rust-example-rendered edition ">
<spanclass="comment">// Given Impossible cannot be instantiated, the only</span>
<spanclass="comment">// thing we can do here is to return an error.</span>
<spanclass="prelude-val">Err</span>(...)
}
<spanclass="comment">/* other Serializer methods */</span>
}</pre></div>
</div><h2id='implementations'class='small-section-header'>Trait Implementations<ahref='#implementations'class='anchor'></a></h2><divid='implementations-list'><h3id='impl-SerializeSeq'class='impl'><codeclass='in-band'>impl<Ok, Error><aclass="trait"href="../../serde/ser/trait.SerializeSeq.html"title="trait serde::ser::SerializeSeq">SerializeSeq</a> for <aclass="struct"href="../../serde/ser/struct.Impossible.html"title="struct serde::ser::Impossible">Impossible</a><Ok, Error><spanclass="where fmt-newline">where<br> Error: <aclass="trait"href="../../serde/ser/trait.Error.html"title="trait serde::ser::Error">Error</a>, </span></code><ahref='#impl-SerializeSeq'class='anchor'></a><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#68-86'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Ok'class="type"><codeid='Ok.t'>type <ahref='../../serde/ser/trait.SerializeSeq.html#associatedtype.Ok'class="type">Ok</a> = Ok</code></h4><divclass='docblock'><p>Must match the <code>Ok</code> type of our <code>Serializer</code>.</p>
</div><h4id='associatedtype.Error'class="type"><codeid='Error.t'>type <ahref='../../serde/ser/trait.SerializeSeq.html#associatedtype.Error'class="type">Error</a> = Error</code></h4><divclass='docblock'><p>Must match the <code>Error</code> type of our <code>Serializer</code>.</p>
</div></div><h3id='impl-SerializeTuple'class='impl'><codeclass='in-band'>impl<Ok, Error><aclass="trait"href="../../serde/ser/trait.SerializeTuple.html"title="trait serde::ser::SerializeTuple">SerializeTuple</a> for <aclass="struct"href="../../serde/ser/struct.Impossible.html"title="struct serde::ser::Impossible">Impossible</a><Ok, Error><spanclass="where fmt-newline">where<br> Error: <aclass="trait"href="../../serde/ser/trait.Error.html"title="trait serde::ser::Error">Error</a>, </span></code><ahref='#impl-SerializeTuple'class='anchor'></a><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#88-106'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Ok-1'class="type"><codeid='Ok.t-1'>type <ahref='../../serde/ser/trait.SerializeTuple.html#associatedtype.Ok'class="type">Ok</a> = Ok</code></h4><divclass='docblock'><p>Must match the <code>Ok</code> type of our <code>Serializer</code>.</p>
</div><h4id='associatedtype.Error-1'class="type"><codeid='Error.t-1'>type <ahref='../../serde/ser/trait.SerializeTuple.html#associatedtype.Error'class="type">Error</a> = Error</code></h4><divclass='docblock'><p>Must match the <code>Error</code> type of our <code>Serializer</code>.</p>
</div></div><h3id='impl-SerializeTupleStruct'class='impl'><codeclass='in-band'>impl<Ok, Error><aclass="trait"href="../../serde/ser/trait.SerializeTupleStruct.html"title="trait serde::ser::SerializeTupleStruct">SerializeTupleStruct</a> for <aclass="struct"href="../../serde/ser/struct.Impossible.html"title="struct serde::ser::Impossible">Impossible</a><Ok, Error><spanclass="where fmt-newline">where<br> Error: <aclass="trait"href="../../serde/ser/trait.Error.html"title="trait serde::ser::Error">Error</a>, </span></code><ahref='#impl-SerializeTupleStruct'class='anchor'></a><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#108-126'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Ok-2'class="type"><codeid='Ok.t-2'>type <ahref='../../serde/ser/trait.SerializeTupleStruct.html#associatedtype.Ok'class="type">Ok</a> = Ok</code></h4><divclass='docblock'><p>Must match the <code>Ok</code> type of our <code>Serializer</code>.</p>
</div><h4id='associatedtype.Error-2'class="type"><codeid='Error.t-2'>type <ahref='../../serde/ser/trait.SerializeTupleStruct.html#associatedtype.Error'class="type">Error</a> = Error</code></h4><divclass='docblock'><p>Must match the <code>Error</code> type of our <code>Serializer</code>.</p>
</div></div><h3id='impl-SerializeTupleVariant'class='impl'><codeclass='in-band'>impl<Ok, Error><aclass="trait"href="../../serde/ser/trait.SerializeTupleVariant.html"title="trait serde::ser::SerializeTupleVariant">SerializeTupleVariant</a> for <aclass="struct"href="../../serde/ser/struct.Impossible.html"title="struct serde::ser::Impossible">Impossible</a><Ok, Error><spanclass="where fmt-newline">where<br> Error: <aclass="trait"href="../../serde/ser/trait.Error.html"title="trait serde::ser::Error">Error</a>, </span></code><ahref='#impl-SerializeTupleVariant'class='anchor'></a><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#128-146'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Ok-3'class="type"><codeid='Ok.t-3'>type <ahref='../../serde/ser/trait.SerializeTupleVariant.html#associatedtype.Ok'class="type">Ok</a> = Ok</code></h4><divclass='docblock'><p>Must match the <code>Ok</code> type of our <code>Serializer</code>.</p>
</div><h4id='associatedtype.Error-3'class="type"><codeid='Error.t-3'>type <ahref='../../serde/ser/trait.SerializeTupleVariant.html#associatedtype.Error'class="type">Error</a> = Error</code></h4><divclass='docblock'><p>Must match the <code>Error</code> type of our <code>Serializer</code>.</p>
</div></div><h3id='impl-SerializeMap'class='impl'><codeclass='in-band'>impl<Ok, Error><aclass="trait"href="../../serde/ser/trait.SerializeMap.html"title="trait serde::ser::SerializeMap">SerializeMap</a> for <aclass="struct"href="../../serde/ser/struct.Impossible.html"title="struct serde::ser::Impossible">Impossible</a><Ok, Error><spanclass="where fmt-newline">where<br> Error: <aclass="trait"href="../../serde/ser/trait.Error.html"title="trait serde::ser::Error">Error</a>, </span></code><ahref='#impl-SerializeMap'class='anchor'></a><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#148-174'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Ok-4'class="type"><codeid='Ok.t-4'>type <ahref='../../serde/ser/trait.SerializeMap.html#associatedtype.Ok'class="type">Ok</a> = Ok</code></h4><divclass='docblock'><p>Must match the <code>Ok</code> type of our <code>Serializer</code>.</p>
</div><h4id='associatedtype.Error-4'class="type"><codeid='Error.t-4'>type <ahref='../../serde/ser/trait.SerializeMap.html#associatedtype.Error'class="type">Error</a> = Error</code></h4><divclass='docblock'><p>Must match the <code>Error</code> type of our <code>Serializer</code>.</p>
</div><h4id='method.serialize_entry'class="method hidden"><codeid='serialize_entry.v'>fn <ahref='../../serde/ser/trait.SerializeMap.html#method.serialize_entry'class='fnname'>serialize_entry</a><K: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, V: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>>(<br> &mut self, <br> key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K, <br> value: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>V<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<aclass="type"href="../../serde/ser/trait.SerializeMap.html#associatedtype.Error"title="type serde::ser::SerializeMap::Error">Error</a>><spanclass="where fmt-newline">where<br> K: <aclass="trait"href="../../serde/trait.Serialize.html"title="trait serde::Serialize">Serialize</a>,<br> V: <aclass="trait"href="../../serde/trait.Serialize.html"title="trait serde::Serialize">Serialize</a>, </span></code><aclass='srclink'href='../../src/serde/ser/mod.rs.html#1808-1819'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Serialize a map entry consisting of a key and a value. <ahref="../../serde/ser/trait.SerializeMap.html#method.serialize_entry">Read more</a></p>
</div></div><h3id='impl-SerializeStruct'class='impl'><codeclass='in-band'>impl<Ok, Error><aclass="trait"href="../../serde/ser/trait.SerializeStruct.html"title="trait serde::ser::SerializeStruct">SerializeStruct</a> for <aclass="struct"href="../../serde/ser/struct.Impossible.html"title="struct serde::ser::Impossible">Impossible</a><Ok, Error><spanclass="where fmt-newline">where<br> Error: <aclass="trait"href="../../serde/ser/trait.Error.html"title="trait serde::ser::Error">Error</a>, </span></code><ahref='#impl-SerializeStruct'class='anchor'></a><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#176-195'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Ok-5'class="type"><codeid='Ok.t-5'>type <ahref='../../serde/ser/trait.SerializeStruct.html#associatedtype.Ok'class="type">Ok</a> = Ok</code></h4><divclass='docblock'><p>Must match the <code>Ok</code> type of our <code>Serializer</code>.</p>
</div><h4id='associatedtype.Error-5'class="type"><codeid='Error.t-5'>type <ahref='../../serde/ser/trait.SerializeStruct.html#associatedtype.Error'class="type">Error</a> = Error</code></h4><divclass='docblock'><p>Must match the <code>Error</code> type of our <code>Serializer</code>.</p>
</div><h4id='method.skip_field'class="method hidden"><codeid='skip_field.v'>fn <ahref='../../serde/ser/trait.SerializeStruct.html#method.skip_field'class='fnname'>skip_field</a>(&mut self, key: &'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<aclass="type"href="../../serde/ser/trait.SerializeStruct.html#associatedtype.Error"title="type serde::ser::SerializeStruct::Error">Error</a>></code><aclass='srclink'href='../../src/serde/ser/mod.rs.html#1876-1879'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Indicate that a struct field has been skipped.</p>
</div></div><h3id='impl-SerializeStructVariant'class='impl'><codeclass='in-band'>impl<Ok, Error><aclass="trait"href="../../serde/ser/trait.SerializeStructVariant.html"title="trait serde::ser::SerializeStructVariant">SerializeStructVariant</a> for <aclass="struct"href="../../serde/ser/struct.Impossible.html"title="struct serde::ser::Impossible">Impossible</a><Ok, Error><spanclass="where fmt-newline">where<br> Error: <aclass="trait"href="../../serde/ser/trait.Error.html"title="trait serde::ser::Error">Error</a>, </span></code><ahref='#impl-SerializeStructVariant'class='anchor'></a><aclass='srclink'href='../../src/serde/ser/impossible.rs.html#197-216'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Ok-6'class="type"><codeid='Ok.t-6'>type <ahref='../../serde/ser/trait.SerializeStructVariant.html#associatedtype.Ok'class="type">Ok</a> = Ok</code></h4><divclass='docblock'><p>Must match the <code>Ok</code> type of our <code>Serializer</code>.</p>
</div><h4id='associatedtype.Error-6'class="type"><codeid='Error.t-6'>type <ahref='../../serde/ser/trait.SerializeStructVariant.html#associatedtype.Error'class="type">Error</a> = Error</code></h4><divclass='docblock'><p>Must match the <code>Error</code> type of our <code>Serializer</code>.</p>
</div><h4id='method.skip_field-1'class="method hidden"><codeid='skip_field.v-1'>fn <ahref='../../serde/ser/trait.SerializeStructVariant.html#method.skip_field'class='fnname'>skip_field</a>(&mut self, key: &'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<aclass="type"href="../../serde/ser/trait.SerializeStructVariant.html#associatedtype.Error"title="type serde::ser::SerializeStructVariant::Error">Error</a>></code><aclass='srclink'href='../../src/serde/ser/mod.rs.html#1942-1945'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Indicate that a struct variant field has been skipped.</p>
</div></div><h3id='impl-From%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</code><ahref='#impl-From%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#552-554'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from'class="method hidden"><codeid='from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from'class='fnname'>from</a>(t: T) -> T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryFrom%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref='#impl-TryFrom%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-7'class="type"><codeid='Error.t-7'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error'class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_from'class="method hidden"><codeid='try_from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from'class='fnname'>try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryInto%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref='#impl-TryInto%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-8'class="type"><codeid='Error.t-8'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error'class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_into'class="method hidden"><codeid='try_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into'class='fnname'>try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-BorrowMut%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-BorrowMut%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow_mut'class="method hidden"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>W</span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>W</h3><codeclass="content"><spanclass="where fmt-newline">impl<'_, W><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>W <spanclass="where fmt-newline">where<br> W: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'_, R><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>R <spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'_, I><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>I <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <I as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"title="type core::iter::traits::iterator::Iterator::Item">Item</a>;</span><spanclass="where fmt-newline">impl<'_, F><aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>F <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://d
</div></div><h3id='impl-Borrow%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Borrow%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow'class="method hidden"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>W</span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>W</h3><codeclass="content"><spanclass="where fmt-newline">impl<'_, W><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>W <spanclass="where fmt-newline">where<br> W: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'_, R><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>R <spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'_, I><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>I <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <I as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"title="type core::iter::traits::iterator::Iterator::Item">Item</a>;</span><spanclass="where fmt-newline">impl<'_, F><aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'_ mut </a>F <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/ni
</div></div><h3id='impl-Any'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Any'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.type_id'class="method hidden"><codeid='type_id.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id'class='fnname'>type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath="../../";window.currentCrate="serde";</script><scriptsrc="../../aliases.js"></script><scriptsrc="../../main.js"></script><scriptdefersrc="../../search-index.js"></script></body></html>