rust-analyzer/ide_db/source_change/struct.SourceChangeBuilder.html
2025-12-27 10:35:13 +00:00

72 lines
60 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="API documentation for the Rust `SourceChangeBuilder` struct in crate `ide_db`."><title>SourceChangeBuilder in ide_db::source_change - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ide_db" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0 (ded5c06cf 2025-12-08)" data-channel="1.92.0" data-search-js="search-d69d8955.js" data-stringdex-js="stringdex-c3e638e9.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.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]--><rustdoc-topbar><h2><a href="#">SourceChangeBuilder</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ide_db/index.html">ide_db</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Source<wbr>Change<wbr>Builder</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.command" title="command">command</a></li><li><a href="#structfield.edit" title="edit">edit</a></li><li><a href="#structfield.file_editors" title="file_editors">file_editors</a></li><li><a href="#structfield.file_id" title="file_id">file_id</a></li><li><a href="#structfield.mutated_tree" title="mutated_tree">mutated_tree</a></li><li><a href="#structfield.snippet_annotations" title="snippet_annotations">snippet_annotations</a></li><li><a href="#structfield.snippet_builder" title="snippet_builder">snippet_builder</a></li><li><a href="#structfield.source_change" title="source_change">source_change</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.add_file_edits" title="add_file_edits">add_file_edits</a></li><li><a href="#method.add_placeholder_snippet" title="add_placeholder_snippet">add_placeholder_snippet</a></li><li><a href="#method.add_placeholder_snippet_group" title="add_placeholder_snippet_group">add_placeholder_snippet_group</a></li><li><a href="#method.add_placeholder_snippet_token" title="add_placeholder_snippet_token">add_placeholder_snippet_token</a></li><li><a href="#method.add_tabstop_after" title="add_tabstop_after">add_tabstop_after</a></li><li><a href="#method.add_tabstop_after_token" title="add_tabstop_after_token">add_tabstop_after_token</a></li><li><a href="#method.add_tabstop_before" title="add_tabstop_before">add_tabstop_before</a></li><li><a href="#method.add_tabstop_before_token" title="add_tabstop_before_token">add_tabstop_before_token</a></li><li><a href="#method.create_file" title="create_file">create_file</a></li><li><a href="#method.delete" title="delete">delete</a></li><li><a href="#method.edit_file" title="edit_file">edit_file</a></li><li><a href="#method.finish" title="finish">finish</a></li><li><a href="#method.insert" title="insert">insert</a></li><li><a href="#method.make_editor" title="make_editor">make_editor</a></li><li><a href="#method.make_import_scope_mut" title="make_import_scope_mut">make_import_scope_mut</a></li><li><a href="#method.make_mut" title="make_mut">make_mut</a></li><li><a href="#method.make_placeholder_snippet" title="make_placeholder_snippet">make_placeholder_snippet</a></li><li><a href="#method.make_syntax_mut" title="make_syntax_mut">make_syntax_mut</a></li><li><a href="#method.make_tabstop_after" title="make_tabstop_after">make_tabstop_after</a></li><li><a href="#method.make_tabstop_before" title="make_tabstop_before">make_tabstop_before</a></li><li><a href="#method.move_file" title="move_file">move_file</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.rename" title="rename">rename</a></li><li><a href="#method.replace" title="replace">replace</a></li><li><a href="#method.replace_ast" title="replace_ast">replace_ast</a></li><li><a href="#method.trigger_parameter_hints" title="trigger_parameter_hints">trigger_parameter_hints</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-SourceChangeBuilder" title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send-for-SourceChangeBuilder" title="!Send">!Send</a></li><li><a href="#impl-Sync-for-SourceChangeBuilder" title="!Sync">!Sync</a></li><li><a href="#impl-UnwindSafe-for-SourceChangeBuilder" title="!UnwindSafe">!UnwindSafe</a></li><li><a href="#impl-Freeze-for-SourceChangeBuilder" title="Freeze">Freeze</a></li><li><a href="#impl-Unpin-for-SourceChangeBuilder" title="Unpin">Unpin</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&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-Captures%3C'a%3E-for-T" title="Captures&#60;&#39;a&#62;">Captures&#60;&#39;a&#62;</a></li><li><a href="#impl-CollectAndApply%3CT,+R%3E-for-T" title="CollectAndApply&#60;T, R&#62;">CollectAndApply&#60;T, R&#62;</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-IntoBox%3Cdyn+Any%3E-for-T" title="IntoBox&#60;dyn Any&#62;">IntoBox&#60;dyn Any&#62;</a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-Pointable-for-T" title="Pointable">Pointable</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-Upcast%3CI,+U%3E-for-T" title="Upcast&#60;I, U&#62;">Upcast&#60;I, U&#62;</a></li><li><a href="#impl-UpcastFrom%3CI,+T%3E-for-T" title="UpcastFrom&#60;I, T&#62;">UpcastFrom&#60;I, T&#62;</a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In ide_<wbr>db::<wbr>source_<wbr>change</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">ide_db</a>::<wbr><a href="index.html">source_change</a></div><h1>Struct <span class="struct">Source<wbr>Change<wbr>Builder</span>&nbsp;<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/ide_db/source_change.rs.html#220-235">Source</a> </span></div><pre class="rust item-decl"><code>pub struct SourceChangeBuilder {
pub edit: <a class="struct" href="../text_edit/struct.TextEditBuilder.html" title="struct ide_db::text_edit::TextEditBuilder">TextEditBuilder</a>,
pub file_id: <a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a>,
pub source_change: <a class="struct" href="struct.SourceChange.html" title="struct ide_db::source_change::SourceChange">SourceChange</a>,
pub command: <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../assists/enum.Command.html" title="enum ide_db::assists::Command">Command</a>&gt;,
pub file_editors: <a class="type" href="../type.FxHashMap.html" title="type ide_db::FxHashMap">FxHashMap</a>&lt;<a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a>, SyntaxEditor&gt;,
pub snippet_annotations: <a class="struct" href="https://doc.rust-lang.org/1.92.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="enum" href="enum.AnnotationSnippet.html" title="enum ide_db::source_change::AnnotationSnippet">AnnotationSnippet</a>, SyntaxAnnotation)&gt;,
pub mutated_tree: <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.TreeMutator.html" title="struct ide_db::source_change::TreeMutator">TreeMutator</a>&gt;,
pub snippet_builder: <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SnippetBuilder.html" title="struct ide_db::source_change::SnippetBuilder">SnippetBuilder</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.edit" class="structfield section-header"><a href="#structfield.edit" class="anchor field">§</a><code>edit: <a class="struct" href="../text_edit/struct.TextEditBuilder.html" title="struct ide_db::text_edit::TextEditBuilder">TextEditBuilder</a></code></span><span id="structfield.file_id" class="structfield section-header"><a href="#structfield.file_id" class="anchor field">§</a><code>file_id: <a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a></code></span><span id="structfield.source_change" class="structfield section-header"><a href="#structfield.source_change" class="anchor field">§</a><code>source_change: <a class="struct" href="struct.SourceChange.html" title="struct ide_db::source_change::SourceChange">SourceChange</a></code></span><span id="structfield.command" class="structfield section-header"><a href="#structfield.command" class="anchor field">§</a><code>command: <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../assists/enum.Command.html" title="enum ide_db::assists::Command">Command</a>&gt;</code></span><span id="structfield.file_editors" class="structfield section-header"><a href="#structfield.file_editors" class="anchor field">§</a><code>file_editors: <a class="type" href="../type.FxHashMap.html" title="type ide_db::FxHashMap">FxHashMap</a>&lt;<a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a>, SyntaxEditor&gt;</code></span><div class="docblock"><p>Keeps track of all edits performed on each file</p>
</div><span id="structfield.snippet_annotations" class="structfield section-header"><a href="#structfield.snippet_annotations" class="anchor field">§</a><code>snippet_annotations: <a class="struct" href="https://doc.rust-lang.org/1.92.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="enum" href="enum.AnnotationSnippet.html" title="enum ide_db::source_change::AnnotationSnippet">AnnotationSnippet</a>, SyntaxAnnotation)&gt;</code></span><div class="docblock"><p>Keeps track of which annotations correspond to which snippets</p>
</div><span id="structfield.mutated_tree" class="structfield section-header"><a href="#structfield.mutated_tree" class="anchor field">§</a><code>mutated_tree: <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.TreeMutator.html" title="struct ide_db::source_change::TreeMutator">TreeMutator</a>&gt;</code></span><div class="docblock"><p>Maps the original, immutable <code>SyntaxNode</code> to a <code>clone_for_update</code> twin.</p>
</div><span id="structfield.snippet_builder" class="structfield section-header"><a href="#structfield.snippet_builder" class="anchor field">§</a><code>snippet_builder: <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SnippetBuilder.html" title="struct ide_db::source_change::SnippetBuilder">SnippetBuilder</a>&gt;</code></span><div class="docblock"><p>Keeps track of where to place snippets</p>
</div><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-SourceChangeBuilder" class="impl"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#265-506">Source</a><a href="#impl-SourceChangeBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#266-277">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(file_id: impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a>&gt;) -&gt; <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</a></h4></section><section id="method.edit_file" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#279-282">Source</a><h4 class="code-header">pub fn <a href="#method.edit_file" class="fn">edit_file</a>(&amp;mut self, file_id: impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a>&gt;)</h4></section><section id="method.make_editor" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#284-286">Source</a><h4 class="code-header">pub fn <a href="#method.make_editor" class="fn">make_editor</a>(&amp;self, node: &amp;SyntaxNode) -&gt; SyntaxEditor</h4></section><section id="method.add_file_edits" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#288-295">Source</a><h4 class="code-header">pub fn <a href="#method.add_file_edits" class="fn">add_file_edits</a>(&amp;mut self, file_id: impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a>&gt;, edit: SyntaxEditor)</h4></section><section id="method.make_placeholder_snippet" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#297-299">Source</a><h4 class="code-header">pub fn <a href="#method.make_placeholder_snippet" class="fn">make_placeholder_snippet</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>) -&gt; SyntaxAnnotation</h4></section><section id="method.make_tabstop_before" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#301-303">Source</a><h4 class="code-header">pub fn <a href="#method.make_tabstop_before" class="fn">make_tabstop_before</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>) -&gt; SyntaxAnnotation</h4></section><section id="method.make_tabstop_after" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#305-307">Source</a><h4 class="code-header">pub fn <a href="#method.make_tabstop_after" class="fn">make_tabstop_after</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>) -&gt; SyntaxAnnotation</h4></section><section id="method.make_mut" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#369-371">Source</a><h4 class="code-header">pub fn <a href="#method.make_mut" class="fn">make_mut</a>&lt;N: AstNode&gt;(&amp;mut self, node: N) -&gt; N</h4></section><section id="method.make_import_scope_mut" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#373-382">Source</a><h4 class="code-header">pub fn <a href="#method.make_import_scope_mut" class="fn">make_import_scope_mut</a>(&amp;mut self, scope: <a class="struct" href="../imports/insert_use/struct.ImportScope.html" title="struct ide_db::imports::insert_use::ImportScope">ImportScope</a>) -&gt; <a class="struct" href="../imports/insert_use/struct.ImportScope.html" title="struct ide_db::imports::insert_use::ImportScope">ImportScope</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.make_syntax_mut" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#393-395">Source</a><h4 class="code-header">pub fn <a href="#method.make_syntax_mut" class="fn">make_syntax_mut</a>(&amp;mut self, node: SyntaxNode) -&gt; SyntaxNode</h4></section></summary><div class="docblock"><p>Returns a copy of the <code>node</code>, suitable for mutation.</p>
<p>Syntax trees in rust-analyzer are typically immutable, and mutating
operations panic at runtime. However, it is possible to make a copy of
the tree and mutate the copy freely. Mutation is based on interior
mutability, and different nodes in the same tree see the same mutations.</p>
<p>The typical pattern for an assist is to find specific nodes in the read
phase, and then get their mutable counterparts using <code>make_mut</code> in the
mutable state.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#398-400">Source</a><h4 class="code-header">pub fn <a href="#method.delete" class="fn">delete</a>(&amp;mut self, range: <a class="struct" href="../text_edit/struct.TextRange.html" title="struct ide_db::text_edit::TextRange">TextRange</a>)</h4></section></summary><div class="docblock"><p>Remove specified <code>range</code> of text.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.insert" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#402-404">Source</a><h4 class="code-header">pub fn <a href="#method.insert" class="fn">insert</a>(&amp;mut self, offset: <a class="struct" href="../text_edit/struct.TextSize.html" title="struct ide_db::text_edit::TextSize">TextSize</a>, text: impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.92.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;)</h4></section></summary><div class="docblock"><p>Append specified <code>text</code> at the given <code>offset</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.replace" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#406-408">Source</a><h4 class="code-header">pub fn <a href="#method.replace" class="fn">replace</a>(&amp;mut self, range: <a class="struct" href="../text_edit/struct.TextRange.html" title="struct ide_db::text_edit::TextRange">TextRange</a>, replace_with: impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.92.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;)</h4></section></summary><div class="docblock"><p>Replaces specified <code>range</code> of text with a given string.</p>
</div></details><section id="method.replace_ast" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#409-411">Source</a><h4 class="code-header">pub fn <a href="#method.replace_ast" class="fn">replace_ast</a>&lt;N: AstNode&gt;(&amp;mut self, old: N, new: N)</h4></section><section id="method.create_file" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#412-415">Source</a><h4 class="code-header">pub fn <a href="#method.create_file" class="fn">create_file</a>(&amp;mut self, dst: AnchoredPathBuf, content: impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.92.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;)</h4></section><section id="method.move_file" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#416-419">Source</a><h4 class="code-header">pub fn <a href="#method.move_file" class="fn">move_file</a>(&amp;mut self, src: impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.FileId.html" title="struct ide_db::FileId">FileId</a>&gt;, dst: AnchoredPathBuf)</h4></section><details class="toggle method-toggle" open><summary><section id="method.trigger_parameter_hints" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#422-424">Source</a><h4 class="code-header">pub fn <a href="#method.trigger_parameter_hints" class="fn">trigger_parameter_hints</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Triggers the parameter hint popup after the assist is applied</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rename" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#427-429">Source</a><h4 class="code-header">pub fn <a href="#method.rename" class="fn">rename</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Renames the item at the cursor position after the assist is applied</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_tabstop_before" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#432-435">Source</a><h4 class="code-header">pub fn <a href="#method.add_tabstop_before" class="fn">add_tabstop_before</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>, node: impl AstNode)</h4></section></summary><div class="docblock"><p>Adds a tabstop snippet to place the cursor before <code>node</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_tabstop_after" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#438-441">Source</a><h4 class="code-header">pub fn <a href="#method.add_tabstop_after" class="fn">add_tabstop_after</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>, node: impl AstNode)</h4></section></summary><div class="docblock"><p>Adds a tabstop snippet to place the cursor after <code>node</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_tabstop_before_token" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#444-447">Source</a><h4 class="code-header">pub fn <a href="#method.add_tabstop_before_token" class="fn">add_tabstop_before_token</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>, token: SyntaxToken)</h4></section></summary><div class="docblock"><p>Adds a tabstop snippet to place the cursor before <code>token</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_tabstop_after_token" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#450-453">Source</a><h4 class="code-header">pub fn <a href="#method.add_tabstop_after_token" class="fn">add_tabstop_after_token</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>, token: SyntaxToken)</h4></section></summary><div class="docblock"><p>Adds a tabstop snippet to place the cursor after <code>token</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_placeholder_snippet" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#456-459">Source</a><h4 class="code-header">pub fn <a href="#method.add_placeholder_snippet" class="fn">add_placeholder_snippet</a>(&amp;mut self, _cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>, node: impl AstNode)</h4></section></summary><div class="docblock"><p>Adds a snippet to move the cursor selected over <code>node</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_placeholder_snippet_token" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#462-465">Source</a><h4 class="code-header">pub fn <a href="#method.add_placeholder_snippet_token" class="fn">add_placeholder_snippet_token</a>(
&amp;mut self,
_cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>,
token: SyntaxToken,
)</h4></section></summary><div class="docblock"><p>Adds a snippet to move the cursor selected over <code>token</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_placeholder_snippet_group" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#471-476">Source</a><h4 class="code-header">pub fn <a href="#method.add_placeholder_snippet_group" class="fn">add_placeholder_snippet_group</a>(
&amp;mut self,
_cap: <a class="struct" href="../struct.SnippetCap.html" title="struct ide_db::SnippetCap">SnippetCap</a>,
nodes: <a class="struct" href="https://doc.rust-lang.org/1.92.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;SyntaxNode&gt;,
)</h4></section></summary><div class="docblock"><p>Adds a snippet to move the cursor selected over <code>nodes</code></p>
<p>This allows for renaming newly generated items without having to go
through a separate rename step.</p>
</div></details><section id="method.finish" class="method"><a class="src rightside" href="../../src/ide_db/source_change.rs.html#491-505">Source</a><h4 class="code-header">pub fn <a href="#method.finish" class="fn">finish</a>(self) -&gt; <a class="struct" href="struct.SourceChange.html" title="struct ide_db::source_change::SourceChange">SourceChange</a></h4></section></div></details></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-SourceChangeBuilder" class="impl"><a href="#impl-Freeze-for-SourceChangeBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</a></h3></section><section id="impl-RefUnwindSafe-for-SourceChangeBuilder" class="impl"><a href="#impl-RefUnwindSafe-for-SourceChangeBuilder" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.92.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</a></h3></section><section id="impl-Send-for-SourceChangeBuilder" class="impl"><a href="#impl-Send-for-SourceChangeBuilder" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.92.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</a></h3></section><section id="impl-Sync-for-SourceChangeBuilder" class="impl"><a href="#impl-Sync-for-SourceChangeBuilder" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.92.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</a></h3></section><section id="impl-Unpin-for-SourceChangeBuilder" class="impl"><a href="#impl-Unpin-for-SourceChangeBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</a></h3></section><section id="impl-UnwindSafe-for-SourceChangeBuilder" class="impl"><a href="#impl-UnwindSafe-for-SourceChangeBuilder" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.92.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.SourceChangeBuilder.html" title="struct ide_db::source_change::SourceChangeBuilder">SourceChangeBuilder</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.92.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.92.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.92.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.92.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.92.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.92.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.92.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.92.0/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.92.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.92.0/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.92.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.92.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.92.0/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.92.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.92.0/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.92.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.92.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-CollectAndApply%3CT,+R%3E-for-T" class="impl"><a href="#impl-CollectAndApply%3CT,+R%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, R&gt; CollectAndApply&lt;T, R&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.collect_and_apply" class="method trait-impl"><a href="#method.collect_and_apply" class="anchor">§</a><h4 class="code-header">fn <a class="fn">collect_and_apply</a>&lt;I, F&gt;(iter: I, f: F) -&gt; R<div class="where">where
I: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = T&gt;,
F: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;<a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.slice.html">[T]</a>) -&gt; R,</div></h4></section></summary><div class="docblock"><p>Equivalent to <code>f(&amp;iter.collect::&lt;Vec&lt;_&gt;&gt;())</code>.</p>
</div></details><section id="associatedtype.Output" class="associatedtype trait-impl"><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Output</a> = R</h4></section></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.92.0/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; 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.92.0/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.92.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; 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-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a>Read more</a></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.92.0/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</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.92.0/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; 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.92.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoBox%3Cdyn+Any%3E-for-T" class="impl"><a href="#impl-IntoBox%3Cdyn+Any%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; IntoBox&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt; for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_box" class="method trait-impl"><a href="#method.into_box" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_box</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.92.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;</h4></section></summary><div class='docblock'>Convert self into the appropriate boxed form.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.bool.html">bool</a>) -&gt; <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt; <a href="#" class="tooltip" data-notable-ty="Either&lt;Self, Self&gt;"></a></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
if <code>into_left</code> is <code>true</code>.
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a>&lt;F&gt;(self, into_left: F) -&gt; <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt; <a href="#" class="tooltip" data-notable-ty="Either&lt;Self, Self&gt;"></a><div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
if <code>into_left(&amp;self)</code> returns <code>true</code>.
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Pointable-for-T" class="impl"><a href="#impl-Pointable-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Pointable for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.ALIGN" class="associatedconstant trait-impl"><a href="#associatedconstant.ALIGN" class="anchor">§</a><h4 class="code-header">const <a class="constant">ALIGN</a>: <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>The alignment of pointer.</div></details><details class="toggle" open><summary><section id="associatedtype.Init" class="associatedtype trait-impl"><a href="#associatedtype.Init" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Init</a> = T</h4></section></summary><div class='docblock'>The type for initializers.</div></details><details class="toggle method-toggle" open><summary><section id="method.init" class="method trait-impl"><a href="#method.init" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">init</a>(init: &lt;T as Pointable&gt;::Init) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Initializes a with the given initializer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a href="#method.deref" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref</a>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.reference.html">&amp;'a T</a></h4></section></summary><div class='docblock'>Dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl"><a href="#method.deref_mut" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref_mut</a>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.reference.html">&amp;'a mut T</a></h4></section></summary><div class='docblock'>Mutably dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl"><a href="#method.drop" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">drop</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.92.0/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'>Drops the object pointed to by the given pointer. <a>Read more</a></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.92.0/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</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.92.0/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.92.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.92.0/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</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.92.0/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</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.92.0/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.92.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.92.0/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.92.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Upcast%3CI,+U%3E-for-T" class="impl"><a href="#impl-Upcast%3CI,+U%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;I, T, U&gt; Upcast&lt;I, U&gt; for T<div class="where">where
U: UpcastFrom&lt;I, T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.upcast" class="method trait-impl"><a href="#method.upcast" class="anchor">§</a><h4 class="code-header">fn <a class="fn">upcast</a>(self, interner: I) -&gt; U</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-UpcastFrom%3CI,+T%3E-for-T" class="impl"><a href="#impl-UpcastFrom%3CI,+T%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;I, T&gt; UpcastFrom&lt;I, T&gt; for T</h3></section></summary><div class="impl-items"><section id="method.upcast_from" class="method trait-impl"><a href="#method.upcast_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">upcast_from</a>(from: T, _tcx: I) -&gt; T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; WithDispatch&lt;Self&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.92.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Dispatch&gt;,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -&gt; WithDispatch&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details><section id="impl-Captures%3C'a%3E-for-T" class="impl"><a href="#impl-Captures%3C'a%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; Captures&lt;'a&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.92.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></div><script type="text/json" id="notable-traits-data">{"Either<Self, Self>":"<h3>Notable traits for <code><a class=\"enum\" href=\"https://docs.rs/either/1/either/enum.Either.html\" title=\"enum either::Either\">Either</a>&lt;L, R&gt;</code></h3><pre><code><div class=\"where\">impl&lt;L, R&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"enum\" href=\"https://docs.rs/either/1/either/enum.Either.html\" title=\"enum either::Either\">Either</a>&lt;L, R&gt;<div class=\"where\">where\n L: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a>,\n R: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a>&lt;Item = &lt;L as <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a>&gt;::<a class=\"associatedtype\" href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" title=\"type core::iter::traits::iterator::Iterator::Item\">Item</a>&gt;,</div></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = &lt;L as <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a>&gt;::<a class=\"associatedtype\" href=\"https://doc.rust-lang.org/1.92.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" title=\"type core::iter::traits::iterator::Iterator::Item\">Item</a>;</div><div class=\"where\">impl&lt;L, R&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"enum\" href=\"https://docs.rs/either/1/either/enum.Either.html\" title=\"enum either::Either\">Either</a>&lt;L, R&gt;<div class=\"where\">where\n L: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a>,\n R: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a>&lt;Output = &lt;L as <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a>&gt;::<a class=\"associatedtype\" href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html#associatedtype.Output\" title=\"type core::future::future::Future::Output\">Output</a>&gt;,</div></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = &lt;L as <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a>&gt;::<a class=\"associatedtype\" href=\"https://doc.rust-lang.org/1.92.0/core/future/future/trait.Future.html#associatedtype.Output\" title=\"type core::future::future::Future::Output\">Output</a>;</div><div class=\"where\">impl&lt;L, R&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a> for <a class=\"enum\" href=\"https://docs.rs/either/1/either/enum.Either.html\" title=\"enum either::Either\">Either</a>&lt;L, R&gt;<div class=\"where\">where\n L: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a>,\n R: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a>,</div></div><div class=\"where\">impl&lt;L, R&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> for <a class=\"enum\" href=\"https://docs.rs/either/1/either/enum.Either.html\" title=\"enum either::Either\">Either</a>&lt;L, R&gt;<div class=\"where\">where\n L: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a>,\n R: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.92.0/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a>,</div></div>"}</script></section></div></main></body></html>