blob: 8161f7c5da0be1becedf9547ffa5cb61f6b55113 [file] [log] [blame] [edit]
<!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_expand`."><title>Intern in hir_expand - 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_expand" 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_expand/index.html">hir_<wbr>expand</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="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate hir_<wbr>expand</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_expand</a></div><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-112">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Intern {
type <a href="#associatedtype.Database" class="associatedtype">Database</a>: ?<a class="trait" href="https://doc.rust-lang.org/1.89.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_expand::Intern::Database">Database</a>) -&gt; Self::<a class="associatedtype" href="trait.Intern.html#associatedtype.ID" title="type hir_expand::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>: ?<a class="trait" href="https://doc.rust-lang.org/1.89.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_expand::Intern::Database">Database</a>) -&gt; Self::<a class="associatedtype" href="trait.Intern.html#associatedtype.ID" title="type hir_expand::Intern::ID">ID</a></h4></section></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-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_expand::Intern">Intern</a> for <a class="struct" href="struct.MacroCallLoc.html" title="struct hir_expand::MacroCallLoc">MacroCallLoc</a></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#120-126">Source</a><a href="#associatedtype.Database-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Database" class="associatedtype">Database</a> = dyn <a class="trait" href="db/trait.ExpandDatabase.html" title="trait hir_expand::db::ExpandDatabase">ExpandDatabase</a></h4></section><section id="associatedtype.ID-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir_expand/lib.rs.html#120-126">Source</a><a href="#associatedtype.ID-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.ID" class="associatedtype">ID</a> = <a class="struct" href="struct.MacroCallId.html" title="struct hir_expand::MacroCallId">MacroCallId</a></h4></section></div></details></div><script src="../trait.impl/hir_expand/trait.Intern.js" async></script></section></div></main></body></html>