<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Make a parser that is usable with `parse_macro_input!` in a `#[proc_macro_attribute]` macro."><title>parser in syn::meta - 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><linkrel="stylesheet"href="../../static.files/normalize-9960930a.css"><linkrel="stylesheet"href="../../static.files/rustdoc-46132b98.css"><metaname="rustdoc-vars"data-root-path="../../"data-static-root-path="../../static.files/"data-current-crate="syn"data-themes=""data-resource-suffix=""data-rustdoc-version="1.85.1 (4eb161250 2025-03-15)"data-channel="1.85.1"data-search-js="search-75f5ac3e.js"data-settings-js="settings-0f613d39.js"><scriptsrc="../../static.files/storage-59e33391.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../static.files/main-5f194d8c.js"></script><noscript><linkrel="stylesheet"href="../../static.files/noscript-893ab5e7.css"></noscript><linkrel="alternate icon"type="image/png"href="../../static.files/favicon-32x32-6580c154.png"><linkrel="icon"type="image/svg+xml"href="../../static.files/favicon-044be391.svg"></head><bodyclass="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle"title="show sidebar"></button></nav><navclass="sidebar"><divclass="sidebar-crate"><h2><ahref="../../syn/index.html">syn</a><spanclass="version">2.0.100</span></h2></div><divclass="sidebar-elems"><sectionid="rustdoc-toc"><h2class="location"><ahref="#">parser</a></h2><h3><ahref="#">Sections</a></h3><ulclass="block top-toc"><li><ahref="#example"title="Example">Example</a></li><li><ahref="#example-1"title="Example">Example</a></li></ul></section><divid="rustdoc-modnav"><h2><ahref="index.html">In syn::<wbr>meta</a></h2></div></div></nav><divclass="sidebar-resizer"></div><main><divclass="width-limiter"><rustdoc-search></rustdoc-search><sectionid="main-content"class="content"><divclass="main-heading"><spanclass="rustdoc-breadcrumbs"><ahref="../index.html">syn</a>::<wbr><ahref="index.html">meta</a></span><h1>Function <spanclass="fn">parser</span><buttonid="copy-path"title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><spanclass="sub-heading"><aclass="src"href="../../src/syn/meta.rs.html#132-140">Source</a></span></div><preclass="rust item-decl"><code>pub fn parser(
) -> impl <aclass="trait"href="../parse/trait.Parser.html"title="trait syn::parse::Parser">Parser</a><Output = <aclass="primitive"href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>></code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Make a parser that is usable with <code>parse_macro_input!</code> in a
<code>#[proc_macro_attribute]</code> macro.</p>
<p><em>Warning:</em> When parsing attribute args <strong>other than</strong> the
<code>proc_macro::TokenStream</code> input of a <code>proc_macro_attribute</code>, you do <strong>not</strong>
need this function. In several cases your callers will get worse error
messages if you use this function, because the surrounding delimiter’s span
<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Facility for interpreting structured content inside of an `Attribute`."><title>syn::meta - 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><linkrel="stylesheet"href="../../static.files/normalize-9960930a.css"><linkrel="stylesheet"href="../../static.files/rustdoc-46132b98.css"><metaname="rustdoc-vars"data-root-path="../../"data-static-root-path="../../static.files/"data-current-crate="syn"data-themes=""data-resource-suffix=""data-rustdoc-version="1.85.1 (4eb161250 2025-03-15)"data-channel="1.85.1"data-search-js="search-75f5ac3e.js"data-settings-js="settings-0f613d39.js"><scriptsrc="../../static.files/storage-59e33391.js"></script><scriptdefersrc="../sidebar-items.js"></script><scriptdefersrc="../../static.files/main-5f194d8c.js"></script><noscript><linkrel="stylesheet"href="../../static.files/noscript-893ab5e7.css"></noscript><linkrel="alternate icon"type="image/png"href="../../static.files/favicon-32x32-6580c154.png"><linkrel="icon"type="image/svg+xml"href="../../static.files/favicon-044be391.svg"></head><bodyclass="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle"title="show sidebar"></button></nav><navclass="sidebar"><divclass="sidebar-crate"><h2><ahref="../../syn/index.html">syn</a><spanclass="version">2.0.100</span></h2></div><divclass="sidebar-elems"><sectionid="rustdoc-toc"><h2class="location"><ahref="#">Module meta</a></h2><h3><ahref="#structs">Module Items</a></h3><ulclass="block"><li><ahref="#structs"title="Structs">Structs</a></li><li><ahref="#functions"title="Functions">Functions</a></li></ul></section><divid="rustdoc-modnav"><h2class="in-crate"><ahref="../index.html">In crate syn</a></h2></div></div></nav><divclass="sidebar-resizer"></div><main><divclass="width-limiter"><rustdoc-search></rustdoc-search><sectionid="main-content"class="content"><divclass="main-heading"><spanclass="rustdoc-breadcrumbs"><ahref="../index.html">syn</a></span><h1>Module <span>meta</span><buttonid="copy-path"title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><spanclass="sub-heading"><aclass="src"href="../../src/syn/meta.rs.html#1-427">Source</a></span></div><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Facility for interpreting structured content inside of an <code>Attribute</code>.</p>
</div></details><h2id="structs"class="section-header">Structs<ahref="#structs"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">Parse<wbr>Nested<wbr>Meta</a></div><divclass="desc docblock-short">Context for parsing a single property in the conventional syntax for
structured attributes.</div></li></ul><h2id="functions"class="section-header">Functions<ahref="#functions"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="fn"href="fn.parser.html"title="fn syn::meta::parser">parser</a></div><divclass="desc docblock-short">Make a parser that is usable with <code>parse_macro_input!</code> in a
<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Context for parsing a single property in the conventional syntax for structured attributes."><title>ParseNestedMeta in syn::meta - 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><linkrel="stylesheet"href="../../static.files/normalize-9960930a.css"><linkrel="stylesheet"href="../../static.files/rustdoc-46132b98.css"><metaname="rustdoc-vars"data-root-path="../../"data-static-root-path="../../static.files/"data-current-crate="syn"data-themes=""data-resource-suffix=""data-rustdoc-version="1.85.1 (4eb161250 2025-03-15)"data-channel="1.85.1"data-search-js="search-75f5ac3e.js"data-settings-js="settings-0f613d39.js"><scriptsrc="../../static.files/storage-59e33391.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../static.files/main-5f194d8c.js"></script><noscript><linkrel="stylesheet"href="../../static.files/noscript-893ab5e7.css"></noscript><linkrel="alternate icon"type="image/png"href="../../static.files/favicon-32x32-6580c154.png"><linkrel="icon"type="image/svg+xml"href="../../static.files/favicon-044be391.svg"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle"title="show sidebar"></button></nav><navclass="sidebar"><divclass="sidebar-crate"><h2><ahref="../../syn/index.html">syn</a><spanclass="version">2.0.100</span></h2></div><divclass="sidebar-elems"><sectionid="rustdoc-toc"><h2class="location"><ahref="#">Parse<wbr>Nested<wbr>Meta</a></h2><h3><ahref="#">Sections</a></h3><ulclass="block top-toc"><li><ahref="#examples"title="Examples">Examples</a></li></ul><h3><ahref="#fields">Fields</a></h3><ulclass="block structfield"><li><ahref="#structfield.input"title="input">input</a></li><li><ahref="#structfield.path"title="path">path</a></li></ul><h3><ahref="#implementations">Methods</a></h3><ulclass="block method"><li><ahref="#method.error"title="error">error</a></li><li><ahref="#method.parse_nested_meta"title="parse_nested_meta">parse_nested_meta</a></li><li><ahref="#method.value"title="value">value</a></li></ul><h3><ahref="#synthetic-implementations">Auto Trait Implementations</a></h3><ulclass="block synthetic-implementation"><li><ahref="#impl-Send-for-ParseNestedMeta%3C'a%3E"title="!Send">!Send</a></li><li><ahref="#impl-Sync-for-ParseNestedMeta%3C'a%3E"title="!Sync">!Sync</a></li><li><ahref="#impl-Freeze-for-ParseNestedMeta%3C'a%3E"title="Freeze">Freeze</a></li><li><ahref="#impl-RefUnwindSafe-for-ParseNestedMeta%3C'a%3E"title="RefUnwindSafe">RefUnwindSafe</a></li><li><ahref="#impl-Unpin-for-ParseNestedMeta%3C'a%3E"title="Unpin">Unpin</a></li><li><ahref="#impl-UnwindSafe-for-ParseNestedMeta%3C'a%3E"title="UnwindSafe">UnwindSafe</a></li></ul><h3><ahref="#blanket-implementations">Blanket Implementations</a></h3><ulclass="block blanket-implementation"><li><ahref="#impl-Any-for-T"title="Any">Any</a></li><li><ahref="#impl-Borrow%3CT%3E-for-T"title="Borrow<T>">Borrow<T></a></li><li><ahref="#impl-BorrowMut%3CT%3E-for-T"title="BorrowMut<T>">BorrowMut<T></a></li><li><ahref="#impl-From%3CT%3E-for-T"title="From<T>">From<T></a></li><li><ahref="#impl-Into%3CU%3E-for-T"title="Into<U>">Into<U></a></li><li><ahref="#impl-TryFrom%3CU%3E-for-T"title="TryFrom<U>">TryFrom<U></a></li><li><ahref="#impl-TryInto%3CU%3E-for-T"title="TryInto<U>">TryInto<U></a></li></ul></section><divid="rustdoc-modnav"><h2><ahref="index.html">In syn::<wbr>meta</a></h2></div></div></nav><divclass="sidebar-resizer"></div><main><divclass="width-limiter"><rustdoc-search></rustdoc-search><sectionid="main-content"class="content"><divclass="main-heading"><spanclass="rustdoc-breadcrumbs"><ahref="../index.html">syn</a>::<wbr><ahref="index.html">meta</a></span><h1>Struct <spanclass="struct">ParseNestedMeta</span><buttonid="copy-path"title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><spanclass="sub-heading"><aclass="src"href="../../src/syn/meta.rs.html#164-167">Source</a></span></div><preclass="rust item-decl"><code><divclass="code-attribute">#[non_exhaustive]</div>pub struct ParseNestedMeta<'a> {
}</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Context for parsing a single property in the conventional syntax for
<p>Refer to usage examples on the following two entry-points:</p>
<ul>
<li>
<p><ahref="../struct.Attribute.html#method.parse_nested_meta"title="method syn::Attribute::parse_nested_meta"><code>Attribute::parse_nested_meta</code></a> if you have an entire <code>Attribute</code> to
parse. Always use this if possible. Generally this is able to produce
better error messages because <code>Attribute</code> holds span information for all
of the delimiters therein.</p>
</li>
<li>
<p><ahref="fn.parser.html"title="fn syn::meta::parser"><code>syn::meta::parser</code></a> if you are implementing a <code>proc_macro_attribute</code>
macro and parsing the arguments to the attribute macro, i.e. the ones
written in the same attribute that dispatched the macro invocation. Rustc
does not pass span information for the surrounding delimiters into the
attribute macro invocation in this situation, so error messages might be
less precise.</p>
</li>
</ul>
</div></details><h2id="fields"class="fields section-header">Fields (Non-exhaustive)<ahref="#fields"class="anchor">§</a></h2><detailsclass="toggle non-exhaustive"><summaryclass="hideme"><span>This struct is marked as non-exhaustive</span></summary><divclass="docblock">Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional <code>Struct { .. }</code> syntax; cannot be matched against without a wildcard <code>..</code>; and struct update syntax will not work.</div></details><spanid="structfield.path"class="structfield section-header"><ahref="#structfield.path"class="anchor field">§</a><code>path: <aclass="struct"href="../struct.Path.html"title="struct syn::Path">Path</a></code></span><spanid="structfield.input"class="structfield section-header"><ahref="#structfield.input"class="anchor field">§</a><code>input: <aclass="type"href="../parse/type.ParseStream.html"title="type syn::parse::ParseStream">ParseStream</a><'a></code></span><h2id="implementations"class="section-header">Implementations<ahref="#implementations"class="anchor">§</a></h2><divid="implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-ParseNestedMeta%3C'a%3E"class="impl"><aclass="src rightside"href="../../src/syn/meta.rs.html#169-383">Source</a><ahref="#impl-ParseNestedMeta%3C'a%3E"class="anchor">§</a><h3class="code-header">impl<'a><aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">ParseNestedMeta</a><'a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.value"class="method"><aclass="src rightside"href="../../src/syn/meta.rs.html#202-205">Source</a><h4class="code-header">pub fn <ahref="#method.value"class="fn">value</a>(&self) -><aclass="type"href="../type.Result.html"title="type syn::Result">Result</a><<aclass="type"href="../parse/type.ParseStream.html"title="type syn::parse::ParseStream">ParseStream</a><'a>></h4></section></summary><divclass="docblock"><p>Used when parsing <code>key = "value"</code> syntax.</p>
<p>All it does is advance <code>meta.input</code> past the <code>=</code> sign in the input. You
could accomplish the same effect by writing
<code>meta.parse::<Token![=]>()?</code>, so at most it is a minor convenience to
) -><aclass="type"href="../type.Result.html"title="type syn::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.85.1/std/primitive.unit.html">()</a>></h4></section></summary><divclass="docblock"><p>Used when parsing <code>list(...)</code> syntax <strong>if</strong> the content inside the
nested parentheses is also expected to conform to Rust’s structured
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.error"class="method"><aclass="src rightside"href="../../src/syn/meta.rs.html#378-382">Source</a><h4class="code-header">pub fn <ahref="#method.error"class="fn">error</a>(&self, msg: impl <aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a>) -><aclass="struct"href="../struct.Error.html"title="struct syn::Error">Error</a></h4></section></summary><divclass="docblock"><p>Report that the attribute’s content did not conform to expectations.</p>
<p>The span of the resulting error will cover <code>meta.path</code><em>and</em> everything
that has been parsed so far since it.</p>
<p>There are 2 ways you might call this. First, if <code>meta.path</code> is not
</span><spanclass="kw">_ </span>=><spanclass="prelude-val">Err</span>(meta.error(<spanclass="string">"tea kind must be a string literal, path, or macro"</span>)),
}
} <spanclass="kw">else </span><spanclass="comment">/* as above */
</span><spanclass="kw">_ </span>=><spanclass="prelude-val">Err</span>(Error::new_spanned(expr, <spanclass="string">"unsupported expression type for `kind`"</span>)),
}</code></pre></div>
<divclass="example-wrap"><preclass="language-console"><code>error: unsupported expression type for `kind`
--> src/main.rs:3:14
|
3 | #[tea(kind = async { replicator.await })]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^</code></pre></div></div></details></div></details></div><h2id="synthetic-implementations"class="section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor">§</a></h2><divid="synthetic-implementations-list"><sectionid="impl-Freeze-for-ParseNestedMeta%3C'a%3E"class="impl"><ahref="#impl-Freeze-for-ParseNestedMeta%3C'a%3E"class="anchor">§</a><h3class="code-header">impl<'a><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Freeze.html"title="trait core::marker::Freeze">Freeze</a> for <aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">ParseNestedMeta</a><'a></h3></section><sectionid="impl-RefUnwindSafe-for-ParseNestedMeta%3C'a%3E"class="impl"><ahref="#impl-RefUnwindSafe-for-ParseNestedMeta%3C'a%3E"class="anchor">§</a><h3class="code-header">impl<'a><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/panic/unwind_safe/trait.RefUnwindSafe.html"title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">ParseNestedMeta</a><'a></h3></section><sectionid="impl-Send-for-ParseNestedMeta%3C'a%3E"class="impl"><ahref="#impl-Send-for-ParseNestedMeta%3C'a%3E"class="anchor">§</a><h3class="code-header">impl<'a> !<aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">ParseNestedMeta</a><'a></h3></section><sectionid="impl-Sync-for-ParseNestedMeta%3C'a%3E"class="impl"><ahref="#impl-Sync-for-ParseNestedMeta%3C'a%3E"class="anchor">§</a><h3class="code-header">impl<'a> !<aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">ParseNestedMeta</a><'a></h3></section><sectionid="impl-Unpin-for-ParseNestedMeta%3C'a%3E"class="impl"><ahref="#impl-Unpin-for-ParseNestedMeta%3C'a%3E"class="anchor">§</a><h3class="code-header">impl<'a><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a> for <aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">ParseNestedMeta</a><'a></h3></section><sectionid="impl-UnwindSafe-for-ParseNestedMeta%3C'a%3E"class="impl"><ahref="#impl-UnwindSafe-for-ParseNestedMeta%3C'a%3E"class="anchor">§</a><h3class="code-header">impl<'a><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/panic/unwind_safe/trait.UnwindSafe.html"title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <aclass="struct"href="struct.ParseNestedMeta.html"title="struct syn::meta::ParseNestedMeta">ParseNestedMeta</a><'a></h3></section></div><h2id="blanket-implementations"class="section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor">§</a></h2><divid="blanket-implementations-list"><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Any-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/any.rs.html#138">Source</a><ahref="#impl-Any-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T<divclass="where">where
T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/any.rs.html#139">Source</a><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.85.1/core/any/trait.Any.html#tymethod.type_id"class="fn">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.85.1/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/1.85.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#209">Source</a><ahref="#impl-Borrow%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#211">Source</a><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.85.1/core/borrow/trait.Borrow.html#tymethod.borrow"class="fn">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&T</a></h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.85.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#217">Source</a><ahref="#impl-BorrowMut%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/borrow.rs.html#218">Source</a><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.85.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fn">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/1.85.1/std/primitive.reference.html">&mut T</a></h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.85.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#767">Source</a><ahref="#impl-From%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#770">Source</a><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html#tymethod.from"class="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#750-752">Source</a><ahref="#impl-Into%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T<divclass="where">where
<p>That is, this conversion is whatever the implementation of
<code><ahref="https://doc.rust-lang.org/1.85.1/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#807-809">Source</a><ahref="#impl-TryFrom%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#811">Source</a><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.85.1/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#814">Source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#792-794">Source</a><ahref="#impl-TryInto%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#796">Source</a><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.85.1/src/core/convert/mod.rs.html#799">Source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.85.1/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.85.1/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.