rust-analyzer/hir/trait.HirDisplay.html

111 lines
45 KiB
HTML
Raw Normal View History

<!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 `HirDisplay` trait in crate `hir`."><title>HirDisplay in hir - 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="hir" 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="../hir/index.html">hir</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">HirDisplay</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.hir_fmt" title="hir_fmt">hir_fmt</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.display" title="display">display</a></li><li><a href="#method.display_limited" title="display_limited">display_limited</a></li><li><a href="#method.display_source_code" title="display_source_code">display_source_code</a></li><li><a href="#method.display_test" title="display_test">display_test</a></li><li><a href="#method.display_truncated" title="display_truncated">display_truncated</a></li><li><a href="#method.display_with_container_bounds" title="display_with_container_bounds">display_with_container_bounds</a></li><li><a href="#method.into_displayable" title="into_displayable">into_displayable</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-HirDisplay-for-%26T" title="&#38;T">&#38;T</a></li><li><a href="#impl-HirDisplay-for-BoundVar" title="BoundVar">BoundVar</a></li><li><a href="#impl-HirDisplay-for-Const%3CInterner%3E" title="Const&#60;Interner&#62;">Const&#60;Interner&#62;</a></li><li><a href="#impl-HirDisplay-for-DomainGoal%3CInterner%3E" title="DomainGoal&#60;Interner&#62;">DomainGoal&#60;Interner&#62;</a></li><li><a href="#impl-HirDisplay-for-GenericArg%3CInterner%3E" title="GenericArg&#60;Interner&#62;">GenericArg&#60;Interner&#62;</a></li><li><a href="#impl-HirDisplay-for-Interned%3CT%3E" title="Interned&#60;T&#62;">Interned&#60;T&#62;</a></li><li><a href="#impl-HirDisplay-for-Lifetime%3CInterner%3E" title="Lifetime&#60;Interner&#62;">Lifetime&#60;Interner&#62;</a></li><li><a href="#impl-HirDisplay-for-LifetimeData%3CInterner%3E" title="LifetimeData&#60;Interner&#62;">LifetimeData&#60;Interner&#62;</a></li><li><a href="#impl-HirDisplay-for-LifetimeOutlives%3CInterner%3E" title="LifetimeOutlives&#60;Interner&#62;">LifetimeOutlives&#60;Interner&#62;</a></
// Required method
fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.HirDisplayError.html" title="enum hir::HirDisplayError">HirDisplayError</a>&gt;;
// Provided methods
fn <a href="#method.into_displayable" class="fn">into_displayable</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
max_size: <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.usize.html">usize</a>&gt;,
limited_size: <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.usize.html">usize</a>&gt;,
omit_verbose_types: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
display_target: DisplayTarget,
closure_style: <a class="enum" href="enum.ClosureStyle.html" title="enum hir::ClosureStyle">ClosureStyle</a>,
show_container_bounds: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.display" class="fn">display</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.display_truncated" class="fn">display_truncated</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
max_size: <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.usize.html">usize</a>&gt;,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.display_limited" class="fn">display_limited</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
limited_size: <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.usize.html">usize</a>&gt;,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.display_source_code" class="fn">display_source_code</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
module_id: ModuleId,
allow_opaque: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
) -&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;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, DisplaySourceCodeError&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.display_test" class="fn">display_test</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.display_with_container_bounds" class="fn">display_with_container_bounds</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
show_container_bounds: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
}</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.hir_fmt" class="method"><h4 class="code-header">fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.HirDisplayError.html" title="enum hir::HirDisplayError">HirDisplayError</a>&gt;</h4></section></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.into_displayable" class="method"><h4 class="code-header">fn <a href="#method.into_displayable" class="fn">into_displayable</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
max_size: <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.usize.html">usize</a>&gt;,
limited_size: <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.usize.html">usize</a>&gt;,
omit_verbose_types: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
display_target: DisplayTarget,
closure_style: <a class="enum" href="enum.ClosureStyle.html" title="enum hir::ClosureStyle">ClosureStyle</a>,
show_container_bounds: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;<div class="where">where
Self: <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></h4></section></summary><div class="docblock"><p>Returns a <code>Display</code>able type that is human-readable.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.display" class="method"><h4 class="code-header">fn <a href="#method.display" class="fn">display</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;<div class="where">where
Self: <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></h4></section></summary><div class="docblock"><p>Returns a <code>Display</code>able type that is human-readable.
Use this for showing types to the user (e.g. diagnostics)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.display_truncated" class="method"><h4 class="code-header">fn <a href="#method.display_truncated" class="fn">display_truncated</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
max_size: <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.usize.html">usize</a>&gt;,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;<div class="where">where
Self: <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></h4></section></summary><div class="docblock"><p>Returns a <code>Display</code>able type that is human-readable and tries to be succinct.
Use this for showing types to the user where space is constrained (e.g. doc popups)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.display_limited" class="method"><h4 class="code-header">fn <a href="#method.display_limited" class="fn">display_limited</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
limited_size: <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.usize.html">usize</a>&gt;,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;<div class="where">where
Self: <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></h4></section></summary><div class="docblock"><p>Returns a <code>Display</code>able type that is human-readable and tries to limit the number of items inside.
Use this for showing definitions which may contain too many items, like <code>trait</code>, <code>struct</code>, <code>enum</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.display_source_code" class="method"><h4 class="code-header">fn <a href="#method.display_source_code" class="fn">display_source_code</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
module_id: ModuleId,
allow_opaque: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
) -&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;<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, DisplaySourceCodeError&gt;</h4></section></summary><div class="docblock"><p>Returns a String representation of <code>self</code> that can be inserted into the given module.
Use this when generating code (e.g. assists)</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.display_test" class="method"><h4 class="code-header">fn <a href="#method.display_test" class="fn">display_test</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;<div class="where">where
Self: <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></h4></section></summary><div class="docblock"><p>Returns a String representation of <code>self</code> for test purposes</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.display_with_container_bounds" class="method"><h4 class="code-header">fn <a href="#method.display_with_container_bounds" class="fn">display_with_container_bounds</a>&lt;'a&gt;(
&amp;'a self,
db: &amp;'a dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>,
show_container_bounds: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
edition: Edition,
) -&gt; HirDisplayWrapper&lt;'a, Self&gt;<div class="where">where
Self: <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></h4></section></summary><div class="docblock"><p>Returns a String representation of <code>self</code> that shows the constraint from
the container for functions</p>
</div></details></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-HirDisplay-for-BoundVar" class="impl"><a href="#impl-HirDisplay-for-BoundVar" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for BoundVar</h3></section></summary><div class="impl-items"><section id="method.hir_fmt" class="method trait-impl"><a href="#method.hir_fmt" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.HirDisplayError.html" title="enum hir::HirDisplayError">HirDisplayError</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HirDisplay-for-Const%3CInterner%3E" class="impl"><a href="#impl-HirDisplay-for-Const%3CInterner%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for Const&lt;<a class="struct" href="struct.ChalkTyInterner.html" title="struct hir::ChalkTyInterner">Interner</a>&gt;</h3></section></summary><div class="impl-items"><section id="method.hir_fmt-1" class="method trait-impl"><a href="#method.hir_fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.HirDisplayError.html" title="enum hir::HirDisplayError">HirDisplayError</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HirDisplay-for-DomainGoal%3CInterner%3E" class="impl"><a href="#impl-HirDisplay-for-DomainGoal%3CInterner%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for DomainGoal&lt;<a class="struct" href="struct.ChalkTyInterner.html" title="struct hir::ChalkTyInterner">Interner</a>&gt;</h3></section></summary><div class="impl-items"><section id="method.hir_fmt-2" class="method trait-impl"><a href="#method.hir_fmt-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.HirDisplayError.html" title="enum hir::HirDisplayError">HirDisplayError</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HirDisplay-for-GenericArg%3CInterner%3E" class="impl"><a href="#impl-HirDisplay-for-GenericArg%3CInterner%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for GenericArg&lt;<a class="struct" href="struct.ChalkTyInterner.html" title="struct hir::ChalkTyInterner">Interner</a>&gt;</h3></section></summary><div class="impl-items"><section id="method.hir_fmt-3" class="method trait-impl"><a href="#method.hir_fmt-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="e
T: <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a>,</div></h3></section></summary><div class="impl-items"><section id="method.hir_fmt-12" class="method trait-impl"><a href="#method.hir_fmt-12" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.HirDisplayError.html" title="enum hir::HirDisplayError">HirDisplayError</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HirDisplay-for-Interned%3CT%3E" class="impl"><a href="#impl-HirDisplay-for-Interned%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for Interned&lt;T&gt;<div class="where">where
T: <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> + Internable,</div></h3></section></summary><div class="impl-items"><section id="method.hir_fmt-13" class="method trait-impl"><a href="#method.hir_fmt-13" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.hir_fmt" class="fn">hir_fmt</a>(&amp;self, f: &amp;mut HirFormatter&lt;'_&gt;) -&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.HirDisplayError.html" title="enum hir::HirDisplayError">HirDisplayError</a>&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-HirDisplay-for-Adt" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#227-235">Source</a><a href="#impl-HirDisplay-for-Adt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for <a class="enum" href="enum.Adt.html" title="enum hir::Adt">Adt</a></h3></section><section id="impl-HirDisplay-for-GenericParam" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#448-456">Source</a><a href="#impl-HirDisplay-for-GenericParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for <a class="enum" href="enum.GenericParam.html" title="enum hir::GenericParam">GenericParam</a></h3></section><section id="impl-HirDisplay-for-Const" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#714-733">Source</a><a href="#impl-HirDisplay-for-Const" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for hir::<a class="struct" href="struct.Const.html" title="struct hir::Const">Const</a></h3></section><section id="impl-HirDisplay-for-ConstParam" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#545-550">Source</a><a href="#impl-HirDisplay-for-ConstParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for <a class="struct" href="struct.ConstParam.html" title="struct hir::ConstParam">ConstParam</a></h3></section><section id="impl-HirDisplay-for-Crate" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#865-872">Source</a><a href="#impl-HirDisplay-for-Crate" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for <a class="struct" href="struct.Crate.html" title="struct hir::Crate">Crate</a></h3></section><section id="impl-HirDisplay-for-Enum" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#278-293">Source</a><a href="#impl-HirDisplay-for-Enum" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for <a class="struct" href="struct.Enum.html" title="struct hir::Enum">Enum</a></h3></section><section id="impl-HirDisplay-for-ExternCrateDecl" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#436-446">Source</a><a href="#impl-HirDisplay-for-ExternCrateDecl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title="trait hir::HirDisplay">HirDisplay</a> for <a class="struct" href="struct.ExternCrateDecl.html" title="struct hir::ExternCrateDecl">ExternCrateDecl</a></h3></section><section id="impl-HirDisplay-for-Field" class="impl"><a class="src rightside" href="../src/hir/display.rs.html#385-391">Source</a><a href="#impl-HirDisplay-for-Field" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HirDisplay.html" title=