}</code></pre></div><detailsclass="rustdoc-toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Options controlling the traffic simulation.</p>
</div></details><h2id="fields"class="fields small-section-header">Fields<ahref="#fields"class="anchor"></a></h2><spanid="structfield.run_name"class="structfield small-section-header"><ahref="#structfield.run_name"class="anchor field"></a><code>run_name: <aclass="struct"href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></code></span><divclass="docblock"><p>Used to distinguish savestates for running the same scenario.</p>
</div><spanid="structfield.use_freeform_policy_everywhere"class="structfield small-section-header"><ahref="#structfield.use_freeform_policy_everywhere"class="anchor field"></a><code>use_freeform_policy_everywhere: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Ignore all stop signs and traffic signals, instead using a “freeform” policy to control
</div><spanid="structfield.allow_block_the_box"class="structfield small-section-header"><ahref="#structfield.allow_block_the_box"class="anchor field"></a><code>allow_block_the_box: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Allow a vehicle to start a turn, even if their target lane is already full. This may mean
they’ll get stuck blocking the intersection.</p>
</div><spanid="structfield.dont_recalc_lanechanging"class="structfield small-section-header"><ahref="#structfield.dont_recalc_lanechanging"class="anchor field"></a><code>dont_recalc_lanechanging: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Normally as a vehicle follows a route, it opportunistically make small changes to use a different lane,
based on some score of “least-loaded” lane. Disable this default behavior.</p>
</div><spanid="structfield.dont_break_turn_conflict_cycles"class="structfield small-section-header"><ahref="#structfield.dont_break_turn_conflict_cycles"class="anchor field"></a><code>dont_break_turn_conflict_cycles: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Normally if a cycle of vehicles depending on each other to turn is detected, temporarily allow
“blocking the box” to try to break gridlock. Disable this default behavior.</p>
</div><spanid="structfield.dont_handle_uber_turns"class="structfield small-section-header"><ahref="#structfield.dont_handle_uber_turns"class="anchor field"></a><code>dont_handle_uber_turns: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Disable experimental handling for “uber-turns”, sequences of turns through complex
</div><spanid="structfield.enable_pandemic_model"class="structfield small-section-header"><ahref="#structfield.enable_pandemic_model"class="anchor field"></a><code>enable_pandemic_model: <aclass="enum"href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html"title="struct rand_xorshift::XorShiftRng">XorShiftRng</a>></code></span><divclass="docblock"><p>Enable an experimental SEIR pandemic model. This requires an RNG seed, which can be the
same or different from the one used for the rest of the simulation.</p>
</div><spanid="structfield.alerts"class="structfield small-section-header"><ahref="#structfield.alerts"class="anchor field"></a><code>alerts: <aclass="enum"href="sim/enum.AlertHandler.html"title="enum sim::sim::AlertHandler">AlertHandler</a></code></span><divclass="docblock"><p>When a warning is encountered during simulation, specifies how to respond.</p>
</div><spanid="structfield.infinite_parking"class="structfield small-section-header"><ahref="#structfield.infinite_parking"class="anchor field"></a><code>infinite_parking: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Ignore parking data in the map and instead treat every building as if it has unlimited
</div><spanid="structfield.disable_turn_conflicts"class="structfield small-section-header"><ahref="#structfield.disable_turn_conflicts"class="anchor field"></a><code>disable_turn_conflicts: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Allow all agents to immediately proceed into an intersection, even if they’d hit another
</div><spanid="structfield.skip_analytics"class="structfield small-section-header"><ahref="#structfield.skip_analytics"class="anchor field"></a><code>skip_analytics: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></code></span><divclass="docblock"><p>Don’t collect any analytics. Only useful for benchmarking and debugging gridlock more
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-Default"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="../src/sim/sim/mod.rs.html#178-182"title="goto source code">[src]</a></div><ahref="#impl-Default"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html"title="trait core::default::Default">Default</a> for <aclass="struct"href="sim/struct.SimOptions.html"title="struct sim::sim::SimOptions">SimOptions</a></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.default"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="../src/sim/sim/mod.rs.html#179-181"title="goto source code">[src]</a></div><ahref="#method.default"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html#tymethod.default"class="fnname">default</a>() -><aclass="struct"href="sim/struct.SimOptions.html"title="struct sim::sim::SimOptions">SimOptions</a></h4></div></summary><divclass='docblock'><p>Returns the “default value” for a type. <ahref="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-StructOpt"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="../src/sim/sim/mod.rs.html#78"title="goto source code">[src]</a></div><ahref="#impl-StructOpt"class="anchor"></a><h3class="code-header in-band">impl StructOpt for <aclass="struct"href="sim/struct.SimOptions.html"title="struct sim::sim::SimOptions">SimOptions</a></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.clap"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="../src/sim/sim/mod.rs.html#78"title="goto source code">[src]</a></div><ahref="#method.clap"class="anchor"></a><h4class="code-header">fn <aclass="fnname">clap</a><'a, 'b>() -><aclass="struct"href="https://docs.rs/clap/2.33.3/clap/app/struct.App.html"title="struct clap::app::App">App</a><'a, 'b></h4></div></summary><divclass='docblock'><p>Returns <ahref="https://docs.rs/clap/2.33.3/clap/app/struct.App.html"title="clap::App"><code>clap::App</code></a> corresponding to the struct.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.from_clap"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="../src/sim/sim/mod.rs.html#78"title="goto source code">[src]</a></div><ahref="#method.from_clap"class="anchor"></a><h4class="code-header">fn <aclass="fnname">from_clap</a>(matches: &<aclass="struct"href="https://docs.rs/clap/2.33.3/clap/args/arg_matches/struct.ArgMatches.html"title="struct clap::args::arg_matches::ArgMatches">ArgMatches</a><'_>) -> Self</h4></div></summary><divclass='docblock'><p>Builds the struct from <ahref="https://docs.rs/clap/2.33.3/clap/args/arg_matches/struct.ArgMatches.html"title="clap::ArgMatches"><code>clap::ArgMatches</code></a>. It’s guaranteed to succeed
if <code>matches</code> originates from an <code>App</code> generated by [<code>StructOpt::clap</code>] called on
the same type, otherwise it must panic. <ahref="#tymethod.from_clap">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.from_args-1"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.from_args-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.from_args"class="fnname">from_args</a>() -> Self</h4></div></summary><divclass='docblock'><p>Builds the struct from the command line arguments (<ahref="https://doc.rust-lang.org/1.56.0/std/env/fn.args_os.html"title="std::env::args_os"><code>std::env::args_os</code></a>).
Calls <ahref="https://docs.rs/clap/2.33.3/clap/errors/struct.Error.html#method.exit"title="clap::Error::exit"><code>clap::Error::exit</code></a> on failure, printing the error message and aborting the program. <ahref="#method.from_args">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.from_args_safe"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.from_args_safe"class="anchor"></a><h4class="code-header">fn <ahref="#method.from_args_safe"class="fnname">from_args_safe</a>() -><aclass="enum"href="https://doc.rust-lang.org/1.56.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, <aclass="struct"href="https://docs.rs/clap/2.33.3/clap/errors/struct.Error.html"title="struct clap::errors::Error">Error</a>></h4></div></summary><divclass='docblock'><p>Builds the struct from the command line arguments (<ahref="https://doc.rust-lang.org/1.56.0/std/env/fn.args_os.html"title="std::env::args_os"><code>std::env::args_os</code></a>).
Unlike [<code>StructOpt::from_args</code>], returns <ahref="https://docs.rs/clap/2.33.3/clap/errors/struct.Error.html"title="clap::Error"><code>clap::Error</code></a> on failure instead of aborting the program,
so calling <ahref="https://docs.rs/clap/2.33.3/clap/errors/struct.Error.html#method.exit"title="clap::Error::exit"><code>.exit</code></a> is up to you. <ahref="#method.from_args_safe">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.from_iter"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.from_iter"class="anchor"></a><h4class="code-header">fn <ahref="#method.from_iter"class="fnname">from_iter</a><I>(iter: I) -> Self <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br> <I as <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<aclass="type"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://doc.rust-lang.org/1.56.0/std/ffi/os_str/struct.OsString.html"title="struct std::ffi::os_str::OsString">OsString</a>>,<br> <I as <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<aclass="type"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></h4></div></summary><divclass='docblock'><p>Gets the struct from any iterator such as a <code>Vec</code> of your making.
Print the error message and quit the program in case of failure. <ahref="#method.from_iter">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.from_iter_safe"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.from_iter_safe"class="anchor"></a><h4class="code-header">fn <ahref="#method.from_iter_safe"class="fnname">from_iter_safe</a><I>(iter: I) -><aclass="enum"href="https://doc.rust-lang.org/1.56.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, <aclass="struct"href="https://docs.rs/clap/2.33.3/clap/errors/struct.Error.html"title="struct clap::errors::Error">Error</a>><spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br> <I as <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<aclass="type"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://doc.rust-lang.org/1.56.0/std/ffi/os_str/struct.OsString.html"title="struct std::ffi::os_str::OsString">OsString</a>>,<br> <I as <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<aclass="type"href="https://doc.rust-lang.org/1.56.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></h4></div></summary><divclass='docblock'><p>Gets the struct from any iterator such as a <code>Vec</code> of your making. <ahref="#method.from_iter_safe">Read more</a></p>
then be further <code>downcast</code> into <code>Box<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any">Read more</a></p>
further <code>downcast</code> into <code>Rc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any_rc">Read more</a></p>
further <code>downcast</code> into <code>Arc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any_arc">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-Instrument"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.26/src/tracing/instrument.rs.html#155"title="goto source code">[src]</a></div><ahref="#impl-Instrument"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.26/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.instrument"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.26/src/tracing/instrument.rs.html#38"title="goto source code">[src]</a></div><ahref="#method.instrument"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.26/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.26/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.26/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></div></summary><divclass='docblock'><p>Instruments this type with the provided <code>Span</code>, returning an
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.in_current_span"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.26/src/tracing/instrument.rs.html#74"title="goto source code">[src]</a></div><ahref="#method.in_current_span"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.26/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fnname">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.26/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></div></summary><divclass='docblock'><p>Instruments this type with the <ahref="../struct.Span.html#method.current">current</a><code>Span</code>, returning an
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-ToOwned"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.0/src/alloc/borrow.rs.html#84-96"title="goto source code">[src]</a></div><ahref="#impl-ToOwned"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.56.0/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Owned"class="type trait-impl has-srclink"><ahref="#associatedtype.Owned"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.56.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="type">Owned</a> = T</h4></div></summary><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.to_owned"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.0/src/alloc/borrow.rs.html#89"title="goto source code">[src]</a></div><ahref="#method.to_owned"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fnname">to_owned</a>(&self) -> T</h4></div></summary><divclass='docblock'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/1.56.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.clone_into"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.0/src/alloc/borrow.rs.html#93"title="goto source code">[src]</a></div><ahref="#method.clone_into"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.0/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fnname">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>T)</h4></div></summary><divclass="item-info"><divclass="stab unstable"><details><summary><spanclass="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/1.56.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryFrom%3CU%3E"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.0/src/core/convert/mod.rs.html#583-592"title="goto source code">[src]</a></div><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.56.0/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/1.56.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Error"class="type trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.56.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></div></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_from"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.0/src/core/convert/mod.rs.html#589"title="goto source code">[src]</a></div><ahref="#method.try_from"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.56.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryInto%3CU%3E"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.0/src/core/convert/mod.rs.html#569-578"title="goto source code">[src]</a></div><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.56.0/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/1.56.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Error-1"class="type trait-impl has-srclink"><ahref="#associatedtype.Error-1"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryInto.html#associatedtype.Error"class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></div></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_into"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.56.0/src/core/convert/mod.rs.html#575"title="goto source code">[src]</a></div><ahref="#method.try_into"class="anchor"></a><h4class="code-header">pub fn <ahref="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.56.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/1.56.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><divclass='docblock'><p>Performs the conversion.</p>