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

10 lines
No EOL
37 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 `Intern` trait in crate `hir_def`."><title>Intern in hir_def - 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_def" 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_def/index.html">hir_def</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Intern</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Database" title="Database">Database</a></li><li><a href="#associatedtype.ID" title="ID">ID</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.intern" title="intern">intern</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Intern-for-SyntaxContextData" title="SyntaxContextData">SyntaxContextData</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate hir_<wbr>def</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">hir_def</a></span><h1>Trait <span class="trait">Intern</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_expand/lib.rs.html#108">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Intern {
type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt;: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>;
type <a href="#associatedtype.ID" class="associatedtype">ID</a>;
// Required method
fn <a href="#tymethod.intern" class="fn">intern</a>(self, db: &amp;Self::<a class="associatedtype" href="trait.Intern.html#associatedtype.Database" title="type hir_def::Intern::Database">Database</a>&lt;'_&gt;) -&gt; Self::<a class="associatedtype" href="trait.Intern.html#associatedtype.ID" title="type hir_def::Intern::ID">ID</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.Database" class="method"><a class="src rightside" href="../src/hir_expand/lib.rs.html#109">Source</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt;: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></h4></section><section id="associatedtype.ID" class="method"><a class="src rightside" href="../src/hir_expand/lib.rs.html#110">Source</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a></h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.intern" class="method"><a class="src rightside" href="../src/hir_expand/lib.rs.html#111">Source</a><h4 class="code-header">fn <a href="#tymethod.intern" class="fn">intern</a>(self, db: &amp;Self::<a class="associatedtype" href="trait.Intern.html#associatedtype.Database" title="type hir_def::Intern::Database">Database</a>&lt;'_&gt;) -&gt; Self::<a class="associatedtype" href="trait.Intern.html#associatedtype.ID" title="type hir_def::Intern::ID">ID</a></h4></section></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.0/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></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-Intern-for-SyntaxContextData" class="impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#128-134">Source</a><a href="#impl-Intern-for-SyntaxContextData" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for SyntaxContextData</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#128-134">Source</a><a href="#associatedtype.Database-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="../hir_expand/db/trait.ExpandDatabase.html" title="trait hir_expand::db::ExpandDatabase">ExpandDatabase</a> + 'db</h4></section><section id="associatedtype.ID-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#128-134">Source</a><a href="#associatedtype.ID-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = SyntaxContextId</h4></section><section id="method.intern" class="method trait-impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#128-134">Source</a><a href="#method.intern" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.intern" class="fn">intern</a>(
self,
db: &amp;&lt;SyntaxContextData as <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a>&gt;::<a class="associatedtype" href="trait.Intern.html#associatedtype.Database" title="type hir_def::Intern::Database">Database</a>&lt;'_&gt;,
) -&gt; SyntaxContextId</h4></section></div></details><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-Intern-for-MacroCallLoc" class="impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#120-126">Source</a><a href="#impl-Intern-for-MacroCallLoc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="../hir_expand/struct.MacroCallLoc.html" title="struct hir_expand::MacroCallLoc">MacroCallLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#120-126">Source</a><a href="#associatedtype.Database-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="../hir_expand/db/trait.ExpandDatabase.html" title="trait hir_expand::db::ExpandDatabase">ExpandDatabase</a> + 'db</h4></section><section id="associatedtype.ID-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#120-126">Source</a><a href="#associatedtype.ID-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = MacroCallId</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-AssocItemLoc%3CConst%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#237">Source</a><a href="#impl-Intern-for-AssocItemLoc%3CConst%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.AssocItemLoc.html" title="struct hir_def::AssocItemLoc">AssocItemLoc</a>&lt;<a class="struct" href="item_tree/struct.Const.html" title="struct hir_def::item_tree::Const">Const</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#237">Source</a><a href="#associatedtype.Database-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#237">Source</a><a href="#associatedtype.ID-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.ConstId.html" title="struct hir_def::ConstId">ConstId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-AssocItemLoc%3CFunction%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#213">Source</a><a href="#impl-Intern-for-AssocItemLoc%3CFunction%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.AssocItemLoc.html" title="struct hir_def::AssocItemLoc">AssocItemLoc</a>&lt;<a class="struct" href="item_tree/struct.Function.html" title="struct hir_def::item_tree::Function">Function</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#213">Source</a><a href="#associatedtype.Database-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#213">Source</a><a href="#associatedtype.ID-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.FunctionId.html" title="struct hir_def::FunctionId">FunctionId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-AssocItemLoc%3CTypeAlias%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#261">Source</a><a href="#impl-Intern-for-AssocItemLoc%3CTypeAlias%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.AssocItemLoc.html" title="struct hir_def::AssocItemLoc">AssocItemLoc</a>&lt;<a class="struct" href="item_tree/struct.TypeAlias.html" title="struct hir_def::item_tree::TypeAlias">TypeAlias</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#261">Source</a><a href="#associatedtype.Database-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#261">Source</a><a href="#associatedtype.ID-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.TypeAliasId.html" title="struct hir_def::TypeAliasId">TypeAliasId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-BlockLoc" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#363">Source</a><a href="#impl-Intern-for-BlockLoc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.BlockLoc.html" title="struct hir_def::BlockLoc">BlockLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#363">Source</a><a href="#associatedtype.Database-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#363">Source</a><a href="#associatedtype.ID-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.BlockId.html" title="struct hir_def::BlockId">BlockId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ConstBlockLoc" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#369">Source</a><a href="#impl-Intern-for-ConstBlockLoc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.ConstBlockLoc.html" title="struct hir_def::ConstBlockLoc">ConstBlockLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#369">Source</a><a href="#associatedtype.Database-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#369">Source</a><a href="#associatedtype.ID-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.ConstBlockId.html" title="struct hir_def::ConstBlockId">ConstBlockId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-EnumVariantLoc" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#297">Source</a><a href="#impl-Intern-for-EnumVariantLoc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.EnumVariantLoc.html" title="struct hir_def::EnumVariantLoc">EnumVariantLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#297">Source</a><a href="#associatedtype.Database-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#297">Source</a><a href="#associatedtype.ID-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.EnumVariantId.html" title="struct hir_def::EnumVariantId">EnumVariantId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-InTypeConstLoc" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#809">Source</a><a href="#impl-Intern-for-InTypeConstLoc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.InTypeConstLoc.html" title="struct hir_def::InTypeConstLoc">InTypeConstLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#809">Source</a><a href="#associatedtype.Database-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#809">Source</a><a href="#associatedtype.ID-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.InTypeConstId.html" title="struct hir_def::InTypeConstId">InTypeConstId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CExternBlock%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#285">Source</a><a href="#impl-Intern-for-ItemLoc%3CExternBlock%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.ItemLoc.html" title="struct hir_def::ItemLoc">ItemLoc</a>&lt;<a class="struct" href="item_tree/struct.ExternBlock.html" title="struct hir_def::item_tree::ExternBlock">ExternBlock</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#285">Source</a><a href="#associatedtype.Database-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#285">Source</a><a href="#associatedtype.ID-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.ExternBlockId.html" title="struct hir_def::ExternBlockId">ExternBlockId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CExternCrate%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#279">Source</a><a href="#impl-Intern-for-ItemLoc%3CExternCrate%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.ItemLoc.html" title="struct hir_def::ItemLoc">ItemLoc</a>&lt;<a class="struct" href="item_tree/struct.ExternCrate.html" title="struct hir_def::item_tree::ExternCrate">ExternCrate</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#279">Source</a><a href="#associatedtype.Database-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#279">Source</a><a href="#associatedtype.ID-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.ExternCrateId.html" title="struct hir_def::ExternCrateId">ExternCrateId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CImpl%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#267">Source</a><a href="#impl-Intern-for-ItemLoc%3CImpl%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.ItemLoc.html" title="struct hir_def::ItemLoc">ItemLoc</a>&lt;<a class="struct" href="item_tree/struct.Impl.html" title="struct hir_def::item_tree::Impl">Impl</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#267">Source</a><a href="#associatedtype.Database-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#267">Source</a><a href="#associatedtype.ID-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.ImplId.html" title="struct hir_def::ImplId">ImplId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CStruct%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#219">Source</a><a href="#impl-Intern-for-ItemLoc%3CStruct%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.ItemLoc.html" title="struct hir_def::ItemLoc">ItemLoc</a>&lt;<a class="struct" href="item_tree/struct.Struct.html" title="struct hir_def::item_tree::Struct">Struct</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-13" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#219">Source</a><a href="#associatedtype.Database-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-13" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#219">Source</a><a href="#associatedtype.ID-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.StructId.html" title="struct hir_def::StructId">StructId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CUse%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#273">Source</a><a href="#impl-Intern-for-ItemLoc%3CUse%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.ItemLoc.html" title="struct hir_def::ItemLoc">ItemLoc</a>&lt;<a class="struct" href="item_tree/struct.Use.html" title="struct hir_def::item_tree::Use">Use</a>&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Database-14" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#273">Source</a><a href="#associatedtype.Database-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-14" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#273">Source</a><a href="#associatedtype.ID-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.UseId.html" title="struct hir_def::UseId">UseId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-Macro2Loc" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#310">Source</a><a href="#impl-Intern-for-Macro2Loc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.Macro2Loc.html" title="struct hir_def::Macro2Loc">Macro2Loc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-15" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#310">Source</a><a href="#associatedtype.Database-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-15" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#310">Source</a><a href="#associatedtype.ID-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.Macro2Id.html" title="struct hir_def::Macro2Id">Macro2Id</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-MacroRulesLoc" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#323">Source</a><a href="#impl-Intern-for-MacroRulesLoc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.MacroRulesLoc.html" title="struct hir_def::MacroRulesLoc">MacroRulesLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-16" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#323">Source</a><a href="#associatedtype.Database-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-16" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#323">Source</a><a href="#associatedtype.ID-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.MacroRulesId.html" title="struct hir_def::MacroRulesId">MacroRulesId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ProcMacroLoc" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#352">Source</a><a href="#impl-Intern-for-ProcMacroLoc" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="struct" href="struct.ProcMacroLoc.html" title="struct hir_def::ProcMacroLoc">ProcMacroLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-17" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#352">Source</a><a href="#associatedtype.Database-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-17" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#352">Source</a><a href="#associatedtype.ID-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.ProcMacroId.html" title="struct hir_def::ProcMacroId">ProcMacroId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CEnum%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#231">Source</a><a href="#impl-Intern-for-ItemLoc%3CEnum%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="type" href="type.EnumLoc.html" title="type hir_def::EnumLoc">EnumLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-18" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#231">Source</a><a href="#associatedtype.Database-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-18" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#231">Source</a><a href="#associatedtype.ID-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.EnumId.html" title="struct hir_def::EnumId">EnumId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-AssocItemLoc%3CStatic%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#243">Source</a><a href="#impl-Intern-for-AssocItemLoc%3CStatic%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="type" href="type.StaticLoc.html" title="type hir_def::StaticLoc">StaticLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-19" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#243">Source</a><a href="#associatedtype.Database-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-19" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#243">Source</a><a href="#associatedtype.ID-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.StaticId.html" title="struct hir_def::StaticId">StaticId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CTraitAlias%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#255">Source</a><a href="#impl-Intern-for-ItemLoc%3CTraitAlias%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="type" href="type.TraitAliasLoc.html" title="type hir_def::TraitAliasLoc">TraitAliasLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-20" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#255">Source</a><a href="#associatedtype.Database-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-20" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#255">Source</a><a href="#associatedtype.ID-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.TraitAliasId.html" title="struct hir_def::TraitAliasId">TraitAliasId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CTrait%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#249">Source</a><a href="#impl-Intern-for-ItemLoc%3CTrait%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="type" href="type.TraitLoc.html" title="type hir_def::TraitLoc">TraitLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-21" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#249">Source</a><a href="#associatedtype.Database-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-21" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#249">Source</a><a href="#associatedtype.ID-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.TraitId.html" title="struct hir_def::TraitId">TraitId</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Intern-for-ItemLoc%3CUnion%3E" class="impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#225">Source</a><a href="#impl-Intern-for-ItemLoc%3CUnion%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Intern.html" title="trait hir_def::Intern">Intern</a> for <a class="type" href="type.UnionLoc.html" title="type hir_def::UnionLoc">UnionLoc</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Database-22" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#225">Source</a><a href="#associatedtype.Database-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a>&lt;'db&gt; = dyn <a class="trait" href="db/trait.DefDatabase.html" title="trait hir_def::db::DefDatabase">DefDatabase</a> + 'db</h4></section><section id="associatedtype.ID-22" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_def/lib.rs.html#225">Source</a><a href="#associatedtype.ID-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.UnionId.html" title="struct hir_def::UnionId">UnionId</a></h4></section></div></details></div><script src="../trait.impl/hir_expand/trait.Intern.js" data-ignore-extern-crates="hir_expand,span" async></script></section></div></main></body></html>