rust-analyzer/ide/struct.Analysis.html
github-merge-queue[bot] 92ca461ed2 deploy: 90bf50c011
2025-01-25 19:20:19 +00:00

272 lines
No EOL
103 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="Analysis is a snapshot of a world state at a moment in time. It is the main entry point for asking semantic information about the world. When the world state is advanced using `AnalysisHost::apply_change` method, all existing `Analysis` are canceled (most method return `Err(Canceled)`)."><title>Analysis in ide - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="ide" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../ide/index.html">ide</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Analysis</a></h2><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.SUPPORTED_TRIGGER_CHARS" title="SUPPORTED_TRIGGER_CHARS">SUPPORTED_TRIGGER_CHARS</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.annotations" title="annotations">annotations</a></li><li><a href="#method.assists_with_fixes" title="assists_with_fixes">assists_with_fixes</a></li><li><a href="#method.call_hierarchy" title="call_hierarchy">call_hierarchy</a></li><li><a href="#method.completions" title="completions">completions</a></li><li><a href="#method.crate_edition" title="crate_edition">crate_edition</a></li><li><a href="#method.crate_root" title="crate_root">crate_root</a></li><li><a href="#method.crates_for" title="crates_for">crates_for</a></li><li><a href="#method.discover_test_roots" title="discover_test_roots">discover_test_roots</a></li><li><a href="#method.discover_tests_in_crate" title="discover_tests_in_crate">discover_tests_in_crate</a></li><li><a href="#method.discover_tests_in_crate_by_test_id" title="discover_tests_in_crate_by_test_id">discover_tests_in_crate_by_test_id</a></li><li><a href="#method.discover_tests_in_file" title="discover_tests_in_file">discover_tests_in_file</a></li><li><a href="#method.expand_macro" title="expand_macro">expand_macro</a></li><li><a href="#method.extend_selection" title="extend_selection">extend_selection</a></li><li><a href="#method.external_docs" title="external_docs">external_docs</a></li><li><a href="#method.fetch_crates" title="fetch_crates">fetch_crates</a></li><li><a href="#method.file_line_index" title="file_line_index">file_line_index</a></li><li><a href="#method.file_structure" title="file_structure">file_structure</a></li><li><a href="#method.file_text" title="file_text">file_text</a></li><li><a href="#method.find_all_refs" title="find_all_refs">find_all_refs</a></li><li><a href="#method.folding_ranges" title="folding_ranges">folding_ranges</a></li><li><a href="#method.from_single_file" title="from_single_file">from_single_file</a></li><li><a href="#method.full_diagnostics" title="full_diagnostics">full_diagnostics</a></li><li><a href="#method.get_recursive_memory_layout" title="get_recursive_memory_layout">get_recursive_memory_layout</a></li><li><a href="#method.goto_declaration" title="goto_declaration">goto_declaration</a></li><li><a href="#method.goto_definition" title="goto_definition">goto_definition</a></li><li><a href="#method.goto_implementation" title="goto_implementation">goto_implementation</a></li><li><a href="#method.goto_type_definition" title="goto_type_definition">goto_type_definition</a></li><li><a href="#method.highlight" title="highlight">highlight</a></li><li><a href="#method.highlight_as_html" title="highlight_as_html">highlight_as_html</a></li><li><a href="#method.highlight_range" title="highlight_range">highlight_range</a></li><li><a href="#method.highlight_related" title="highlight_related">highlight_related</a></li><li><a href="#method.hover" title="hover">hover</a></li><li><a href="#method.incoming_calls" title="incoming_calls">incoming_calls</a></li><li><a href="#method.inlay_hints" title="inlay_hints">inlay_hints</a></li><li><a href="#method.inlay_hints_resolve" title="inlay_hints_resolve">inlay_hints_resolve</a></li><li><a href="#method.interpret_function" title="interpret_function">interpret_function</a></li><li><a href="#method.is_crate_no_std" title="is_crate_no_std">is_crate_no_std</a></li><li><a href="#method.is_library_file" title="is_library_file">is_library_file</a></li><li><a href="#method.is_local_source_root" title="is_local_source_root">is_local_source_root</a></li><li><a href="#method.join_lines" title="join_lines">join_lines</a></li><li><a href="#method.matching_brace" title="matching_brace">matching_brace</a></li><li><a href="#method.moniker" title="moniker">moniker</a></li><li><a href="#method.move_item" title="move_item">move_item</a></li><li><a href="#method.on_char_typed" title="on_char_typed">on_char_typed</a></li><li><a href="#method.on_enter" title="on_enter">on_enter</a></li><li><a href="#method.outgoing_calls" title="outgoing_calls">outgoing_calls</a></li><li><a href="#method.parallel_prime_caches" title="parallel_prime_caches">parallel_prime_caches</a></li><li><a href="#method.parent_module" title="parent_module">parent_module</a></li><li><a href="#method.parse" title="parse">parse</a></li><li><a href="#method.prepare_rename" title="prepare_rename">prepare_rename</a></li><li><a href="#method.related_tests" title="related_tests">related_tests</a></li><li><a href="#method.relevant_crates_for" title="relevant_crates_for">relevant_crates_for</a></li><li><a href="#method.rename" title="rename">rename</a></li><li><a href="#method.resolve_annotation" title="resolve_annotation">resolve_annotation</a></li><li><a href="#method.resolve_completion_edits" title="resolve_completion_edits">resolve_completion_edits</a></li><li><a href="#method.runnables" title="runnables">runnables</a></li><li><a href="#method.semantic_diagnostics" title="semantic_diagnostics">semantic_diagnostics</a></li><li><a href="#method.signature_help" title="signature_help">signature_help</a></li><li><a href="#method.source_root_id" title="source_root_id">source_root_id</a></li><li><a href="#method.status" title="status">status</a></li><li><a href="#method.structural_search_replace" title="structural_search_replace">structural_search_replace</a></li><li><a href="#method.symbol_search" title="symbol_search">symbol_search</a></li><li><a href="#method.syntax_diagnostics" title="syntax_diagnostics">syntax_diagnostics</a></li><li><a href="#method.transitive_rev_deps" title="transitive_rev_deps">transitive_rev_deps</a></li><li><a href="#method.view_crate_graph" title="view_crate_graph">view_crate_graph</a></li><li><a href="#method.view_hir" title="view_hir">view_hir</a></li><li><a href="#method.view_item_tree" title="view_item_tree">view_item_tree</a></li><li><a href="#method.view_mir" title="view_mir">view_mir</a></li><li><a href="#method.view_syntax_tree" title="view_syntax_tree">view_syntax_tree</a></li><li><a href="#method.will_rename_file" title="will_rename_file">will_rename_file</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Debug-for-Analysis" title="Debug">Debug</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Analysis" title="!Freeze">!Freeze</a></li><li><a href="#impl-Sync-for-Analysis" title="!Sync">!Sync</a></li><li><a href="#impl-RefUnwindSafe-for-Analysis" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Analysis" title="Send">Send</a></li><li><a href="#impl-Unpin-for-Analysis" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Analysis" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#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-Cast-for-T" title="Cast">Cast</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+%2B+Send%3E-for-T" title="IntoBox&#60;dyn Any + Send&#62;">IntoBox&#60;dyn Any + Send&#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-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate ide</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">ide</a></span><h1>Struct <span class="struct">Analysis</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/ide/lib.rs.html#219-221">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Analysis { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Analysis is a snapshot of a world state at a moment in time. It is the main
entry point for asking semantic information about the world. When the world
state is advanced using <code>AnalysisHost::apply_change</code> method, all existing
<code>Analysis</code> are canceled (most method return <code>Err(Canceled)</code>).</p>
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Analysis" class="impl"><a class="src rightside" href="../src/ide/lib.rs.html#229-833">Source</a><a href="#impl-Analysis" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.SUPPORTED_TRIGGER_CHARS" class="associatedconstant"><a class="src rightside" href="../src/ide/lib.rs.html#398">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.SUPPORTED_TRIGGER_CHARS" class="constant">SUPPORTED_TRIGGER_CHARS</a>: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a> = typing::TRIGGER_CHARS</h4></section><section id="method.from_single_file" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#233-271">Source</a><h4 class="code-header">pub fn <a href="#method.from_single_file" class="fn">from_single_file</a>(text: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -&gt; (<a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a>, <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>)</h4></section><details class="toggle method-toggle" open><summary><section id="method.status" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#274-276">Source</a><h4 class="code-header">pub fn <a href="#method.status" class="fn">status</a>(&amp;self, file_id: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>&gt;) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Debug info about the current state of the analysis.</p>
</div></details><section id="method.source_root_id" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#278-280">Source</a><h4 class="code-header">pub fn <a href="#method.source_root_id" class="fn">source_root_id</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="struct.SourceRootId.html" title="struct ide::SourceRootId">SourceRootId</a>&gt;</h4></section><section id="method.is_local_source_root" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#282-287">Source</a><h4 class="code-header">pub fn <a href="#method.is_local_source_root" class="fn">is_local_source_root</a>(
&amp;self,
source_root_id: <a class="struct" href="struct.SourceRootId.html" title="struct ide::SourceRootId">SourceRootId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>&gt;</h4></section><section id="method.parallel_prime_caches" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#289-294">Source</a><h4 class="code-header">pub fn <a href="#method.parallel_prime_caches" class="fn">parallel_prime_caches</a>&lt;F&gt;(
&amp;self,
num_worker_threads: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
cb: F,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>&gt;<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="struct" href="struct.ParallelPrimeCachesProgress.html" title="struct ide::ParallelPrimeCachesProgress">ParallelPrimeCachesProgress</a>) + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h4></section><details class="toggle method-toggle" open><summary><section id="method.file_text" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#297-299">Source</a><h4 class="code-header">pub fn <a href="#method.file_text" class="fn">file_text</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;Arc&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Gets the text of the source file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.parse" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#302-305">Source</a><h4 class="code-header">pub fn <a href="#method.parse" class="fn">parse</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;SourceFile&gt;</h4></section></summary><div class="docblock"><p>Gets the syntax tree of the file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_library_file" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#308-310">Source</a><h4 class="code-header">pub fn <a href="#method.is_library_file" class="fn">is_library_file</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>Returns true if this file belongs to an immutable library.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.file_line_index" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#314-316">Source</a><h4 class="code-header">pub fn <a href="#method.file_line_index" class="fn">file_line_index</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;Arc&lt;<a class="struct" href="struct.LineIndex.html" title="struct ide::LineIndex">LineIndex</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Gets the files <code>LineIndex</code>: data structure to convert between absolute
offsets and line/column representation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.extend_selection" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#319-321">Source</a><h4 class="code-header">pub fn <a href="#method.extend_selection" class="fn">extend_selection</a>(&amp;self, frange: <a class="type" href="type.FileRange.html" title="type ide::FileRange">FileRange</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>&gt;</h4></section></summary><div class="docblock"><p>Selects the next syntactic nodes encompassing the range.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.matching_brace" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#325-331">Source</a><h4 class="code-header">pub fn <a href="#method.matching_brace" class="fn">matching_brace</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns position of the matching brace (all types of braces are
supported).</p>
</div></details><section id="method.view_syntax_tree" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#333-335">Source</a><h4 class="code-header">pub fn <a href="#method.view_syntax_tree" class="fn">view_syntax_tree</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section><section id="method.view_hir" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#337-339">Source</a><h4 class="code-header">pub fn <a href="#method.view_hir" class="fn">view_hir</a>(&amp;self, position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section><section id="method.view_mir" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#341-343">Source</a><h4 class="code-header">pub fn <a href="#method.view_mir" class="fn">view_mir</a>(&amp;self, position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section><section id="method.interpret_function" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#345-347">Source</a><h4 class="code-header">pub fn <a href="#method.interpret_function" class="fn">interpret_function</a>(&amp;self, position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section><section id="method.view_item_tree" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#349-351">Source</a><h4 class="code-header">pub fn <a href="#method.view_item_tree" class="fn">view_item_tree</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section><section id="method.discover_test_roots" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#353-355">Source</a><h4 class="code-header">pub fn <a href="#method.discover_test_roots" class="fn">discover_test_roots</a>(&amp;self) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.TestItem.html" title="struct ide::TestItem">TestItem</a>&gt;&gt;</h4></section><section id="method.discover_tests_in_crate_by_test_id" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#357-359">Source</a><h4 class="code-header">pub fn <a href="#method.discover_tests_in_crate_by_test_id" class="fn">discover_tests_in_crate_by_test_id</a>(
&amp;self,
crate_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.TestItem.html" title="struct ide::TestItem">TestItem</a>&gt;&gt;</h4></section><section id="method.discover_tests_in_crate" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#361-363">Source</a><h4 class="code-header">pub fn <a href="#method.discover_tests_in_crate" class="fn">discover_tests_in_crate</a>(
&amp;self,
crate_id: <a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.TestItem.html" title="struct ide::TestItem">TestItem</a>&gt;&gt;</h4></section><section id="method.discover_tests_in_file" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#365-367">Source</a><h4 class="code-header">pub fn <a href="#method.discover_tests_in_file" class="fn">discover_tests_in_file</a>(
&amp;self,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.TestItem.html" title="struct ide::TestItem">TestItem</a>&gt;&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.view_crate_graph" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#370-372">Source</a><h4 class="code-header">pub fn <a href="#method.view_crate_graph" class="fn">view_crate_graph</a>(
&amp;self,
full: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Renders the crate graph to GraphViz “dot” syntax.</p>
</div></details><section id="method.fetch_crates" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#374-376">Source</a><h4 class="code-header">pub fn <a href="#method.fetch_crates" class="fn">fetch_crates</a>(&amp;self) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;FxIndexSet&lt;CrateInfo&gt;&gt;</h4></section><section id="method.expand_macro" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#378-380">Source</a><h4 class="code-header">pub fn <a href="#method.expand_macro" class="fn">expand_macro</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.ExpandedMacro.html" title="struct ide::ExpandedMacro">ExpandedMacro</a>&gt;&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.join_lines" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#384-389">Source</a><h4 class="code-header">pub fn <a href="#method.join_lines" class="fn">join_lines</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.JoinLinesConfig.html" title="struct ide::JoinLinesConfig">JoinLinesConfig</a>,
frange: <a class="type" href="type.FileRange.html" title="type ide::FileRange">FileRange</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="struct.TextEdit.html" title="struct ide::TextEdit">TextEdit</a>&gt;</h4></section></summary><div class="docblock"><p>Returns an edit to remove all newlines in the range, cleaning up minor
stuff like trailing commas.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_enter" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#394-396">Source</a><h4 class="code-header">pub fn <a href="#method.on_enter" class="fn">on_enter</a>(&amp;self, position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.TextEdit.html" title="struct ide::TextEdit">TextEdit</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns an edit which should be applied when opening a new line, fixing
up minor stuff like continuing the comment.
The edit will be a snippet (with <code>$0</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_char_typed" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#404-415">Source</a><h4 class="code-header">pub fn <a href="#method.on_char_typed" class="fn">on_char_typed</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
char_typed: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SourceChange.html" title="struct ide::SourceChange">SourceChange</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns an edit which should be applied after a character was typed.</p>
<p>This is useful for some on-the-fly fixups, like adding <code>;</code> to <code>let =</code>
automatically.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.file_structure" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#419-426">Source</a><h4 class="code-header">pub fn <a href="#method.file_structure" class="fn">file_structure</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.StructureNode.html" title="struct ide::StructureNode">StructureNode</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a tree representation of symbols in the file. Useful to draw a
file outline.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.inlay_hints" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#429-436">Source</a><h4 class="code-header">pub fn <a href="#method.inlay_hints" class="fn">inlay_hints</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.InlayHintsConfig.html" title="struct ide::InlayHintsConfig">InlayHintsConfig</a>,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
range: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>&gt;,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.InlayHint.html" title="struct ide::InlayHint">InlayHint</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a list of the places in the file where type hints can be displayed.</p>
</div></details><section id="method.inlay_hints_resolve" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#437-448">Source</a><h4 class="code-header">pub fn <a href="#method.inlay_hints_resolve" class="fn">inlay_hints_resolve</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.InlayHintsConfig.html" title="struct ide::InlayHintsConfig">InlayHintsConfig</a>,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
resolve_range: <a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>,
hash: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a>,
hasher: impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;<a class="struct" href="struct.InlayHint.html" title="struct ide::InlayHint">InlayHint</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.InlayHint.html" title="struct ide::InlayHint">InlayHint</a>&gt;&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.folding_ranges" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#451-457">Source</a><h4 class="code-header">pub fn <a href="#method.folding_ranges" class="fn">folding_ranges</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Fold.html" title="struct ide::Fold">Fold</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the set of folding ranges.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.symbol_search" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#460-469">Source</a><h4 class="code-header">pub fn <a href="#method.symbol_search" class="fn">symbol_search</a>(
&amp;self,
query: <a class="struct" href="struct.Query.html" title="struct ide::Query">Query</a>,
limit: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Fuzzy searches for a symbol.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.goto_definition" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#472-477">Source</a><h4 class="code-header">pub fn <a href="#method.goto_definition" class="fn">goto_definition</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the definitions from the symbol at <code>position</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.goto_declaration" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#480-485">Source</a><h4 class="code-header">pub fn <a href="#method.goto_declaration" class="fn">goto_declaration</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the declaration from the symbol at <code>position</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.goto_implementation" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#488-493">Source</a><h4 class="code-header">pub fn <a href="#method.goto_implementation" class="fn">goto_implementation</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the impls from the symbol at <code>position</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.goto_type_definition" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#496-501">Source</a><h4 class="code-header">pub fn <a href="#method.goto_type_definition" class="fn">goto_type_definition</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the type definitions for the symbol at <code>position</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.find_all_refs" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#504-510">Source</a><h4 class="code-header">pub fn <a href="#method.find_all_refs" class="fn">find_all_refs</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
search_scope: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SearchScope.html" title="struct ide::SearchScope">SearchScope</a>&gt;,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.ReferenceSearchResult.html" title="struct ide::ReferenceSearchResult">ReferenceSearchResult</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Finds all usages of the reference at point.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.hover" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#513-519">Source</a><h4 class="code-header">pub fn <a href="#method.hover" class="fn">hover</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.HoverConfig.html" title="struct ide::HoverConfig">HoverConfig</a>,
range: <a class="type" href="type.FileRange.html" title="type ide::FileRange">FileRange</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="struct" href="struct.HoverResult.html" title="struct ide::HoverResult">HoverResult</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a short text describing element at position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.moniker" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#522-527">Source</a><h4 class="code-header">pub fn <a href="#method.moniker" class="fn">moniker</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="enum.MonikerResult.html" title="enum ide::MonikerResult">MonikerResult</a>&gt;&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns moniker of symbol at position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.external_docs" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#533-542">Source</a><h4 class="code-header">pub fn <a href="#method.external_docs" class="fn">external_docs</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
target_dir: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;,
sysroot: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>&gt;,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;DocumentationLinks&gt;</h4></section></summary><div class="docblock"><p>Returns URL(s) for the documentation of the symbol under the cursor.</p>
<h5 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h5>
<ul>
<li><code>position</code> - Position in the file.</li>
<li><code>target_dir</code> - Directory where the build output is stored.</li>
</ul>
</div></details><details class="toggle method-toggle" open><summary><section id="method.signature_help" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#545-547">Source</a><h4 class="code-header">pub fn <a href="#method.signature_help" class="fn">signature_help</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SignatureHelp.html" title="struct ide::SignatureHelp">SignatureHelp</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes parameter information at the given position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.call_hierarchy" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#550-555">Source</a><h4 class="code-header">pub fn <a href="#method.call_hierarchy" class="fn">call_hierarchy</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes call hierarchy candidates for the given file position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.incoming_calls" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#558-564">Source</a><h4 class="code-header">pub fn <a href="#method.incoming_calls" class="fn">incoming_calls</a>(
&amp;self,
config: <a class="struct" href="struct.CallHierarchyConfig.html" title="struct ide::CallHierarchyConfig">CallHierarchyConfig</a>,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.CallItem.html" title="struct ide::CallItem">CallItem</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes incoming calls for the given file position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.outgoing_calls" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#567-573">Source</a><h4 class="code-header">pub fn <a href="#method.outgoing_calls" class="fn">outgoing_calls</a>(
&amp;self,
config: <a class="struct" href="struct.CallHierarchyConfig.html" title="struct ide::CallHierarchyConfig">CallHierarchyConfig</a>,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.CallItem.html" title="struct ide::CallItem">CallItem</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes outgoing calls for the given file position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.parent_module" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#576-578">Source</a><h4 class="code-header">pub fn <a href="#method.parent_module" class="fn">parent_module</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a <code>mod name;</code> declaration which created the current module.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.crates_for" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#581-583">Source</a><h4 class="code-header">pub fn <a href="#method.crates_for" class="fn">crates_for</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns crates that this file belongs to.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.transitive_rev_deps" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#586-588">Source</a><h4 class="code-header">pub fn <a href="#method.transitive_rev_deps" class="fn">transitive_rev_deps</a>(
&amp;self,
crate_id: <a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns crates that this file belongs to.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.relevant_crates_for" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#591-593">Source</a><h4 class="code-header">pub fn <a href="#method.relevant_crates_for" class="fn">relevant_crates_for</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns crates that this file <em>might</em> belong to.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.crate_edition" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#596-598">Source</a><h4 class="code-header">pub fn <a href="#method.crate_edition" class="fn">crate_edition</a>(&amp;self, crate_id: <a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="enum.Edition.html" title="enum ide::Edition">Edition</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the edition of the given crate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_crate_no_std" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#601-603">Source</a><h4 class="code-header">pub fn <a href="#method.is_crate_no_std" class="fn">is_crate_no_std</a>(&amp;self, crate_id: <a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>Returns true if this crate has <code>no_std</code> or <code>no_core</code> specified.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.crate_root" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#606-608">Source</a><h4 class="code-header">pub fn <a href="#method.crate_root" class="fn">crate_root</a>(&amp;self, crate_id: <a class="type" href="type.CrateId.html" title="type ide::CrateId">CrateId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the root file of the given crate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.runnables" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#611-613">Source</a><h4 class="code-header">pub fn <a href="#method.runnables" class="fn">runnables</a>(&amp;self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Runnable.html" title="struct ide::Runnable">Runnable</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the set of possible targets to run for the current file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.related_tests" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#616-622">Source</a><h4 class="code-header">pub fn <a href="#method.related_tests" class="fn">related_tests</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
search_scope: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SearchScope.html" title="struct ide::SearchScope">SearchScope</a>&gt;,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Runnable.html" title="struct ide::Runnable">Runnable</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the set of tests for the given file position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.highlight" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#625-631">Source</a><h4 class="code-header">pub fn <a href="#method.highlight" class="fn">highlight</a>(
&amp;self,
highlight_config: <a class="struct" href="struct.HighlightConfig.html" title="struct ide::HighlightConfig">HighlightConfig</a>,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.HlRange.html" title="struct ide::HlRange">HlRange</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes syntax highlighting for the given file</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.highlight_related" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#634-642">Source</a><h4 class="code-header">pub fn <a href="#method.highlight_related" class="fn">highlight_related</a>(
&amp;self,
config: <a class="struct" href="struct.HighlightRelatedConfig.html" title="struct ide::HighlightRelatedConfig">HighlightRelatedConfig</a>,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.HighlightedRange.html" title="struct ide::HighlightedRange">HighlightedRange</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes all ranges to highlight for a given item in a file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.highlight_range" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#645-653">Source</a><h4 class="code-header">pub fn <a href="#method.highlight_range" class="fn">highlight_range</a>(
&amp;self,
highlight_config: <a class="struct" href="struct.HighlightConfig.html" title="struct ide::HighlightConfig">HighlightConfig</a>,
frange: <a class="type" href="type.FileRange.html" title="type ide::FileRange">FileRange</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.HlRange.html" title="struct ide::HlRange">HlRange</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes syntax highlighting for the given file range.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.highlight_as_html" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#656-658">Source</a><h4 class="code-header">pub fn <a href="#method.highlight_as_html" class="fn">highlight_as_html</a>(
&amp;self,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
rainbow: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Computes syntax highlighting for the given file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.completions" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#661-668">Source</a><h4 class="code-header">pub fn <a href="#method.completions" class="fn">completions</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.CompletionConfig.html" title="struct ide::CompletionConfig">CompletionConfig</a>&lt;'_&gt;,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
trigger_character: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a>&gt;,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.CompletionItem.html" title="struct ide::CompletionItem">CompletionItem</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes completions at the given position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.resolve_completion_edits" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#671-680">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_completion_edits" class="fn">resolve_completion_edits</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.CompletionConfig.html" title="struct ide::CompletionConfig">CompletionConfig</a>&lt;'_&gt;,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
imports: impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.TextEdit.html" title="struct ide::TextEdit">TextEdit</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Resolves additional completion data at the position given.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.syntax_diagnostics" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#683-689">Source</a><h4 class="code-header">pub fn <a href="#method.syntax_diagnostics" class="fn">syntax_diagnostics</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.DiagnosticsConfig.html" title="struct ide::DiagnosticsConfig">DiagnosticsConfig</a>,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Diagnostic.html" title="struct ide::Diagnostic">Diagnostic</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes the set of parser level diagnostics for the given file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.semantic_diagnostics" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#692-699">Source</a><h4 class="code-header">pub fn <a href="#method.semantic_diagnostics" class="fn">semantic_diagnostics</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.DiagnosticsConfig.html" title="struct ide::DiagnosticsConfig">DiagnosticsConfig</a>,
resolve: <a class="enum" href="enum.AssistResolveStrategy.html" title="enum ide::AssistResolveStrategy">AssistResolveStrategy</a>,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Diagnostic.html" title="struct ide::Diagnostic">Diagnostic</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes the set of semantic diagnostics for the given file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.full_diagnostics" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#702-709">Source</a><h4 class="code-header">pub fn <a href="#method.full_diagnostics" class="fn">full_diagnostics</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.DiagnosticsConfig.html" title="struct ide::DiagnosticsConfig">DiagnosticsConfig</a>,
resolve: <a class="enum" href="enum.AssistResolveStrategy.html" title="enum ide::AssistResolveStrategy">AssistResolveStrategy</a>,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Diagnostic.html" title="struct ide::Diagnostic">Diagnostic</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Computes the set of both syntax and semantic diagnostics for the given file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.assists_with_fixes" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#712-743">Source</a><h4 class="code-header">pub fn <a href="#method.assists_with_fixes" class="fn">assists_with_fixes</a>(
&amp;self,
assist_config: &amp;<a class="struct" href="struct.AssistConfig.html" title="struct ide::AssistConfig">AssistConfig</a>,
diagnostics_config: &amp;<a class="struct" href="struct.DiagnosticsConfig.html" title="struct ide::DiagnosticsConfig">DiagnosticsConfig</a>,
resolve: <a class="enum" href="enum.AssistResolveStrategy.html" title="enum ide::AssistResolveStrategy">AssistResolveStrategy</a>,
frange: <a class="type" href="type.FileRange.html" title="type ide::FileRange">FileRange</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Assist.html" title="struct ide::Assist">Assist</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Convenience function to return assists + quick fixes for diagnostics</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rename" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#747-753">Source</a><h4 class="code-header">pub fn <a href="#method.rename" class="fn">rename</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
new_name: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.SourceChange.html" title="struct ide::SourceChange">SourceChange</a>, <a class="struct" href="struct.RenameError.html" title="struct ide::RenameError">RenameError</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the edit required to rename reference at the position to the new
name.</p>
</div></details><section id="method.prepare_rename" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#755-760">Source</a><h4 class="code-header">pub fn <a href="#method.prepare_rename" class="fn">prepare_rename</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.RangeInfo.html" title="struct ide::RangeInfo">RangeInfo</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="struct.RenameError.html" title="struct ide::RenameError">RenameError</a>&gt;&gt;</h4></section><section id="method.will_rename_file" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#762-768">Source</a><h4 class="code-header">pub fn <a href="#method.will_rename_file" class="fn">will_rename_file</a>(
&amp;self,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
new_name_stem: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SourceChange.html" title="struct ide::SourceChange">SourceChange</a>&gt;&gt;</h4></section><section id="method.structural_search_replace" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#770-785">Source</a><h4 class="code-header">pub fn <a href="#method.structural_search_replace" class="fn">structural_search_replace</a>(
&amp;self,
query: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>,
parse_only: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
resolve_context: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
selections: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="type" href="type.FileRange.html" title="type ide::FileRange">FileRange</a>&gt;,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.SourceChange.html" title="struct ide::SourceChange">SourceChange</a>, <a class="struct" href="struct.SsrError.html" title="struct ide::SsrError">SsrError</a>&gt;&gt;</h4></section><section id="method.annotations" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#787-793">Source</a><h4 class="code-header">pub fn <a href="#method.annotations" class="fn">annotations</a>(
&amp;self,
config: &amp;<a class="struct" href="struct.AnnotationConfig.html" title="struct ide::AnnotationConfig">AnnotationConfig</a>,
file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Annotation.html" title="struct ide::Annotation">Annotation</a>&gt;&gt;</h4></section><section id="method.resolve_annotation" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#795-797">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_annotation" class="fn">resolve_annotation</a>(
&amp;self,
annotation: <a class="struct" href="struct.Annotation.html" title="struct ide::Annotation">Annotation</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="struct" href="struct.Annotation.html" title="struct ide::Annotation">Annotation</a>&gt;</h4></section><section id="method.move_item" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#799-805">Source</a><h4 class="code-header">pub fn <a href="#method.move_item" class="fn">move_item</a>(
&amp;self,
range: <a class="type" href="type.FileRange.html" title="type ide::FileRange">FileRange</a>,
direction: <a class="enum" href="enum.Direction.html" title="enum ide::Direction">Direction</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.TextEdit.html" title="struct ide::TextEdit">TextEdit</a>&gt;&gt;</h4></section><section id="method.get_recursive_memory_layout" class="method"><a class="src rightside" href="../src/ide/lib.rs.html#807-812">Source</a><h4 class="code-header">pub fn <a href="#method.get_recursive_memory_layout" class="fn">get_recursive_memory_layout</a>(
&amp;self,
position: <a class="type" href="type.FilePosition.html" title="type ide::FilePosition">FilePosition</a>,
) -&gt; <a class="type" href="type.Cancellable.html" title="type ide::Cancellable">Cancellable</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;RecursiveMemoryLayout&gt;&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Analysis" class="impl"><a class="src rightside" href="../src/ide/lib.rs.html#218">Source</a><a href="#impl-Debug-for-Analysis" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/ide/lib.rs.html#218">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></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-Analysis" class="impl"><a href="#impl-Freeze-for-Analysis" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section><section id="impl-RefUnwindSafe-for-Analysis" class="impl"><a href="#impl-RefUnwindSafe-for-Analysis" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section><section id="impl-Send-for-Analysis" class="impl"><a href="#impl-Send-for-Analysis" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section><section id="impl-Sync-for-Analysis" class="impl"><a href="#impl-Sync-for-Analysis" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section><section id="impl-Unpin-for-Analysis" class="impl"><a href="#impl-Unpin-for-Analysis" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section><section id="impl-UnwindSafe-for-Analysis" class="impl"><a href="#impl-UnwindSafe-for-Analysis" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Analysis.html" title="struct ide::Analysis">Analysis</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.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.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.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.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cast-for-T" class="impl"><a href="#impl-Cast-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Cast for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.cast" class="method trait-impl"><a href="#method.cast" class="anchor">§</a><h4 class="code-header">fn <a class="fn">cast</a>&lt;U&gt;(self, interner: &lt;U as HasInterner&gt;::Interner) -&gt; U<div class="where">where
Self: CastTo&lt;U&gt;,
U: HasInterner,</div></h4></section></summary><div class='docblock'>Cast a value to type <code>U</code> using <code>CastTo</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&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.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.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.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&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.84.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.84.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.84.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.84.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.84.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-IntoBox%3Cdyn+Any+%2B+Send%3E-for-T" class="impl"><a href="#impl-IntoBox%3Cdyn+Any+%2B+Send%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.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt; for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_box-1" class="method trait-impl"><a href="#method.into_box-1" 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.84.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.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&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.84.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;</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;<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.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.84.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.84.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.84.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.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.84.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.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.84.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.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.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.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.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.84.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.84.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.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.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.84.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.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.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.84.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.84.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-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.84.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.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></div></section></div></main></body></html>