| <!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 `Ident` type in crate `hir_expand`."><title>Ident in hir_expand::tt - 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"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-e56847b5.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.91.1 (ed61e7d7e 2025-11-07)" data-channel="1.91.1" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-c3e638e9.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-6dc2a7f3.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Ident</a></h2></rustdoc-topbar><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="#">Ident</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.is_raw" title="is_raw">is_raw</a></li><li><a href="#structfield.span" title="span">span</a></li><li><a href="#structfield.sym" title="sym">sym</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-ToTokenTree-for-Ident%3CSpanData%3CSyntaxContext%3E%3E" title="ToTokenTree">ToTokenTree</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In hir_<wbr>expand::<wbr>tt</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">hir_expand</a>::<wbr><a href="index.html">tt</a></div><h1>Type Alias <span class="type">Ident</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#77">Source</a> </span></div><pre class="rust item-decl"><code>pub type Ident = Ident<<a class="type" href="type.Span.html" title="type hir_expand::tt::Span">Span</a>>;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub struct Ident { |
| pub sym: Symbol, |
| pub span: SpanData<SyntaxContext>, |
| pub is_raw: <a class="enum" href="enum.IdentIsRaw.html" title="enum hir_expand::tt::IdentIsRaw">IdentIsRaw</a>, |
| }</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.sym" class="structfield section-header"><a href="#structfield.sym" class="anchor field">§</a><code>sym: Symbol</code></span><span id="structfield.span" class="structfield section-header"><a href="#structfield.span" class="anchor field">§</a><code>span: SpanData<SyntaxContext></code></span><span id="structfield.is_raw" class="structfield section-header"><a href="#structfield.is_raw" class="anchor field">§</a><code>is_raw: <a class="enum" href="enum.IdentIsRaw.html" title="enum hir_expand::tt::IdentIsRaw">IdentIsRaw</a></code></span><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-ToTokenTree-for-Ident%3CSpanData%3CSyntaxContext%3E%3E" class="impl"><a class="src rightside" href="../../src/hir_expand/builtin/quote.rs.html#202-221">Source</a><a href="#impl-ToTokenTree-for-Ident%3CSpanData%3CSyntaxContext%3E%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../builtin/quote/trait.ToTokenTree.html" title="trait hir_expand::builtin::quote::ToTokenTree">ToTokenTree</a> for <a class="type" href="type.Ident.html" title="type hir_expand::tt::Ident">Ident</a></h3></section></summary><div class="impl-items"><section id="method.to_tokens" class="method trait-impl"><a class="src rightside" href="../../src/hir_expand/builtin/quote.rs.html#202-221">Source</a><a href="#method.to_tokens" class="anchor">§</a><h4 class="code-header">fn <a href="../builtin/quote/trait.ToTokenTree.html#tymethod.to_tokens" class="fn">to_tokens</a>(self, _span: <a class="type" href="type.Span.html" title="type hir_expand::tt::Span">Span</a>, builder: &mut <a class="type" href="type.TopSubtreeBuilder.html" title="type hir_expand::tt::TopSubtreeBuilder">TopSubtreeBuilder</a>)</h4></section></div></details></div><script src="../../type.impl/tt/struct.Ident.js" data-self-path="hir_expand::tt::Ident" async></script></section></div></main></body></html> |