mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-03-09 19:49:09 +00:00
3 lines
10 KiB
HTML
3 lines
10 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="`render` module provides utilities for rendering completion suggestions into code pieces that will be presented to user."><title>ide_completion::render - 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-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ide_completion" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.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-a410ff4d.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 mod"><!--[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="#">Module render</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ide_completion/index.html">ide_<wbr>completion</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module render</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate ide_<wbr>completion</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">ide_completion</a></div><h1>Module <span>render</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/ide_completion/render.rs.html#1-3424">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><code>render</code> module provides utilities for rendering completion suggestions
|
|
into code pieces that will be presented to user.</p>
|
|
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="const_/index.html" title="mod ide_completion::render::const_">const_</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Renderer for <code>const</code> fields.</dd><dt><a class="mod" href="function/index.html" title="mod ide_completion::render::function">function</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Renderer for function calls.</dd><dt><a class="mod" href="literal/index.html" title="mod ide_completion::render::literal">literal</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Renderer for <code>enum</code> variants.</dd><dt><a class="mod" href="macro_/index.html" title="mod ide_completion::render::macro_">macro_</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Renderer for macro invocations.</dd><dt><a class="mod" href="pattern/index.html" title="mod ide_completion::render::pattern">pattern</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Renderer for patterns.</dd><dt><a class="mod" href="type_alias/index.html" title="mod ide_completion::render::type_alias">type_<wbr>alias</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Renderer for type aliases.</dd><dt><a class="mod" href="union_literal/index.html" title="mod ide_completion::render::union_literal">union_<wbr>literal</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Renderer for <code>union</code> literals.</dd><dt><a class="mod" href="variant/index.html" title="mod ide_completion::render::variant">variant</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Code common to structs, unions, and enum variants.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.RenderContext.html" title="struct ide_completion::render::RenderContext">Render<wbr>Context</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Interface for data and methods required for items rendering.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.compute_exact_name_match.html" title="fn ide_completion::render::compute_exact_name_match">compute_<wbr>exact_<wbr>name_<wbr>match</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.compute_ref_match.html" title="fn ide_completion::render::compute_ref_match">compute_<wbr>ref_<wbr>match</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.compute_type_match.html" title="fn ide_completion::render::compute_type_match">compute_<wbr>type_<wbr>match</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.field_with_receiver.html" title="fn ide_completion::render::field_with_receiver">field_<wbr>with_<wbr>receiver</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.get_import_name.html" title="fn ide_completion::render::get_import_name">get_<wbr>import_<wbr>name</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.match_types.html" title="fn ide_completion::render::match_types">match_<wbr>types</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.path_ref_match.html" title="fn ide_completion::render::path_ref_match">path_<wbr>ref_<wbr>match</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_expr.html" title="fn ide_completion::render::render_expr">render_<wbr>expr</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_field.html" title="fn ide_completion::render::render_field">render_<wbr>field</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_path_resolution.html" title="fn ide_completion::render::render_path_resolution">render_<wbr>path_<wbr>resolution</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_pattern_resolution.html" title="fn ide_completion::render::render_pattern_resolution">render_<wbr>pattern_<wbr>resolution</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_resolution_pat.html" title="fn ide_completion::render::render_resolution_pat">render_<wbr>resolution_<wbr>pat</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_resolution_path.html" title="fn ide_completion::render::render_resolution_path">render_<wbr>resolution_<wbr>path</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_resolution_simple_.html" title="fn ide_completion::render::render_resolution_simple_">render_<wbr>resolution_<wbr>simple_</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_resolution_with_import.html" title="fn ide_completion::render::render_resolution_with_import">render_<wbr>resolution_<wbr>with_<wbr>import</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_resolution_with_import_pat.html" title="fn ide_completion::render::render_resolution_with_import_pat">render_<wbr>resolution_<wbr>with_<wbr>import_<wbr>pat</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_tuple_field.html" title="fn ide_completion::render::render_tuple_field">render_<wbr>tuple_<wbr>field</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.render_type_inference.html" title="fn ide_completion::render::render_type_inference">render_<wbr>type_<wbr>inference</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.res_to_kind.html" title="fn ide_completion::render::res_to_kind">res_<wbr>to_<wbr>kind</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.scope_def_docs.html" title="fn ide_completion::render::scope_def_docs">scope_<wbr>def_<wbr>docs</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.scope_def_is_deprecated.html" title="fn ide_completion::render::scope_def_is_deprecated">scope_<wbr>def_<wbr>is_<wbr>deprecated</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.scope_def_to_name.html" title="fn ide_completion::render::scope_def_to_name">scope_<wbr>def_<wbr>to_<wbr>name</a><span title="Restricted Visibility"> 🔒</span> </dt></dl></section></div></main></body></html> |