| <!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 `HasSource` trait in crate `hir`."><title>HasSource in hir - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-84e720fa.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.89.0 (29483883e 2025-08-04)" data-channel="1.89.0" data-search-js="search-92309212.js" data-settings-js="settings-5514c975.js" ><script src="../static.files/storage-4e99c027.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-fd3af306.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-32bb7600.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="#">HasSource</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Ast" title="Ast">Ast</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.source" title="source">source</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 hir</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">hir</a></div><h1>Trait <span class="trait">HasSource</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/hir/has_source.rs.html#20-30">Source</a> </span></div><pre class="rust item-decl"><code>pub trait HasSource { |
| type <a href="#associatedtype.Ast" class="associatedtype">Ast</a>; |
| |
| // Required method |
| fn <a href="#tymethod.source" class="fn">source</a>(self, db: &dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.89.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="type" href="type.InFile.html" title="type hir::InFile">InFile</a><Self::<a class="associatedtype" href="trait.HasSource.html#associatedtype.Ast" title="type hir::HasSource::Ast">Ast</a>>>; |
| }</code></pre><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.Ast" class="method"><a class="src rightside" href="../src/hir/has_source.rs.html#21">Source</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a></h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.source" class="method"><a class="src rightside" href="../src/hir/has_source.rs.html#29">Source</a><h4 class="code-header">fn <a href="#tymethod.source" class="fn">source</a>(self, db: &dyn <a class="trait" href="db/trait.HirDatabase.html" title="trait hir::db::HirDatabase">HirDatabase</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.89.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="type" href="type.InFile.html" title="type hir::InFile">InFile</a><Self::<a class="associatedtype" href="trait.HasSource.html#associatedtype.Ast" title="type hir::HasSource::Ast">Ast</a>>></h4></section></summary><div class="docblock"><p>Fetches the definition’s source node. |
| Using [<code>crate::Semantics::source</code>] is preferred when working with <a href="struct.Semantics.html" title="struct hir::Semantics"><code>crate::Semantics</code></a>, |
| as that caches the parsed file in the semantics’ cache.</p> |
| <p>The current some implementations can return <code>InFile</code> instead of <code>Option<InFile></code>. |
| But we made this method <code>Option</code> to support rlib in the future |
| by <a href="https://github.com/rust-lang/rust-analyzer/issues/6913">https://github.com/rust-lang/rust-analyzer/issues/6913</a></p> |
| </div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Adt" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#102-111">Source</a><a href="#impl-HasSource-for-Adt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="enum" href="enum.Adt.html" title="enum hir::Adt">Adt</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#103">Source</a><a href="#associatedtype.Ast-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Adt</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-VariantDef" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#112-121">Source</a><a href="#impl-HasSource-for-VariantDef" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="enum" href="enum.VariantDef.html" title="enum hir::VariantDef">VariantDef</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#113">Source</a><a href="#associatedtype.Ast-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = VariantDef</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Const" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#152-157">Source</a><a href="#impl-HasSource-for-Const" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Const.html" title="struct hir::Const">Const</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#153">Source</a><a href="#associatedtype.Ast-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Const</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Enum" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#134-139">Source</a><a href="#impl-HasSource-for-Enum" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Enum.html" title="struct hir::Enum">Enum</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#135">Source</a><a href="#associatedtype.Ast-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Enum</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-ExternCrateDecl" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#283-289">Source</a><a href="#impl-HasSource-for-ExternCrateDecl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.ExternCrateDecl.html" title="struct hir::ExternCrateDecl">ExternCrateDecl</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#284">Source</a><a href="#associatedtype.Ast-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = ExternCrate</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Field" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#90-101">Source</a><a href="#impl-HasSource-for-Field" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Field.html" title="struct hir::Field">Field</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#91">Source</a><a href="#associatedtype.Ast-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = <a class="enum" href="enum.FieldSource.html" title="enum hir::FieldSource">FieldSource</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Function" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#146-151">Source</a><a href="#impl-HasSource-for-Function" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Function.html" title="struct hir::Function">Function</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#147">Source</a><a href="#associatedtype.Ast-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Fn</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Impl" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#190-195">Source</a><a href="#impl-HasSource-for-Impl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Impl.html" title="struct hir::Impl">Impl</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#191">Source</a><a href="#associatedtype.Ast-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Impl</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-InlineAsmOperand" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#291-312">Source</a><a href="#impl-HasSource-for-InlineAsmOperand" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.InlineAsmOperand.html" title="struct hir::InlineAsmOperand">InlineAsmOperand</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#292">Source</a><a href="#associatedtype.Ast-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = AsmOperandNamed</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Label" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#272-281">Source</a><a href="#impl-HasSource-for-Label" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Label.html" title="struct hir::Label">Label</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#273">Source</a><a href="#associatedtype.Ast-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Label</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-LifetimeParam" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#205-211">Source</a><a href="#impl-HasSource-for-LifetimeParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.LifetimeParam.html" title="struct hir::LifetimeParam">LifetimeParam</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#206">Source</a><a href="#associatedtype.Ast-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = LifetimeParam</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-LocalSource" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#213-219">Source</a><a href="#impl-HasSource-for-LocalSource" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.LocalSource.html" title="struct hir::LocalSource">LocalSource</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#214">Source</a><a href="#associatedtype.Ast-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><IdentPat, SelfParam></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Macro" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#176-189">Source</a><a href="#impl-HasSource-for-Macro" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Macro.html" title="struct hir::Macro">Macro</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-13" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#177">Source</a><a href="#associatedtype.Ast-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Macro, Fn></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Param%3C'_%3E" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#221-258">Source</a><a href="#impl-HasSource-for-Param%3C'_%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Param.html" title="struct hir::Param">Param</a><'_></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-14" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#222">Source</a><a href="#associatedtype.Ast-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><SelfParam, Param></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-SelfParam" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#260-270">Source</a><a href="#impl-HasSource-for-SelfParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.SelfParam.html" title="struct hir::SelfParam">SelfParam</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-15" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#261">Source</a><a href="#associatedtype.Ast-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = SelfParam</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Static" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#158-163">Source</a><a href="#impl-HasSource-for-Static" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Static.html" title="struct hir::Static">Static</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-16" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#159">Source</a><a href="#associatedtype.Ast-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Static</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Struct" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#122-127">Source</a><a href="#impl-HasSource-for-Struct" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Struct.html" title="struct hir::Struct">Struct</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-17" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#123">Source</a><a href="#associatedtype.Ast-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Struct</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Trait" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#164-169">Source</a><a href="#impl-HasSource-for-Trait" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Trait.html" title="struct hir::Trait">Trait</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-18" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#165">Source</a><a href="#associatedtype.Ast-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Trait</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-TypeAlias" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#170-175">Source</a><a href="#impl-HasSource-for-TypeAlias" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.TypeAlias.html" title="struct hir::TypeAlias">TypeAlias</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-19" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#171">Source</a><a href="#associatedtype.Ast-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = TypeAlias</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-TypeOrConstParam" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#197-203">Source</a><a href="#impl-HasSource-for-TypeOrConstParam" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.TypeOrConstParam.html" title="struct hir::TypeOrConstParam">TypeOrConstParam</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-20" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#198">Source</a><a href="#associatedtype.Ast-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><TypeOrConstParam, Trait></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Union" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#128-133">Source</a><a href="#impl-HasSource-for-Union" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Union.html" title="struct hir::Union">Union</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-21" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#129">Source</a><a href="#associatedtype.Ast-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Union</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HasSource-for-Variant" class="impl"><a class="src rightside" href="../src/hir/has_source.rs.html#140-145">Source</a><a href="#impl-HasSource-for-Variant" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HasSource.html" title="trait hir::HasSource">HasSource</a> for <a class="struct" href="struct.Variant.html" title="struct hir::Variant">Variant</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Ast-22" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/has_source.rs.html#141">Source</a><a href="#associatedtype.Ast-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Ast" class="associatedtype">Ast</a> = Variant</h4></section></div></details></div><script src="../trait.impl/hir/has_source/trait.HasSource.js" async></script></section></div></main></body></html> |