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

63 lines
No EOL
28 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `TryToNav` trait in crate `ide`."><title>TryToNav 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 trait"><!--[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="#">TryTo<wbr>Nav</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.try_to_nav" title="try_to_nav">try_to_nav</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-TryToNav-for-Adt" title="Adt">Adt</a></li><li><a href="#impl-TryToNav-for-AssocItem" title="AssocItem">AssocItem</a></li><li><a href="#impl-TryToNav-for-ConstParam" title="ConstParam">ConstParam</a></li><li><a href="#impl-TryToNav-for-Definition" title="Definition">Definition</a></li><li><a href="#impl-TryToNav-for-Either%3CT,+U%3E" title="Either&#60;T, U&#62;">Either&#60;T, U&#62;</a></li><li><a href="#impl-TryToNav-for-ExternCrateDecl" title="ExternCrateDecl">ExternCrateDecl</a></li><li><a href="#impl-TryToNav-for-Field" title="Field">Field</a></li><li><a href="#impl-TryToNav-for-FileSymbol" title="FileSymbol">FileSymbol</a></li><li><a href="#impl-TryToNav-for-GenericParam" title="GenericParam">GenericParam</a></li><li><a href="#impl-TryToNav-for-Impl" title="Impl">Impl</a></li><li><a href="#impl-TryToNav-for-InlineAsmOperand" title="InlineAsmOperand">InlineAsmOperand</a></li><li><a href="#impl-TryToNav-for-Label" title="Label">Label</a></li><li><a href="#impl-TryToNav-for-LifetimeParam" title="LifetimeParam">LifetimeParam</a></li><li><a href="#impl-TryToNav-for-Macro" title="Macro">Macro</a></li><li><a href="#impl-TryToNav-for-ModuleDef" title="ModuleDef">ModuleDef</a></li><li><a href="#impl-TryToNav-for-TypeOrConstParam" title="TypeOrConstParam">TypeOrConstParam</a></li><li><a href="#impl-TryToNav-for-TypeParam" title="TypeParam">TypeParam</a></li></ul><h3><a href="#implementors">Implementors</a></h3></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>Trait <span class="trait">TryToNav</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/navigation_target.rs.html#82-84">Source</a> </span></div><pre class="rust item-decl"><code>pub trait TryToNav {
// Required method
fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;;
}</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.try_to_nav" class="method"><a class="src rightside" href="../src/ide/navigation_target.rs.html#83">Source</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-Adt" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#518-526">Source</a><a href="#impl-TryToNav-for-Adt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for Adt</h3></section></summary><div class="impl-items"><section id="method.try_to_nav" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#519-525">Source</a><a href="#method.try_to_nav" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-AssocItem" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#528-536">Source</a><a href="#impl-TryToNav-for-AssocItem" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for AssocItem</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-1" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#529-535">Source</a><a href="#method.try_to_nav-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-ConstParam" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#678-706">Source</a><a href="#impl-TryToNav-for-ConstParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for ConstParam</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-2" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#679-705">Source</a><a href="#method.try_to_nav-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-Definition" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#225-256">Source</a><a href="#impl-TryToNav-for-Definition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for Definition</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-3" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#226-255">Source</a><a href="#method.try_to_nav-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-ExternCrateDecl" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#435-464">Source</a><a href="#impl-TryToNav-for-ExternCrateDecl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for ExternCrateDecl</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-4" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#436-463">Source</a><a href="#method.try_to_nav-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-Field" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#466-495">Source</a><a href="#impl-TryToNav-for-Field" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for Field</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-5" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#467-494">Source</a><a href="#method.try_to_nav-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-FileSymbol" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#182-223">Source</a><a href="#impl-TryToNav-for-FileSymbol" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for FileSymbol</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-6" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#183-222">Source</a><a href="#method.try_to_nav-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-GenericParam" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#538-546">Source</a><a href="#impl-TryToNav-for-GenericParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for GenericParam</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-7" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#539-545">Source</a><a href="#method.try_to_nav-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-Impl" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#411-433">Source</a><a href="#impl-TryToNav-for-Impl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for Impl</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-8" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#412-432">Source</a><a href="#method.try_to_nav-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-InlineAsmOperand" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#708-731">Source</a><a href="#impl-TryToNav-for-InlineAsmOperand" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for InlineAsmOperand</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-9" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#709-730">Source</a><a href="#method.try_to_nav-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-Label" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#591-611">Source</a><a href="#impl-TryToNav-for-Label" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for Label</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-10" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#592-610">Source</a><a href="#method.try_to_nav-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-LifetimeParam" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#656-676">Source</a><a href="#impl-TryToNav-for-LifetimeParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for LifetimeParam</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-11" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#657-675">Source</a><a href="#method.try_to_nav-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-Macro" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#497-516">Source</a><a href="#impl-TryToNav-for-Macro" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for Macro</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-12" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#498-515">Source</a><a href="#method.try_to_nav-12" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-ModuleDef" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#258-274">Source</a><a href="#impl-TryToNav-for-ModuleDef" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for ModuleDef</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-13" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#259-273">Source</a><a href="#method.try_to_nav-13" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-TypeOrConstParam" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#650-654">Source</a><a href="#impl-TryToNav-for-TypeOrConstParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for TypeOrConstParam</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-14" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#651-653">Source</a><a href="#method.try_to_nav-14" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-TypeParam" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#613-648">Source</a><a href="#impl-TryToNav-for-TypeParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for TypeParam</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-15" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#614-647">Source</a><a href="#method.try_to_nav-15" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryToNav-for-Either%3CT,+U%3E" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#86-93">Source</a><a href="#impl-TryToNav-for-Either%3CT,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a>, U: <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a>&gt; <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a>&lt;T, U&gt;</h3></section></summary><div class="impl-items"><section id="method.try_to_nav-16" class="method trait-impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#87-92">Source</a><a href="#method.try_to_nav-16" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_to_nav" class="fn">try_to_nav</a>(
&amp;self,
db: &amp;<a class="struct" href="struct.RootDatabase.html" title="struct ide::RootDatabase">RootDatabase</a>,
) -&gt; <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.UpmappingResult.html" title="struct ide::UpmappingResult">UpmappingResult</a>&lt;<a class="struct" href="struct.NavigationTarget.html" title="struct ide::NavigationTarget">NavigationTarget</a>&gt;&gt;</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-TryToNav-for-D" class="impl"><a class="src rightside" href="../src/ide/navigation_target.rs.html#354-376">Source</a><a href="#impl-TryToNav-for-D" class="anchor">§</a><h3 class="code-header">impl&lt;D&gt; <a class="trait" href="trait.TryToNav.html" title="trait ide::TryToNav">TryToNav</a> for D<div class="where">where
D: HasSource + ToNavFromAst + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + HasDocs + HirDisplay,
D::Ast: HasName,</div></h3></section></div><script src="../trait.impl/ide/navigation_target/trait.TryToNav.js" data-ignore-extern-crates="either,hir,ide_db" async></script></section></div></main></body></html>