50 lines
52 KiB
HTML
50 lines
52 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="An opaque enum of the values that this crate knows how to format, along with some formatting metadata."><title>PanicVal in const_panic - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="const_panic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../const_panic/index.html">const_<wbr>panic</a><span class="version">0.2.10</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Panic<wbr>Val</a></h2><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.EMPTY" title="EMPTY">EMPTY</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.from_bool" title="from_bool">from_bool</a></li><li><a href="#method.from_char" title="from_char">from_char</a></li><li><a href="#method.from_i128" title="from_i128">from_i128</a></li><li><a href="#method.from_i16" title="from_i16">from_i16</a></li><li><a href="#method.from_i32" title="from_i32">from_i32</a></li><li><a href="#method.from_i64" title="from_i64">from_i64</a></li><li><a href="#method.from_i8" title="from_i8">from_i8</a></li><li><a href="#method.from_isize" title="from_isize">from_isize</a></li><li><a href="#method.from_str" title="from_str">from_str</a></li><li><a href="#method.from_u128" title="from_u128">from_u128</a></li><li><a href="#method.from_u16" title="from_u16">from_u16</a></li><li><a href="#method.from_u32" title="from_u32">from_u32</a></li><li><a href="#method.from_u64" title="from_u64">from_u64</a></li><li><a href="#method.from_u8" title="from_u8">from_u8</a></li><li><a href="#method.from_usize" title="from_usize">from_usize</a></li><li><a href="#method.leftpad" title="leftpad">leftpad</a></li><li><a href="#method.rightpad" title="rightpad">rightpad</a></li><li><a href="#method.to_panicval" title="to_panicval">to_panicval</a></li><li><a href="#method.to_panicvals" title="to_panicvals">to_panicvals</a></li><li><a href="#method.with_leftpad" title="with_leftpad">with_leftpad</a></li><li><a href="#method.with_rightpad" title="with_rightpad">with_rightpad</a></li><li><a href="#method.write_str" title="write_str">write_str</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-PanicVal%3C'a%3E" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-PanicVal%3C'a%3E" title="Copy">Copy</a></li><li><a href="#impl-PanicFmt-for-PanicVal%3C'_%3E" title="PanicFmt">PanicFmt</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-PanicVal%3C'a%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-PanicVal%3C'a%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-PanicVal%3C'a%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-PanicVal%3C'a%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-PanicVal%3C'a%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-PanicVal%3C'a%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate const_<wbr>panic</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">const_panic</a></span><h1>Struct <span class="struct">PanicVal</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/const_panic/panic_val.rs.html#24-26">Source</a> </span></div><pre class="rust item-decl"><code>pub struct PanicVal<'a> { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An opaque enum of the values that this crate knows how to format,
|
|
along with some formatting metadata.</p>
|
|
<p>This has constructor functions to make a <code>PanicVal</code> from:</p>
|
|
<ul>
|
|
<li><code>bool</code></li>
|
|
<li>Integers</li>
|
|
<li><code>&str</code></li>
|
|
<li>Arrays/Slices of primitives (with the “non_basic” feature, enabled by default)</li>
|
|
<li><a href="crate::fmt::ShortString"><code>ShortString</code></a>
|
|
(with the “non_basic” feature, enabled by default)</li>
|
|
</ul>
|
|
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E" class="impl"><a class="src rightside" href="../src/const_panic/fmt/char_formatting.rs.html#13-35">Source</a><a href="#impl-PanicVal%3C'_%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_char" class="method"><a class="src rightside" href="../src/const_panic/fmt/char_formatting.rs.html#15-34">Source</a><h4 class="code-header">pub const fn <a href="#method.from_char" class="fn">from_char</a>(c: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a>, fmtarg: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> Self</h4></section></summary><div class="docblock"><p>Constructs a <code>PanicVal</code> from a <code>char</code>.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'a%3E" class="impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#69-95">Source</a><a href="#impl-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.EMPTY" class="associatedconstant"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#71">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.EMPTY" class="constant">EMPTY</a>: Self = _</h4></section></summary><div class="docblock"><p>A <code>PanicVal</code> that formats to nothing.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.leftpad" class="method"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#74-83">Source</a><h4 class="code-header">pub const fn <a href="#method.leftpad" class="fn">leftpad</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h4></section></summary><div class="docblock"><p>How many spaces are printed before this</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.rightpad" class="method"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#85-94">Source</a><h4 class="code-header">pub const fn <a href="#method.rightpad" class="fn">rightpad</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h4></section></summary><div class="docblock"><p>How many spaces are printed after this</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'a%3E-1" class="impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#118-273">Source</a><a href="#impl-PanicVal%3C'a%3E-1" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_leftpad" class="method"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#122-124">Source</a><h4 class="code-header">pub const fn <a href="#method.with_leftpad" class="fn">with_leftpad</a>(self, fmtarg: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> Self</h4></section></summary><div class="docblock"><p>Sets the amount of spaces printed before this to <code>fmtarg.indentation</code>.</p>
|
|
<p>Note that only strings can be padded.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_rightpad" class="method"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#129-131">Source</a><h4 class="code-header">pub const fn <a href="#method.with_rightpad" class="fn">with_rightpad</a>(self, fmtarg: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> Self</h4></section></summary><div class="docblock"><p>Sets the amount of spaces printed after this to <code>fmtarg.indentation</code>.</p>
|
|
<p>Note that only strings can be padded.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_str" class="method"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#136-140">Source</a><h4 class="code-header">pub const fn <a href="#method.write_str" class="fn">write_str</a>(string: &'a <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self</h4></section></summary><div class="docblock"><p>Constructs a PanicVal which outputs the contents of <code>string</code> verbatim.</p>
|
|
<p>Equivalent to <code>PanicVal::from_str(string, FmtArg::DISPLAY)</code></p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'a%3E-2" class="impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#370-379">Source</a><a href="#impl-PanicVal%3C'a%3E-2" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_panicvals" class="method"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#372-374">Source</a><h4 class="code-header">pub const fn <a href="#method.to_panicvals" class="fn">to_panicvals</a>(&self, _: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> [<a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">1</a>]</h4></section></summary><div class="docblock"><p>Wraps this <code>PanicVal</code> in a single-element array.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_panicval" class="method"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#376-378">Source</a><h4 class="code-header">pub const fn <a href="#method.to_panicval" class="fn">to_panicval</a>(&self, _: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h4></section></summary><div class="docblock"><p>Returns a copy of this <code>PanicVal</code>.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-1" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#120">Source</a><a href="#impl-PanicVal%3C'_%3E-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_u8" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#120">Source</a><h4 class="code-header">pub const fn <a href="#method.from_u8" class="fn">from_u8</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-2" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#121">Source</a><a href="#impl-PanicVal%3C'_%3E-2" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_u16" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#121">Source</a><h4 class="code-header">pub const fn <a href="#method.from_u16" class="fn">from_u16</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-3" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#122">Source</a><a href="#impl-PanicVal%3C'_%3E-3" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_u32" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#122">Source</a><h4 class="code-header">pub const fn <a href="#method.from_u32" class="fn">from_u32</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-4" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#123">Source</a><a href="#impl-PanicVal%3C'_%3E-4" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_u64" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#123">Source</a><h4 class="code-header">pub const fn <a href="#method.from_u64" class="fn">from_u64</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-5" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#124">Source</a><a href="#impl-PanicVal%3C'_%3E-5" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_u128" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#124">Source</a><h4 class="code-header">pub const fn <a href="#method.from_u128" class="fn">from_u128</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-6" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#125">Source</a><a href="#impl-PanicVal%3C'_%3E-6" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_usize" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#125">Source</a><h4 class="code-header">pub const fn <a href="#method.from_usize" class="fn">from_usize</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-7" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#127">Source</a><a href="#impl-PanicVal%3C'_%3E-7" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_i8" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#127">Source</a><h4 class="code-header">pub const fn <a href="#method.from_i8" class="fn">from_i8</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-8" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#128">Source</a><a href="#impl-PanicVal%3C'_%3E-8" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_i16" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#128">Source</a><h4 class="code-header">pub const fn <a href="#method.from_i16" class="fn">from_i16</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-9" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#129">Source</a><a href="#impl-PanicVal%3C'_%3E-9" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_i32" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#129">Source</a><h4 class="code-header">pub const fn <a href="#method.from_i32" class="fn">from_i32</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-10" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#130">Source</a><a href="#impl-PanicVal%3C'_%3E-10" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_i64" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#130">Source</a><h4 class="code-header">pub const fn <a href="#method.from_i64" class="fn">from_i64</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-11" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#131">Source</a><a href="#impl-PanicVal%3C'_%3E-11" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_i128" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#131">Source</a><h4 class="code-header">pub const fn <a href="#method.from_i128" class="fn">from_i128</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-12" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#132">Source</a><a href="#impl-PanicVal%3C'_%3E-12" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_isize" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#132">Source</a><h4 class="code-header">pub const fn <a href="#method.from_isize" class="fn">from_isize</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html">isize</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs this <code>PanicVal</code> from an integer.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'_%3E-13" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#134-138">Source</a><a href="#impl-PanicVal%3C'_%3E-13" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_bool" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#134-138">Source</a><h4 class="code-header">pub const fn <a href="#method.from_bool" class="fn">from_bool</a>(this: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>, _f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'static></h4></section></summary><div class="docblock"><p>Constructs a <code>PanicVal</code> from a <code>bool</code> .</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicVal%3C'a%3E-3" class="impl"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#140-145">Source</a><a href="#impl-PanicVal%3C'a%3E-3" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_str" class="method"><a class="src rightside" href="../src/const_panic/fmt_impls/basic_fmt_impls.rs.html#142-144">Source</a><h4 class="code-header">pub const fn <a href="#method.from_str" class="fn">from_str</a>(this: &'a <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>, f: <a class="struct" href="fmt/struct.FmtArg.html" title="struct const_panic::fmt::FmtArg">FmtArg</a>) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h4></section></summary><div class="docblock"><p>Constructs a <code>PanicVal</code> from a <code>&str</code></p>
|
|
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-PanicVal%3C'a%3E" class="impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#23">Source</a><a href="#impl-Clone-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#23">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PanicFmt-for-PanicVal%3C'_%3E" class="impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#363-368">Source</a><a href="#impl-PanicFmt-for-PanicVal%3C'_%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="fmt/trait.PanicFmt.html" title="trait const_panic::fmt::PanicFmt">PanicFmt</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.PV_COUNT" class="associatedconstant trait-impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#367">Source</a><a href="#associatedconstant.PV_COUNT" class="anchor">§</a><h4 class="code-header">const <a href="fmt/trait.PanicFmt.html#associatedconstant.PV_COUNT" class="constant">PV_COUNT</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a> = 1usize</h4></section></summary><div class='docblock'>The length of the array returned in <code>Self::to_panicvals</code>
|
|
(an inherent method that formats the type for panic messages).</div></details><details class="toggle" open><summary><section id="associatedtype.This" class="associatedtype trait-impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#364">Source</a><a href="#associatedtype.This" class="anchor">§</a><h4 class="code-header">type <a href="fmt/trait.PanicFmt.html#associatedtype.This" class="associatedtype">This</a> = <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'_></h4></section></summary><div class='docblock'>The type after dereferencing all references. <a href="fmt/trait.PanicFmt.html#associatedtype.This">Read more</a></div></details><details class="toggle" open><summary><section id="associatedtype.Kind" class="associatedtype trait-impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#365">Source</a><a href="#associatedtype.Kind" class="anchor">§</a><h4 class="code-header">type <a href="fmt/trait.PanicFmt.html#associatedtype.Kind" class="associatedtype">Kind</a> = <a class="struct" href="fmt/struct.IsCustomType.html" title="struct const_panic::fmt::IsCustomType">IsCustomType</a></h4></section></summary><div class='docblock'>Whether this is a user-defined type or standard library type. <a href="fmt/trait.PanicFmt.html#associatedtype.Kind">Read more</a></div></details><details class="toggle" open><summary><section id="associatedconstant.PROOF" class="associatedconstant trait-impl"><a class="src rightside" href="../src/const_panic/fmt.rs.html#132">Source</a><a href="#associatedconstant.PROOF" class="anchor">§</a><h4 class="code-header">const <a href="fmt/trait.PanicFmt.html#associatedconstant.PROOF" class="constant">PROOF</a>: <a class="struct" href="fmt/struct.IsPanicFmt.html" title="struct const_panic::fmt::IsPanicFmt">IsPanicFmt</a><Self, Self::<a class="associatedtype" href="fmt/trait.PanicFmt.html#associatedtype.This" title="type const_panic::fmt::PanicFmt::This">This</a>, Self::<a class="associatedtype" href="fmt/trait.PanicFmt.html#associatedtype.Kind" title="type const_panic::fmt::PanicFmt::Kind">Kind</a>> = IsPanicFmt::NEW</h4></section></summary><div class='docblock'>A marker type that proves that <code>Self</code> implements <code>PanicFmt</code>. <a href="fmt/trait.PanicFmt.html#associatedconstant.PROOF">Read more</a></div></details></div></details><section id="impl-Copy-for-PanicVal%3C'a%3E" class="impl"><a class="src rightside" href="../src/const_panic/panic_val.rs.html#23">Source</a><a href="#impl-Copy-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-PanicVal%3C'a%3E" class="impl"><a href="#impl-Freeze-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section><section id="impl-RefUnwindSafe-for-PanicVal%3C'a%3E" class="impl"><a href="#impl-RefUnwindSafe-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section><section id="impl-Send-for-PanicVal%3C'a%3E" class="impl"><a href="#impl-Send-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section><section id="impl-Sync-for-PanicVal%3C'a%3E" class="impl"><a href="#impl-Sync-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section><section id="impl-Unpin-for-PanicVal%3C'a%3E" class="impl"><a href="#impl-Unpin-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section><section id="impl-UnwindSafe-for-PanicVal%3C'a%3E" class="impl"><a href="#impl-UnwindSafe-for-PanicVal%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.PanicVal.html" title="struct const_panic::PanicVal">PanicVal</a><'a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
|
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
|
<p>That is, this conversion is whatever the implementation of
|
|
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html> |