mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-12-30 05:01:44 +00:00
19 lines
19 KiB
HTML
19 lines
19 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="The return value of `str_splice`"><title>SplicedStr in const_format - 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-46132b98.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="const_format" data-themes="" data-resource-suffix="" data-rustdoc-version="1.86.0-nightly (8361aef0d 2025-01-14)" data-channel="nightly" data-search-js="search-75f5ac3e.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_format/index.html">const_<wbr>format</a><span class="version">0.2.34</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Spliced<wbr>Str</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.output" title="output">output</a></li><li><a href="#structfield.removed" title="removed">removed</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-SplicedStr" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-SplicedStr" title="Copy">Copy</a></li><li><a href="#impl-Debug-for-SplicedStr" title="Debug">Debug</a></li><li><a href="#impl-Eq-for-SplicedStr" title="Eq">Eq</a></li><li><a href="#impl-PartialEq-for-SplicedStr" title="PartialEq">PartialEq</a></li><li><a href="#impl-StructuralPartialEq-for-SplicedStr" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-SplicedStr" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-SplicedStr" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-SplicedStr" title="Send">Send</a></li><li><a href="#impl-Sync-for-SplicedStr" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-SplicedStr" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-SplicedStr" 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>format</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_format</a></span><h1>Struct <span class="struct">SplicedStr</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_format/__str_methods/str_splice.rs.html#31-36">Source</a> </span></div><pre class="rust item-decl"><code>pub struct SplicedStr {
|
|
pub output: &'static str,
|
|
pub removed: &'static str,
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The return value of <a href="./macro.str_splice.html"><code>str_splice</code></a></p>
|
|
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.output" class="structfield section-header"><a href="#structfield.output" class="anchor field">§</a><code>output: &'static str</code></span><div class="docblock"><p>A string that had <code>removed</code> replaced with some other string.</p>
|
|
</div><span id="structfield.removed" class="structfield section-header"><a href="#structfield.removed" class="anchor field">§</a><code>removed: &'static str</code></span><div class="docblock"><p>The part of the string that was removed.</p>
|
|
</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-SplicedStr" class="impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#impl-Clone-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Clone for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</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_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a class="fn">clone</a>(&self) -> <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-SplicedStr" class="impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#impl-Debug-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Debug for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-SplicedStr" class="impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#impl-PartialEq-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl PartialEq for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a class="fn">eq</a>(&self, other: &<a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a>) -> bool</h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a class="fn">ne</a>(&self, other: &Rhs) -> bool</h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
|
and should not be overridden without very good reason.</div></details></div></details><section id="impl-Copy-for-SplicedStr" class="impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#impl-Copy-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Copy for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section><section id="impl-Eq-for-SplicedStr" class="impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#impl-Eq-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Eq for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section><section id="impl-StructuralPartialEq-for-SplicedStr" class="impl"><a class="src rightside" href="../src/const_format/__str_methods/str_splice.rs.html#30">Source</a><a href="#impl-StructuralPartialEq-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl StructuralPartialEq for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</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-SplicedStr" class="impl"><a href="#impl-Freeze-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Freeze for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section><section id="impl-RefUnwindSafe-for-SplicedStr" class="impl"><a href="#impl-RefUnwindSafe-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl RefUnwindSafe for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section><section id="impl-Send-for-SplicedStr" class="impl"><a href="#impl-Send-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Send for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section><section id="impl-Sync-for-SplicedStr" class="impl"><a href="#impl-Sync-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Sync for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section><section id="impl-Unpin-for-SplicedStr" class="impl"><a href="#impl-Unpin-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl Unpin for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</a></h3></section><section id="impl-UnwindSafe-for-SplicedStr" class="impl"><a href="#impl-UnwindSafe-for-SplicedStr" class="anchor">§</a><h3 class="code-header">impl UnwindSafe for <a class="struct" href="struct.SplicedStr.html" title="struct const_format::SplicedStr">SplicedStr</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 href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Any for T<div class="where">where
|
|
T: 'static + ?Sized,</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 href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a class="fn">type_id</a>(&self) -> TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Borrow<T> for T<div class="where">where
|
|
T: ?Sized,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a class="fn">borrow</a>(&self) -> &T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> BorrowMut<T> for T<div class="where">where
|
|
T: ?Sized,</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 href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">borrow_mut</a>(&mut self) -> &mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> CloneToUninit for T<div class="where">where
|
|
T: Clone,</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 href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">clone_to_uninit</a>(&self, dst: *mut u8)</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>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> From<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 href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a 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 href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> Into<U> for T<div class="where">where
|
|
U: From<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 href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a 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>[From]<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 href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> TryFrom<U> for T<div class="where">where
|
|
U: Into<T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</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 href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></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 href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> TryInto<U> for T<div class="where">where
|
|
U: TryFrom<T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = <U as TryFrom<T>>::Error</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 href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html> |