| <!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="Primary API to get semantic information, like types, from syntax trees."><title>Semantics in ide - 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-b7b9f40b.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="ide" data-themes="" data-resource-suffix="" data-rustdoc-version="1.95.0 (59807616e 2026-04-14)" data-channel="1.95.0" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-b897f86f.js" data-settings-js="settings-170eb4bf.js" ><script src="../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-f7c3ffd8.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 struct"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[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="#">Semantics</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../ide/index.html">ide</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Semantics</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.db" title="db">db</a></li><li><a href="#structfield.imp" title="imp">imp</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.file_to_module_def" title="file_to_module_def">file_to_module_def</a></li><li><a href="#method.file_to_module_defs" title="file_to_module_defs">file_to_module_defs</a></li><li><a href="#method.find_namelike_at_offset_with_descend" title="find_namelike_at_offset_with_descend">find_namelike_at_offset_with_descend</a></li><li><a href="#method.find_node_at_offset_with_descend" title="find_node_at_offset_with_descend">find_node_at_offset_with_descend</a></li><li><a href="#method.find_node_at_offset_with_macros" title="find_node_at_offset_with_macros">find_node_at_offset_with_macros</a></li><li><a href="#method.find_nodes_at_offset_with_descend" title="find_nodes_at_offset_with_descend">find_nodes_at_offset_with_descend</a></li><li><a href="#method.hir_file_for" title="hir_file_for">hir_file_for</a></li><li><a href="#method.hir_file_to_module_def" title="hir_file_to_module_def">hir_file_to_module_def</a></li><li><a href="#method.hir_file_to_module_defs" title="hir_file_to_module_defs">hir_file_to_module_defs</a></li><li><a href="#method.is_nightly" title="is_nightly">is_nightly</a></li><li><a href="#method.lint_attrs" title="lint_attrs">lint_attrs</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.new_dyn" title="new_dyn">new_dyn</a></li><li><a href="#method.resolve_await_to_poll" title="resolve_await_to_poll">resolve_await_to_poll</a></li><li><a href="#method.resolve_bin_expr" title="resolve_bin_expr">resolve_bin_expr</a></li><li><a href="#method.resolve_index_expr" title="resolve_index_expr">resolve_index_expr</a></li><li><a href="#method.resolve_prefix_expr" title="resolve_prefix_expr">resolve_prefix_expr</a></li><li><a href="#method.resolve_range_expr" title="resolve_range_expr">resolve_range_expr</a></li><li><a href="#method.resolve_range_pat" title="resolve_range_pat">resolve_range_pat</a></li><li><a href="#method.resolve_try_expr" title="resolve_try_expr">resolve_try_expr</a></li><li><a href="#method.resolve_variant" title="resolve_variant">resolve_variant</a></li><li><a href="#method.to_adt_def" title="to_adt_def">to_adt_def</a></li><li><a href="#method.to_const_def" title="to_const_def">to_const_def</a></li><li><a href="#method.to_enum_def" title="to_enum_def">to_enum_def</a></li><li><a href="#method.to_enum_variant_def" title="to_enum_variant_def">to_enum_variant_def</a></li><li><a href="#method.to_fn_def" title="to_fn_def">to_fn_def</a></li><li><a href="#method.to_impl_def" title="to_impl_def">to_impl_def</a></li><li><a href="#method.to_macro_def" title="to_macro_def">to_macro_def</a></li><li><a href="#method.to_module_def" title="to_module_def">to_module_def</a></li><li><a href="#method.to_static_def" title="to_static_def">to_static_def</a></li><li><a href="#method.to_struct_def" title="to_struct_def">to_struct_def</a></li><li><a href="#method.to_trait_def" title="to_trait_def">to_trait_def</a></li><li><a href="#method.to_type_alias_def" title="to_type_alias_def">to_type_alias_def</a></li><li><a href="#method.to_union_def" title="to_union_def">to_union_def</a></li><li><a href="#method.token_ancestors_with_macros" title="token_ancestors_with_macros">token_ancestors_with_macros</a></li></ul><h3><a href="#deref-methods-SemanticsImpl%3C'db%3E">Methods from Deref<<wbr>Target=<wbr>Semantics<wbr>Impl<'db>></a></h3><ul class="block deref-methods"><li><a href="#method.adjust_edition" title="adjust_edition">adjust_edition</a></li><li><a href="#method.ancestors_at_offset_with_macros" title="ancestors_at_offset_with_macros">ancestors_at_offset_with_macros</a></li><li><a href="#method.ancestors_with_macros" title="ancestors_with_macros">ancestors_with_macros</a></li><li><a href="#method.ancestors_with_macros_file" title="ancestors_with_macros_file">ancestors_with_macros_file</a></li><li><a href="#method.as_format_args_parts" title="as_format_args_parts">as_format_args_parts</a></li><li><a href="#method.assert_contains_node" title="assert_contains_node">assert_contains_node</a></li><li><a href="#method.attach_first_edition" title="attach_first_edition">attach_first_edition</a></li><li><a href="#method.attach_first_edition_opt" title="attach_first_edition_opt">attach_first_edition_opt</a></li><li><a href="#method.binding_mode_of_pat" title="binding_mode_of_pat">binding_mode_of_pat</a></li><li><a href="#method.check_for_format_args_template" title="check_for_format_args_template">check_for_format_args_template</a></li><li><a href="#method.check_for_format_args_template_with_file" title="check_for_format_args_template_with_file">check_for_format_args_template_with_file</a></li><li><a href="#method.debug_hir_at" title="debug_hir_at">debug_hir_at</a></li><li><a href="#method.derive_helper" title="derive_helper">derive_helper</a></li><li><a href="#method.derive_helpers_in_scope" title="derive_helpers_in_scope">derive_helpers_in_scope</a></li><li><a href="#method.descend_into_macros" title="descend_into_macros">descend_into_macros</a></li><li><a href="#method.descend_into_macros_breakable" title="descend_into_macros_breakable">descend_into_macros_breakable</a></li><li><a href="#method.descend_into_macros_cb" title="descend_into_macros_cb">descend_into_macros_cb</a></li><li><a href="#method.descend_into_macros_exact" title="descend_into_macros_exact">descend_into_macros_exact</a></li><li><a href="#method.descend_into_macros_exact_with_file" title="descend_into_macros_exact_with_file">descend_into_macros_exact_with_file</a></li><li><a href="#method.descend_into_macros_no_opaque" title="descend_into_macros_no_opaque">descend_into_macros_no_opaque</a></li><li><a href="#method.descend_into_macros_single_exact" title="descend_into_macros_single_exact">descend_into_macros_single_exact</a></li><li><a href="#method.descend_node_into_attributes" title="descend_node_into_attributes">descend_node_into_attributes</a></li><li><a href="#method.descend_token_into_include_expansion" title="descend_token_into_include_expansion">descend_token_into_include_expansion</a></li><li><a href="#method.diagnostics_display_range" title="diagnostics_display_range">diagnostics_display_range</a></li><li><a href="#method.diagnostics_display_range_for_range" title="diagnostics_display_range_for_range">diagnostics_display_range_for_range</a></li><li><a href="#method.expand" title="expand">expand</a></li><li><a href="#method.expand_allowed_builtins" title="expand_allowed_builtins">expand_allowed_builtins</a></li><li><a href="#method.expand_attr_macro" title="expand_attr_macro">expand_attr_macro</a></li><li><a href="#method.expand_derive_as_pseudo_attr_macro" title="expand_derive_as_pseudo_attr_macro">expand_derive_as_pseudo_attr_macro</a></li><li><a href="#method.expand_derive_macro" title="expand_derive_macro">expand_derive_macro</a></li><li><a href="#method.expand_macro_call" title="expand_macro_call">expand_macro_call</a></li><li><a href="#method.expr_adjustments" title="expr_adjustments">expr_adjustments</a></li><li><a href="#method.find_parent_file" title="find_parent_file">find_parent_file</a></li><li><a href="#method.first_crate" title="first_crate">first_crate</a></li><li><a href="#method.fn_return_points" title="fn_return_points">fn_return_points</a></li><li><a href="#method.get_failed_obligations" title="get_failed_obligations">get_failed_obligations</a></li><li><a href="#method.get_unsafe_ops" title="get_unsafe_ops">get_unsafe_ops</a></li><li><a href="#method.get_unsafe_ops_for_unsafe_block" title="get_unsafe_ops_for_unsafe_block">get_unsafe_ops_for_unsafe_block</a></li><li><a href="#method.impl_generated_from_derive" title="impl_generated_from_derive">impl_generated_from_derive</a></li><li><a href="#method.is_attr_macro_call" title="is_attr_macro_call">is_attr_macro_call</a></li><li><a href="#method.is_derive_annotated" title="is_derive_annotated">is_derive_annotated</a></li><li><a href="#method.is_inside_macro_call" title="is_inside_macro_call">is_inside_macro_call</a></li><li><a href="#method.is_inside_unsafe" title="is_inside_unsafe">is_inside_unsafe</a></li><li><a href="#method.is_proc_macro_call" title="is_proc_macro_call">is_proc_macro_call</a></li><li><a href="#method.is_unsafe_macro_call" title="is_unsafe_macro_call">is_unsafe_macro_call</a></li><li><a href="#method.locals_used" title="locals_used">locals_used</a></li><li><a href="#method.module_definition_node" title="module_definition_node">module_definition_node</a></li><li><a href="#method.original_ast_node" title="original_ast_node">original_ast_node</a></li><li><a href="#method.original_range" title="original_range">original_range</a></li><li><a href="#method.original_range_opt" title="original_range_opt">original_range_opt</a></li><li><a href="#method.original_syntax_node_rooted" title="original_syntax_node_rooted">original_syntax_node_rooted</a></li><li><a href="#method.parse" title="parse">parse</a></li><li><a href="#method.parse_guess_edition" title="parse_guess_edition">parse_guess_edition</a></li><li><a href="#method.parse_or_expand" title="parse_or_expand">parse_or_expand</a></li><li><a href="#method.pattern_adjustments" title="pattern_adjustments">pattern_adjustments</a></li><li><a href="#method.record_literal_matched_fields" title="record_literal_matched_fields">record_literal_matched_fields</a></li><li><a href="#method.record_literal_missing_fields" title="record_literal_missing_fields">record_literal_missing_fields</a></li><li><a href="#method.record_pattern_matched_fields" title="record_pattern_matched_fields">record_pattern_matched_fields</a></li><li><a href="#method.record_pattern_missing_fields" title="record_pattern_missing_fields">record_pattern_missing_fields</a></li><li><a href="#method.rename_conflicts" title="rename_conflicts">rename_conflicts</a></li><li><a href="#method.resolve_attr_macro_call" title="resolve_attr_macro_call">resolve_attr_macro_call</a></li><li><a href="#method.resolve_bind_pat_to_const" title="resolve_bind_pat_to_const">resolve_bind_pat_to_const</a></li><li><a href="#method.resolve_derive_macro" title="resolve_derive_macro">resolve_derive_macro</a></li><li><a href="#method.resolve_expr_as_callable" title="resolve_expr_as_callable">resolve_expr_as_callable</a></li><li><a href="#method.resolve_field" title="resolve_field">resolve_field</a></li><li><a href="#method.resolve_field_fallback" title="resolve_field_fallback">resolve_field_fallback</a></li><li><a href="#method.resolve_label" title="resolve_label">resolve_label</a></li><li><a href="#method.resolve_lifetime_param" title="resolve_lifetime_param">resolve_lifetime_param</a></li><li><a href="#method.resolve_macro_call" title="resolve_macro_call">resolve_macro_call</a></li><li><a href="#method.resolve_macro_call2" title="resolve_macro_call2">resolve_macro_call2</a></li><li><a href="#method.resolve_macro_call_arm" title="resolve_macro_call_arm">resolve_macro_call_arm</a></li><li><a href="#method.resolve_method_call" title="resolve_method_call">resolve_method_call</a></li><li><a href="#method.resolve_method_call_as_callable" title="resolve_method_call_as_callable">resolve_method_call_as_callable</a></li><li><a href="#method.resolve_method_call_fallback" title="resolve_method_call_fallback">resolve_method_call_fallback</a></li><li><a href="#method.resolve_mod_path" title="resolve_mod_path">resolve_mod_path</a></li><li><a href="#method.resolve_offset_of_field" title="resolve_offset_of_field">resolve_offset_of_field</a></li><li><a href="#method.resolve_path" title="resolve_path">resolve_path</a></li><li><a href="#method.resolve_path_per_ns" title="resolve_path_per_ns">resolve_path_per_ns</a></li><li><a href="#method.resolve_path_with_subst" title="resolve_path_with_subst">resolve_path_with_subst</a></li><li><a href="#method.resolve_record_field" title="resolve_record_field">resolve_record_field</a></li><li><a href="#method.resolve_record_field_with_substitution" title="resolve_record_field_with_substitution">resolve_record_field_with_substitution</a></li><li><a href="#method.resolve_record_pat_field" title="resolve_record_pat_field">resolve_record_pat_field</a></li><li><a href="#method.resolve_record_pat_field_with_subst" title="resolve_record_pat_field_with_subst">resolve_record_pat_field_with_subst</a></li><li><a href="#method.resolve_trait" title="resolve_trait">resolve_trait</a></li><li><a href="#method.resolve_trait_impl_method" title="resolve_trait_impl_method">resolve_trait_impl_method</a></li><li><a href="#method.resolve_type" title="resolve_type">resolve_type</a></li><li><a href="#method.resolve_use_type_arg" title="resolve_use_type_arg">resolve_use_type_arg</a></li><li><a href="#method.scope" title="scope">scope</a></li><li><a href="#method.scope_at_offset" title="scope_at_offset">scope_at_offset</a></li><li><a href="#method.source" title="source">source</a></li><li><a href="#method.source_with_range" title="source_with_range">source_with_range</a></li><li><a href="#method.speculative_expand_attr_macro" title="speculative_expand_attr_macro">speculative_expand_attr_macro</a></li><li><a href="#method.speculative_expand_derive_as_pseudo_attr_macro" title="speculative_expand_derive_as_pseudo_attr_macro">speculative_expand_derive_as_pseudo_attr_macro</a></li><li><a href="#method.speculative_expand_macro_call" title="speculative_expand_macro_call">speculative_expand_macro_call</a></li><li><a href="#method.speculative_expand_raw" title="speculative_expand_raw">speculative_expand_raw</a></li><li><a href="#method.store_owner_for" title="store_owner_for">store_owner_for</a></li><li><a href="#method.to_def" title="to_def">to_def</a></li><li><a href="#method.to_def2" title="to_def2">to_def2</a></li><li><a href="#method.to_node" title="to_node">to_node</a></li><li><a href="#method.to_node_syntax" title="to_node_syntax">to_node_syntax</a></li><li><a href="#method.try_expr_returned_type" title="try_expr_returned_type">try_expr_returned_type</a></li><li><a href="#method.type_of_binding_in_pat" title="type_of_binding_in_pat">type_of_binding_in_pat</a></li><li><a href="#method.type_of_expr" title="type_of_expr">type_of_expr</a></li><li><a href="#method.type_of_pat" title="type_of_pat">type_of_pat</a></li><li><a href="#method.type_of_self" title="type_of_self">type_of_self</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Debug-for-Semantics%3C'_,+DB%3E" title="Debug">Debug</a></li><li><a href="#impl-Deref-for-Semantics%3C'db,+DB%3E" title="Deref">Deref</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Semantics%3C'db,+DB%3E" title="!Freeze">!Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Semantics%3C'db,+DB%3E" title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send-for-Semantics%3C'db,+DB%3E" title="!Send">!Send</a></li><li><a href="#impl-Sync-for-Semantics%3C'db,+DB%3E" title="!Sync">!Sync</a></li><li><a href="#impl-UnwindSafe-for-Semantics%3C'db,+DB%3E" title="!UnwindSafe">!UnwindSafe</a></li><li><a href="#impl-Unpin-for-Semantics%3C'db,+DB%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnsafeUnpin-for-Semantics%3C'db,+DB%3E" title="UnsafeUnpin">UnsafeUnpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CollectAndApply%3CT,+R%3E-for-T" title="CollectAndApply<T, R>">CollectAndApply<T, R></a></li><li><a href="#impl-ErasedDestructor-for-T" title="ErasedDestructor">ErasedDestructor</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-IntoBox%3Cdyn+Any%3E-for-T" title="IntoBox<dyn Any>">IntoBox<dyn Any></a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-Lookup%3CT%3E-for-T" title="Lookup<T>">Lookup<T></a></li><li><a href="#impl-Pointable-for-T" title="Pointable">Pointable</a></li><li><a href="#impl-Receiver-for-P" title="Receiver">Receiver</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-Upcast%3CI,+U%3E-for-T" title="Upcast<I, U>">Upcast<I, U></a></li><li><a href="#impl-UpcastFrom%3CI,+T%3E-for-T" title="UpcastFrom<I, T>">UpcastFrom<I, T></a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate ide</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" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">ide</a></div><h1>Struct <span class="struct">Semantics</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/semantics.rs.html#163">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Semantics<'db, DB><div class="where">where |
| DB: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div>{ |
| pub db: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&'db DB</a>, |
| imp: <a class="struct" href="../hir/semantics/struct.SemanticsImpl.html" title="struct hir::semantics::SemanticsImpl">SemanticsImpl</a><'db>, |
| }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Primary API to get semantic information, like types, from syntax trees.</p> |
| </div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.db" class="structfield section-header"><a href="#structfield.db" class="anchor field">§</a><code>db: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&'db DB</a></code></span><span id="structfield.imp" class="structfield section-header"><a href="#structfield.imp" class="anchor field">§</a><code>imp: <a class="struct" href="../hir/semantics/struct.SemanticsImpl.html" title="struct hir::semantics::SemanticsImpl">SemanticsImpl</a><'db></code></span><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Semantics%3C'_,+dyn+HirDatabase%3E" class="impl"><a class="src rightside" href="../src/hir/semantics.rs.html#207">Source</a><a href="#impl-Semantics%3C'_,+dyn+HirDatabase%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'_, dyn HirDatabase></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new_dyn" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#209">Source</a><h4 class="code-header">pub fn <a href="#method.new_dyn" class="fn">new_dyn</a>( |
| db: &(dyn HirDatabase + 'static), |
| ) -> <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'_, dyn HirDatabase></h4></section></summary><div class="docblock"><p>Creates an instance that’s weakly coupled to its underlying database type.</p> |
| </div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Semantics%3C'_,+DB%3E" class="impl"><a class="src rightside" href="../src/hir/semantics.rs.html#215">Source</a><a href="#impl-Semantics%3C'_,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<DB> <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'_, DB><div class="where">where |
| DB: HirDatabase,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#217">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(db: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&DB</a>) -> <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'_, DB></h4></section></summary><div class="docblock"><p>Creates an instance that’s strongly coupled to its underlying database type.</p> |
| </div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Semantics%3C'_,+DB%3E-1" class="impl"><a class="src rightside" href="../src/hir/semantics.rs.html#225">Source</a><a href="#impl-Semantics%3C'_,+DB%3E-1" class="anchor">§</a><h3 class="code-header">impl<DB> <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'_, DB><div class="where">where |
| DB: HirDatabase + ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><section id="method.hir_file_for" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#226">Source</a><h4 class="code-header">pub fn <a href="#method.hir_file_for" class="fn">hir_file_for</a>(&self, syntax_node: &SyntaxNode<RustLanguage>) -> HirFileId</h4></section><section id="method.token_ancestors_with_macros" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#230-233">Source</a><h4 class="code-header">pub fn <a href="#method.token_ancestors_with_macros" class="fn">token_ancestors_with_macros</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = SyntaxNode<RustLanguage>></h4></section><details class="toggle method-toggle" open><summary><section id="method.find_node_at_offset_with_macros" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#239-243">Source</a><h4 class="code-header">pub fn <a href="#method.find_node_at_offset_with_macros" class="fn">find_node_at_offset_with_macros</a><N>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><N><div class="where">where |
| N: AstNode,</div></h4></section></summary><div class="docblock"><p>Find an AstNode by offset inside SyntaxNode, if it is inside <em>Macrofile</em>, |
| search up until it is of the target AstNode type</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.find_node_at_offset_with_descend" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#250-254">Source</a><h4 class="code-header">pub fn <a href="#method.find_node_at_offset_with_descend" class="fn">find_node_at_offset_with_descend</a><N>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><N><div class="where">where |
| N: AstNode,</div></h4></section></summary><div class="docblock"><p>Find an AstNode by offset inside SyntaxNode, if it is inside <em>MacroCall</em>, |
| descend it and find again</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.find_nodes_at_offset_with_descend" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#261-265">Source</a><h4 class="code-header">pub fn <a href="#method.find_nodes_at_offset_with_descend" class="fn">find_nodes_at_offset_with_descend</a><'slf, N>( |
| &'slf self, |
| node: &SyntaxNode<RustLanguage>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = N> + 'slf<div class="where">where |
| N: AstNode + 'slf,</div></h4></section></summary><div class="docblock"><p>Find an AstNode by offset inside SyntaxNode, if it is inside an attribute macro call, |
| descend it and find again</p> |
| </div></details><section id="method.find_namelike_at_offset_with_descend" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#270-274">Source</a><h4 class="code-header">pub fn <a href="#method.find_namelike_at_offset_with_descend" class="fn">find_namelike_at_offset_with_descend</a><'slf>( |
| &'slf self, |
| node: &SyntaxNode<RustLanguage>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = NameLike> + 'slf</h4></section><section id="method.lint_attrs" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#284-289">Source</a><h4 class="code-header">pub fn <a href="#method.lint_attrs" class="fn">lint_attrs</a>( |
| &self, |
| file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>, |
| krate: <a class="struct" href="../hir/struct.Crate.html" title="struct hir::Crate">Crate</a>, |
| item: AnyHasAttrs, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a></h4></section><section id="method.resolve_range_pat" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#351">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_range_pat" class="fn">resolve_range_pat</a>(&self, range_pat: &RangePat) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Struct.html" title="struct hir::Struct">Struct</a>></h4></section><section id="method.resolve_range_expr" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#355">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_range_expr" class="fn">resolve_range_expr</a>(&self, range_expr: &RangeExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Struct.html" title="struct hir::Struct">Struct</a>></h4></section><section id="method.resolve_await_to_poll" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#359">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_await_to_poll" class="fn">resolve_await_to_poll</a>(&self, await_expr: &AwaitExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section><section id="method.resolve_prefix_expr" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#363">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_prefix_expr" class="fn">resolve_prefix_expr</a>(&self, prefix_expr: &PrefixExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section><section id="method.resolve_index_expr" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#367">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_index_expr" class="fn">resolve_index_expr</a>(&self, index_expr: &IndexExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section><section id="method.resolve_bin_expr" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#371">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_bin_expr" class="fn">resolve_bin_expr</a>(&self, bin_expr: &BinExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section><section id="method.resolve_try_expr" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#375">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_try_expr" class="fn">resolve_try_expr</a>(&self, try_expr: &TryExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section><section id="method.resolve_variant" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#379">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_variant" class="fn">resolve_variant</a>(&self, record_lit: RecordExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../hir/enum.Variant.html" title="enum hir::Variant">Variant</a>></h4></section><section id="method.file_to_module_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#383">Source</a><h4 class="code-header">pub fn <a href="#method.file_to_module_def" class="fn">file_to_module_def</a>(&self, file: impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Module.html" title="struct hir::Module">Module</a>></h4></section><section id="method.file_to_module_defs" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#387">Source</a><h4 class="code-header">pub fn <a href="#method.file_to_module_defs" class="fn">file_to_module_defs</a>( |
| &self, |
| file: impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../hir/struct.Module.html" title="struct hir::Module">Module</a>></h4></section><section id="method.hir_file_to_module_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#391">Source</a><h4 class="code-header">pub fn <a href="#method.hir_file_to_module_def" class="fn">hir_file_to_module_def</a>( |
| &self, |
| file: impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><HirFileId>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Module.html" title="struct hir::Module">Module</a>></h4></section><section id="method.hir_file_to_module_defs" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#395-398">Source</a><h4 class="code-header">pub fn <a href="#method.hir_file_to_module_defs" class="fn">hir_file_to_module_defs</a>( |
| &self, |
| file: impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><HirFileId>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../hir/struct.Module.html" title="struct hir::Module">Module</a>></h4></section><section id="method.is_nightly" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#402">Source</a><h4 class="code-header">pub fn <a href="#method.is_nightly" class="fn">is_nightly</a>(&self, krate: <a class="struct" href="../hir/struct.Crate.html" title="struct hir::Crate">Crate</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a></h4></section><section id="method.to_adt_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#409">Source</a><h4 class="code-header">pub fn <a href="#method.to_adt_def" class="fn">to_adt_def</a>(&self, a: &Adt) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../hir/enum.Adt.html" title="enum hir::Adt">Adt</a>></h4></section><section id="method.to_const_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#413">Source</a><h4 class="code-header">pub fn <a href="#method.to_const_def" class="fn">to_const_def</a>(&self, c: &Const) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Const.html" title="struct hir::Const">Const</a>></h4></section><section id="method.to_enum_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#417">Source</a><h4 class="code-header">pub fn <a href="#method.to_enum_def" class="fn">to_enum_def</a>(&self, e: &Enum) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Enum.html" title="struct hir::Enum">Enum</a>></h4></section><section id="method.to_enum_variant_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#421">Source</a><h4 class="code-header">pub fn <a href="#method.to_enum_variant_def" class="fn">to_enum_variant_def</a>(&self, v: &Variant) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.EnumVariant.html" title="struct hir::EnumVariant">EnumVariant</a>></h4></section><section id="method.to_fn_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#425">Source</a><h4 class="code-header">pub fn <a href="#method.to_fn_def" class="fn">to_fn_def</a>(&self, f: &Fn) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section><section id="method.to_impl_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#429">Source</a><h4 class="code-header">pub fn <a href="#method.to_impl_def" class="fn">to_impl_def</a>(&self, i: &Impl) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Impl.html" title="struct hir::Impl">Impl</a>></h4></section><section id="method.to_macro_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#433">Source</a><h4 class="code-header">pub fn <a href="#method.to_macro_def" class="fn">to_macro_def</a>(&self, m: &Macro) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Macro.html" title="struct hir::Macro">Macro</a>></h4></section><section id="method.to_module_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#437">Source</a><h4 class="code-header">pub fn <a href="#method.to_module_def" class="fn">to_module_def</a>(&self, m: &Module) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Module.html" title="struct hir::Module">Module</a>></h4></section><section id="method.to_static_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#441">Source</a><h4 class="code-header">pub fn <a href="#method.to_static_def" class="fn">to_static_def</a>(&self, s: &Static) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Static.html" title="struct hir::Static">Static</a>></h4></section><section id="method.to_struct_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#445">Source</a><h4 class="code-header">pub fn <a href="#method.to_struct_def" class="fn">to_struct_def</a>(&self, s: &Struct) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Struct.html" title="struct hir::Struct">Struct</a>></h4></section><section id="method.to_trait_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#449">Source</a><h4 class="code-header">pub fn <a href="#method.to_trait_def" class="fn">to_trait_def</a>(&self, t: &Trait) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Trait.html" title="struct hir::Trait">Trait</a>></h4></section><section id="method.to_type_alias_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#453">Source</a><h4 class="code-header">pub fn <a href="#method.to_type_alias_def" class="fn">to_type_alias_def</a>(&self, t: &TypeAlias) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.TypeAlias.html" title="struct hir::TypeAlias">TypeAlias</a>></h4></section><section id="method.to_union_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#457">Source</a><h4 class="code-header">pub fn <a href="#method.to_union_def" class="fn">to_union_def</a>(&self, u: &Union) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Union.html" title="struct hir::Union">Union</a>></h4></section></div></details></div><details class="toggle big-toggle" open><summary><h2 id="deref-methods-SemanticsImpl%3C'db%3E" class="section-header"><span>Methods from <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = <a class="struct" href="../hir/semantics/struct.SemanticsImpl.html" title="struct hir::semantics::SemanticsImpl">SemanticsImpl</a><'db>></span><a href="#deref-methods-SemanticsImpl%3C'db%3E" class="anchor">§</a></h2></summary><div id="deref-methods-SemanticsImpl%3C'db%3E-1" class="impl-items"><section id="method.parse" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#472">Source</a><h4 class="code-header">pub fn <a href="#method.parse" class="fn">parse</a>(&self, file_id: EditionedFileId) -> SourceFile</h4></section><details class="toggle method-toggle" open><summary><section id="method.first_crate" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#480">Source</a><h4 class="code-header">pub fn <a href="#method.first_crate" class="fn">first_crate</a>(&self, file: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Crate.html" title="struct hir::Crate">Crate</a>></h4></section></summary><div class="docblock"><p>If not crate is found for the file, try to return the last crate in topological order.</p> |
| </div></details><section id="method.attach_first_edition_opt" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#487">Source</a><h4 class="code-header">pub fn <a href="#method.attach_first_edition_opt" class="fn">attach_first_edition_opt</a>(&self, file: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><EditionedFileId></h4></section><section id="method.attach_first_edition" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#492">Source</a><h4 class="code-header">pub fn <a href="#method.attach_first_edition" class="fn">attach_first_edition</a>(&self, file: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -> EditionedFileId</h4></section><section id="method.parse_guess_edition" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#497">Source</a><h4 class="code-header">pub fn <a href="#method.parse_guess_edition" class="fn">parse_guess_edition</a>(&self, file_id: <a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>) -> SourceFile</h4></section><section id="method.adjust_edition" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#505">Source</a><h4 class="code-header">pub fn <a href="#method.adjust_edition" class="fn">adjust_edition</a>(&self, file_id: HirFileId) -> HirFileId</h4></section><section id="method.find_parent_file" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#514">Source</a><h4 class="code-header">pub fn <a href="#method.find_parent_file" class="fn">find_parent_file</a>( |
| &self, |
| file_id: HirFileId, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>></h4></section><details class="toggle method-toggle" open><summary><section id="method.module_definition_node" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#543">Source</a><h4 class="code-header">pub fn <a href="#method.module_definition_node" class="fn">module_definition_node</a>( |
| &self, |
| module: <a class="struct" href="../hir/struct.Module.html" title="struct hir::Module">Module</a>, |
| ) -> InFileWrapper<HirFileId, SyntaxNode<RustLanguage>></h4></section></summary><div class="docblock"><p>Returns the <code>SyntaxNode</code> of the module. If this is a file module, returns |
| the <code>SyntaxNode</code> of the <em>definition</em> file, not of the <em>declaration</em>.</p> |
| </div></details><section id="method.parse_or_expand" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#552">Source</a><h4 class="code-header">pub fn <a href="#method.parse_or_expand" class="fn">parse_or_expand</a>(&self, file_id: HirFileId) -> SyntaxNode<RustLanguage></h4></section><section id="method.to_node_syntax" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#558">Source</a><h4 class="code-header">pub fn <a href="#method.to_node_syntax" class="fn">to_node_syntax</a>( |
| &self, |
| ptr: InFileWrapper<HirFileId, SyntaxNodePtr<RustLanguage>>, |
| ) -> SyntaxNode<RustLanguage></h4></section><section id="method.to_node" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#562">Source</a><h4 class="code-header">pub fn <a href="#method.to_node" class="fn">to_node</a><N>(&self, ptr: InFileWrapper<HirFileId, AstPtr<N>>) -> N<div class="where">where |
| N: AstNode,</div></h4></section><section id="method.expand" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#566">Source</a><h4 class="code-header">pub fn <a href="#method.expand" class="fn">expand</a>( |
| &self, |
| file_id: MacroCallId, |
| ) -> ValueResult<SyntaxNode<RustLanguage>, ExpandError></h4></section><section id="method.expand_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#572">Source</a><h4 class="code-header">pub fn <a href="#method.expand_macro_call" class="fn">expand_macro_call</a>( |
| &self, |
| macro_call: &MacroCall, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>></h4></section><details class="toggle method-toggle" open><summary><section id="method.expand_allowed_builtins" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#580-583">Source</a><h4 class="code-header">pub fn <a href="#method.expand_allowed_builtins" class="fn">expand_allowed_builtins</a>( |
| &self, |
| macro_call: &MacroCall, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><ValueResult<SyntaxNode<RustLanguage>, ExpandError>></h4></section></summary><div class="docblock"><p>Expands the macro if it isn’t one of the built-in ones that expand to custom syntax or dummy |
| expansions.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.expand_attr_macro" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#615">Source</a><h4 class="code-header">pub fn <a href="#method.expand_attr_macro" class="fn">expand_attr_macro</a>( |
| &self, |
| item: &Item, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><ValueResult<InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>, ExpandError>></h4></section></summary><div class="docblock"><p>If <code>item</code> has an attribute macro attached to it, expands it.</p> |
| </div></details><section id="method.expand_derive_as_pseudo_attr_macro" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#621">Source</a><h4 class="code-header">pub fn <a href="#method.expand_derive_as_pseudo_attr_macro" class="fn">expand_derive_as_pseudo_attr_macro</a>( |
| &self, |
| attr: &Meta, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><SyntaxNode<RustLanguage>></h4></section><section id="method.resolve_derive_macro" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#630">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_derive_macro" class="fn">resolve_derive_macro</a>(&self, attr: &Meta) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Macro.html" title="struct hir::Macro">Macro</a>>>></h4></section><section id="method.expand_derive_macro" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#655-658">Source</a><h4 class="code-header">pub fn <a href="#method.expand_derive_macro" class="fn">expand_derive_macro</a>( |
| &self, |
| attr: &Meta, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><ValueResult<SyntaxNode<RustLanguage>, ExpandError>>>></h4></section><section id="method.is_derive_annotated" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#687">Source</a><h4 class="code-header">pub fn <a href="#method.is_derive_annotated" class="fn">is_derive_annotated</a>(&self, adt: InFileWrapper<HirFileId, &Adt>) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a></h4></section><section id="method.derive_helpers_in_scope" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#691">Source</a><h4 class="code-header">pub fn <a href="#method.derive_helpers_in_scope" class="fn">derive_helpers_in_scope</a>( |
| &self, |
| adt: &Adt, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(Symbol, Symbol)>></h4></section><section id="method.derive_helper" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#707">Source</a><h4 class="code-header">pub fn <a href="#method.derive_helper" class="fn">derive_helper</a>(&self, attr: &Attr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../hir/struct.Macro.html" title="struct hir::Macro">Macro</a>, MacroCallId)>></h4></section><section id="method.is_attr_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#729">Source</a><h4 class="code-header">pub fn <a href="#method.is_attr_macro_call" class="fn">is_attr_macro_call</a>(&self, item: InFileWrapper<HirFileId, &Item>) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.speculative_expand_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#735-740">Source</a><h4 class="code-header">pub fn <a href="#method.speculative_expand_macro_call" class="fn">speculative_expand_macro_call</a>( |
| &self, |
| actual_macro_call: &MacroCall, |
| speculative_args: &TokenTree, |
| token_to_map: SyntaxToken<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(SyntaxNode<RustLanguage>, <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(SyntaxToken<RustLanguage>, <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.u8.html">u8</a>)>)></h4></section></summary><div class="docblock"><p>Expand the macro call with a different token tree, mapping the <code>token_to_map</code> down into the |
| expansion. <code>token_to_map</code> should be a token from the <code>speculative args</code> node.</p> |
| </div></details><section id="method.speculative_expand_raw" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#750-755">Source</a><h4 class="code-header">pub fn <a href="#method.speculative_expand_raw" class="fn">speculative_expand_raw</a>( |
| &self, |
| macro_file: MacroCallId, |
| speculative_args: &SyntaxNode<RustLanguage>, |
| token_to_map: SyntaxToken<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(SyntaxNode<RustLanguage>, <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(SyntaxToken<RustLanguage>, <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.u8.html">u8</a>)>)></h4></section><details class="toggle method-toggle" open><summary><section id="method.speculative_expand_attr_macro" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#761-766">Source</a><h4 class="code-header">pub fn <a href="#method.speculative_expand_attr_macro" class="fn">speculative_expand_attr_macro</a>( |
| &self, |
| actual_macro_call: &Item, |
| speculative_args: &Item, |
| token_to_map: SyntaxToken<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(SyntaxNode<RustLanguage>, <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(SyntaxToken<RustLanguage>, <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.u8.html">u8</a>)>)></h4></section></summary><div class="docblock"><p>Expand the macro call with a different item as the input, mapping the <code>token_to_map</code> down into the |
| expansion. <code>token_to_map</code> should be a token from the <code>speculative args</code> node.</p> |
| </div></details><section id="method.speculative_expand_derive_as_pseudo_attr_macro" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#777-782">Source</a><h4 class="code-header">pub fn <a href="#method.speculative_expand_derive_as_pseudo_attr_macro" class="fn">speculative_expand_derive_as_pseudo_attr_macro</a>( |
| &self, |
| actual_macro_call: &Attr, |
| speculative_args: &Attr, |
| token_to_map: SyntaxToken<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(SyntaxNode<RustLanguage>, <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(SyntaxToken<RustLanguage>, <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.u8.html">u8</a>)>)></h4></section><details class="toggle method-toggle" open><summary><section id="method.rename_conflicts" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#802">Source</a><h4 class="code-header">pub fn <a href="#method.rename_conflicts" class="fn">rename_conflicts</a>( |
| &self, |
| to_be_renamed: &<a class="struct" href="../hir/struct.Local.html" title="struct hir::Local">Local</a>, |
| new_name: &Name, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../hir/struct.Local.html" title="struct hir::Local">Local</a>></h4></section></summary><div class="docblock"><p>Checks if renaming <code>renamed</code> to <code>new_name</code> may introduce conflicts with other locals, |
| and returns the conflicting locals.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.as_format_args_parts" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#829-832">Source</a><h4 class="code-header">pub fn <a href="#method.as_format_args_parts" class="fn">as_format_args_parts</a>( |
| &self, |
| string: &String, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="enum" href="../hir/semantics/enum.PathResolution.html" title="enum hir::semantics::PathResolution">PathResolution</a>, <a class="struct" href="../hir/struct.InlineAsmOperand.html" title="struct hir::InlineAsmOperand">InlineAsmOperand</a>>>)>></h4></section></summary><div class="docblock"><p>Retrieves all the formatting parts of the format_args! (or <code>asm!</code>) template string.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.check_for_format_args_template" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#881-890">Source</a><h4 class="code-header">pub fn <a href="#method.check_for_format_args_template" class="fn">check_for_format_args_template</a>( |
| &self, |
| original_token: SyntaxToken<RustLanguage>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>, FileRangeWrapper<HirFileId>, String, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="enum" href="../hir/semantics/enum.PathResolution.html" title="enum hir::semantics::PathResolution">PathResolution</a>, <a class="struct" href="../hir/struct.InlineAsmOperand.html" title="struct hir::InlineAsmOperand">InlineAsmOperand</a>>>)></h4></section></summary><div class="docblock"><p>Retrieves the formatting part of the format_args! template string at the given offset.</p> |
| <p>Returns the range (pre-expansion) in the string literal corresponding to the resolution, |
| absolute file range (post-expansion) |
| of the part in the format string (post-expansion), the corresponding string token and the resolution if it |
| exists.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.check_for_format_args_template_with_file" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#903-912">Source</a><h4 class="code-header">pub fn <a href="#method.check_for_format_args_template_with_file" class="fn">check_for_format_args_template_with_file</a>( |
| &self, |
| original_token: InFileWrapper<HirFileId, String>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>, FileRangeWrapper<HirFileId>, String, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="enum" href="../hir/semantics/enum.PathResolution.html" title="enum hir::semantics::PathResolution">PathResolution</a>, <a class="struct" href="../hir/struct.InlineAsmOperand.html" title="struct hir::InlineAsmOperand">InlineAsmOperand</a>>>)></h4></section></summary><div class="docblock"><p>Retrieves the formatting part of the format_args! template string at the given offset.</p> |
| <p>Returns the range (pre-expansion) in the string literal corresponding to the resolution, |
| absolute file range (post-expansion) |
| of the part in the format string, the corresponding string token and the resolution if it |
| exists.</p> |
| </div></details><section id="method.debug_hir_at" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#966">Source</a><h4 class="code-header">pub fn <a href="#method.debug_hir_at" class="fn">debug_hir_at</a>(&self, token: SyntaxToken<RustLanguage>) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.descend_token_into_include_expansion" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#996-999">Source</a><h4 class="code-header">pub fn <a href="#method.descend_token_into_include_expansion" class="fn">descend_token_into_include_expansion</a>( |
| &self, |
| tok: InFileWrapper<EditionedFileId, SyntaxToken<RustLanguage>>, |
| ) -> InFileWrapper<HirFileId, SyntaxToken<RustLanguage>></h4></section></summary><div class="docblock"><p>Descends the token into the include expansion, if its file is an included file.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.descend_node_into_attributes" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1021">Source</a><h4 class="code-header">pub fn <a href="#method.descend_node_into_attributes" class="fn">descend_node_into_attributes</a><N>(&self, node: N) -> SmallVec<<a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.array.html">[N; 1]</a>><div class="where">where |
| N: AstNode,</div></h4></section></summary><div class="docblock"><p>Maps a node down by mapping its first and last token down.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.is_inside_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1089">Source</a><h4 class="code-header">pub fn <a href="#method.is_inside_macro_call" class="fn">is_inside_macro_call</a>( |
| &self, |
| token: InFileWrapper<HirFileId, &SyntaxToken<RustLanguage>>, |
| ) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns true if the given input is within a macro call.</p> |
| <p>Note that if this token itself is within the context of a macro expansion does not matter. |
| That is, we strictly check if it lies inside the input of a macro call.</p> |
| </div></details><section id="method.descend_into_macros_cb" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1113-1117">Source</a><h4 class="code-header">pub fn <a href="#method.descend_into_macros_cb" class="fn">descend_into_macros_cb</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| cb: impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(InFileWrapper<HirFileId, SyntaxToken<RustLanguage>>, SyntaxContext), |
| )</h4></section><section id="method.descend_into_macros" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1123">Source</a><h4 class="code-header">pub fn <a href="#method.descend_into_macros" class="fn">descend_into_macros</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| ) -> SmallVec<[SyntaxToken<RustLanguage>; <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.array.html">1</a>]></h4></section><section id="method.descend_into_macros_no_opaque" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1136-1140">Source</a><h4 class="code-header">pub fn <a href="#method.descend_into_macros_no_opaque" class="fn">descend_into_macros_no_opaque</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| always_descend_into_derives: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a>, |
| ) -> SmallVec<[InFileWrapper<HirFileId, SyntaxToken<RustLanguage>>; <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.array.html">1</a>]></h4></section><section id="method.descend_into_macros_breakable" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1155-1159">Source</a><h4 class="code-header">pub fn <a href="#method.descend_into_macros_breakable" class="fn">descend_into_macros_breakable</a><T>( |
| &self, |
| token: InFileWrapper<HirFileId, SyntaxToken<RustLanguage>>, |
| cb: impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(InFileWrapper<HirFileId, SyntaxToken<RustLanguage>>, SyntaxContext) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/ops/control_flow/enum.ControlFlow.html" title="enum core::ops::control_flow::ControlFlow">ControlFlow</a><T>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T></h4></section><details class="toggle method-toggle" open><summary><section id="method.descend_into_macros_exact" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1165">Source</a><h4 class="code-header">pub fn <a href="#method.descend_into_macros_exact" class="fn">descend_into_macros_exact</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| ) -> SmallVec<[SyntaxToken<RustLanguage>; <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.array.html">1</a>]></h4></section></summary><div class="docblock"><p>Descends the token into expansions, returning the tokens that matches the input |
| token’s [<code>SyntaxKind</code>] and text.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.descend_into_macros_exact_with_file" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1188-1191">Source</a><h4 class="code-header">pub fn <a href="#method.descend_into_macros_exact_with_file" class="fn">descend_into_macros_exact_with_file</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| ) -> SmallVec<[InFileWrapper<HirFileId, SyntaxToken<RustLanguage>>; <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.array.html">1</a>]></h4></section></summary><div class="docblock"><p>Descends the token into expansions, returning the tokens that matches the input |
| token’s [<code>SyntaxKind</code>] and text.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.descend_into_macros_single_exact" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1214">Source</a><h4 class="code-header">pub fn <a href="#method.descend_into_macros_single_exact" class="fn">descend_into_macros_single_exact</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| ) -> SyntaxToken<RustLanguage></h4></section></summary><div class="docblock"><p>Descends the token into expansions, returning the first token that matches the input |
| token’s [<code>SyntaxKind</code>] and text.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.original_range" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1559">Source</a><h4 class="code-header">pub fn <a href="#method.original_range" class="fn">original_range</a>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| ) -> FileRangeWrapper<EditionedFileId></h4></section></summary><div class="docblock"><p>Attempts to map the node out of macro expanded files returning the original file range. |
| If upmapping is not possible, this will fall back to the range of the macro call of the |
| macro file the node resides in.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.original_range_opt" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1565">Source</a><h4 class="code-header">pub fn <a href="#method.original_range_opt" class="fn">original_range_opt</a>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><FileRangeWrapper<EditionedFileId>></h4></section></summary><div class="docblock"><p>Attempts to map the node out of macro expanded files returning the original file range.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.original_ast_node" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1572">Source</a><h4 class="code-header">pub fn <a href="#method.original_ast_node" class="fn">original_ast_node</a><N>(&self, node: N) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><N><div class="where">where |
| N: AstNode,</div></h4></section></summary><div class="docblock"><p>Attempts to map the node out of macro expanded files. |
| This only work for attribute expansions, as other ones do not have nodes as input.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.original_syntax_node_rooted" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1583">Source</a><h4 class="code-header">pub fn <a href="#method.original_syntax_node_rooted" class="fn">original_syntax_node_rooted</a>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><SyntaxNode<RustLanguage>></h4></section></summary><div class="docblock"><p>Attempts to map the node out of macro expanded files. |
| This only work for attribute expansions, as other ones do not have nodes as input.</p> |
| </div></details><section id="method.diagnostics_display_range" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1593-1596">Source</a><h4 class="code-header">pub fn <a href="#method.diagnostics_display_range" class="fn">diagnostics_display_range</a>( |
| &self, |
| src: InFileWrapper<HirFileId, SyntaxNodePtr<RustLanguage>>, |
| ) -> FileRangeWrapper<<a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>></h4></section><section id="method.diagnostics_display_range_for_range" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1603-1606">Source</a><h4 class="code-header">pub fn <a href="#method.diagnostics_display_range_for_range" class="fn">diagnostics_display_range_for_range</a>( |
| &self, |
| src: InFileWrapper<HirFileId, <a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>>, |
| ) -> FileRangeWrapper<<a class="struct" href="struct.FileId.html" title="struct ide::FileId">FileId</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.ancestors_with_macros" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1620-1623">Source</a><h4 class="code-header">pub fn <a href="#method.ancestors_with_macros" class="fn">ancestors_with_macros</a>( |
| &self, |
| node: SyntaxNode<RustLanguage>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = SyntaxNode<RustLanguage>> + <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></h4></section></summary><div class="docblock"><p>Iterates the ancestors of the given node, climbing up macro expansions while doing so.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.ancestors_with_macros_file" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1629-1632">Source</a><h4 class="code-header">pub fn <a href="#method.ancestors_with_macros_file" class="fn">ancestors_with_macros_file</a>( |
| &self, |
| node: InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>> + <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></h4></section></summary><div class="docblock"><p>Iterates the ancestors of the given node, climbing up macro expansions while doing so.</p> |
| </div></details><section id="method.ancestors_at_offset_with_macros" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1646-1650">Source</a><h4 class="code-header">pub fn <a href="#method.ancestors_at_offset_with_macros" class="fn">ancestors_at_offset_with_macros</a>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = SyntaxNode<RustLanguage>></h4></section><details class="toggle method-toggle" open><summary><section id="method.fn_return_points" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1658">Source</a><h4 class="code-header">pub fn <a href="#method.fn_return_points" class="fn">fn_return_points</a>( |
| &self, |
| func: <a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><InFileWrapper<HirFileId, ReturnExpr>></h4></section></summary><div class="docblock"><p>Returns the <code>return</code> expressions in this function’s body, |
| excluding those inside closures or async blocks.</p> |
| </div></details><section id="method.resolve_lifetime_param" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1694">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_lifetime_param" class="fn">resolve_lifetime_param</a>( |
| &self, |
| lifetime: &Lifetime, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.LifetimeParam.html" title="struct hir::LifetimeParam">LifetimeParam</a>></h4></section><section id="method.resolve_label" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1705">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_label" class="fn">resolve_label</a>(&self, label: &Lifetime) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Label.html" title="struct hir::Label">Label</a>></h4></section><section id="method.resolve_type" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1711">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_type" class="fn">resolve_type</a>(&self, ty: &Type) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>></h4></section><section id="method.resolve_trait" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1716">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_trait" class="fn">resolve_trait</a>(&self, path: &Path) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Trait.html" title="struct hir::Trait">Trait</a>></h4></section><section id="method.expr_adjustments" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1730">Source</a><h4 class="code-header">pub fn <a href="#method.expr_adjustments" class="fn">expr_adjustments</a>(&self, expr: &Expr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../hir/struct.Adjustment.html" title="struct hir::Adjustment">Adjustment</a><'db>>></h4></section><section id="method.type_of_expr" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1774">Source</a><h4 class="code-header">pub fn <a href="#method.type_of_expr" class="fn">type_of_expr</a>(&self, expr: &Expr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/semantics/struct.TypeInfo.html" title="struct hir::semantics::TypeInfo">TypeInfo</a><'db>></h4></section><section id="method.type_of_pat" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1780">Source</a><h4 class="code-header">pub fn <a href="#method.type_of_pat" class="fn">type_of_pat</a>(&self, pat: &Pat) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/semantics/struct.TypeInfo.html" title="struct hir::semantics::TypeInfo">TypeInfo</a><'db>></h4></section><details class="toggle method-toggle" open><summary><section id="method.type_of_binding_in_pat" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1789">Source</a><h4 class="code-header">pub fn <a href="#method.type_of_binding_in_pat" class="fn">type_of_binding_in_pat</a>(&self, pat: &IdentPat) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>></h4></section></summary><div class="docblock"><p>It also includes the changes that binding mode makes in the type. For example in |
| <code>let ref x @ Some(_) = None</code> the result of <code>type_of_pat</code> is <code>Option<T></code> but the result |
| of this function is <code>&mut Option<T></code></p> |
| </div></details><section id="method.type_of_self" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1793">Source</a><h4 class="code-header">pub fn <a href="#method.type_of_self" class="fn">type_of_self</a>(&self, param: &SelfParam) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>></h4></section><section id="method.pattern_adjustments" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1797">Source</a><h4 class="code-header">pub fn <a href="#method.pattern_adjustments" class="fn">pattern_adjustments</a>(&self, pat: &Pat) -> SmallVec<[<a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>; <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.array.html">1</a>]></h4></section><section id="method.binding_mode_of_pat" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1803">Source</a><h4 class="code-header">pub fn <a href="#method.binding_mode_of_pat" class="fn">binding_mode_of_pat</a>(&self, pat: &IdentPat) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../hir/enum.BindingMode.html" title="enum hir::BindingMode">BindingMode</a>></h4></section><section id="method.resolve_expr_as_callable" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1807">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_expr_as_callable" class="fn">resolve_expr_as_callable</a>(&self, call: &Expr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Callable.html" title="struct hir::Callable">Callable</a><'db>></h4></section><section id="method.resolve_method_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1811">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_method_call" class="fn">resolve_method_call</a>(&self, call: &MethodCallExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.resolve_method_call_fallback" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1816-1819">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_method_call_fallback" class="fn">resolve_method_call_fallback</a>( |
| &self, |
| call: &MethodCallExpr, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>, <a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>>, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.GenericSubstitution.html" title="struct hir::GenericSubstitution">GenericSubstitution</a><'db>>)></h4></section></summary><div class="docblock"><p>Attempts to resolve this call expression as a method call falling back to resolving it as a field.</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.resolve_trait_impl_method" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1825-1831">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_trait_impl_method" class="fn">resolve_trait_impl_method</a>( |
| &self, |
| env: <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>, |
| trait_: <a class="struct" href="../hir/struct.Trait.html" title="struct hir::Trait">Trait</a>, |
| func: <a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>, |
| subst: impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>></h4></section></summary><div class="docblock"><p>Env is used to derive the trait environment</p> |
| </div></details><details class="toggle method-toggle" open><summary><section id="method.try_expr_returned_type" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1878">Source</a><h4 class="code-header">pub fn <a href="#method.try_expr_returned_type" class="fn">try_expr_returned_type</a>(&self, try_expr: &TryExpr) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>></h4></section></summary><div class="docblock"><p>The type that the associated <code>try</code> block, closure or function expects.</p> |
| </div></details><section id="method.resolve_method_call_as_callable" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1901-1904">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_method_call_as_callable" class="fn">resolve_method_call_as_callable</a>( |
| &self, |
| call: &MethodCallExpr, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Callable.html" title="struct hir::Callable">Callable</a><'db>></h4></section><section id="method.resolve_field" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1908">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_field" class="fn">resolve_field</a>( |
| &self, |
| field: &FieldExpr, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.TupleField.html" title="struct hir::TupleField">TupleField</a>>></h4></section><section id="method.resolve_field_fallback" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1912-1915">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_field_fallback" class="fn">resolve_field_fallback</a>( |
| &self, |
| field: &FieldExpr, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.TupleField.html" title="struct hir::TupleField">TupleField</a>>, <a class="struct" href="../hir/struct.Function.html" title="struct hir::Function">Function</a>>, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.GenericSubstitution.html" title="struct hir::GenericSubstitution">GenericSubstitution</a><'db>>)></h4></section><section id="method.resolve_record_field" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1920-1923">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_record_field" class="fn">resolve_record_field</a>( |
| &self, |
| field: &RecordExprField, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Local.html" title="struct hir::Local">Local</a>>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>)></h4></section><section id="method.resolve_record_field_with_substitution" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1928-1931">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_record_field_with_substitution" class="fn">resolve_record_field_with_substitution</a>( |
| &self, |
| field: &RecordExprField, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Local.html" title="struct hir::Local">Local</a>>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>, <a class="struct" href="../hir/struct.GenericSubstitution.html" title="struct hir::GenericSubstitution">GenericSubstitution</a><'db>)></h4></section><section id="method.resolve_record_pat_field" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1935-1938">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_record_pat_field" class="fn">resolve_record_pat_field</a>( |
| &self, |
| field: &RecordPatField, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>)></h4></section><section id="method.resolve_record_pat_field_with_subst" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1942-1945">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_record_pat_field_with_subst" class="fn">resolve_record_pat_field_with_subst</a>( |
| &self, |
| field: &RecordPatField, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>, <a class="struct" href="../hir/struct.GenericSubstitution.html" title="struct hir::GenericSubstitution">GenericSubstitution</a><'db>)></h4></section><section id="method.resolve_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1950">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_macro_call" class="fn">resolve_macro_call</a>(&self, macro_call: &MacroCall) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Macro.html" title="struct hir::Macro">Macro</a>></h4></section><section id="method.resolve_macro_call2" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1955">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_macro_call2" class="fn">resolve_macro_call2</a>( |
| &self, |
| macro_call: InFileWrapper<HirFileId, &MacroCall>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Macro.html" title="struct hir::Macro">Macro</a>></h4></section><section id="method.is_proc_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1961">Source</a><h4 class="code-header">pub fn <a href="#method.is_proc_macro_call" class="fn">is_proc_macro_call</a>( |
| &self, |
| macro_call: InFileWrapper<HirFileId, &MacroCall>, |
| ) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a></h4></section><section id="method.resolve_macro_call_arm" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1966">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_macro_call_arm" class="fn">resolve_macro_call_arm</a>(&self, macro_call: &MacroCall) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.u32.html">u32</a>></h4></section><section id="method.get_unsafe_ops" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1971">Source</a><h4 class="code-header">pub fn <a href="#method.get_unsafe_ops" class="fn">get_unsafe_ops</a>( |
| &self, |
| def: <a class="enum" href="../hir/enum.ExpressionStoreOwner.html" title="enum hir::ExpressionStoreOwner">ExpressionStoreOwner</a>, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><InFileWrapper<HirFileId, AstPtr<<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Expr, Pat>>>, FxBuildHasher></h4></section><section id="method.get_unsafe_ops_for_unsafe_block" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#1987">Source</a><h4 class="code-header">pub fn <a href="#method.get_unsafe_ops_for_unsafe_block" class="fn">get_unsafe_ops_for_unsafe_block</a>( |
| &self, |
| block: BlockExpr, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><InFileWrapper<HirFileId, AstPtr<<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Expr, Pat>>>></h4></section><section id="method.is_unsafe_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2004">Source</a><h4 class="code-header">pub fn <a href="#method.is_unsafe_macro_call" class="fn">is_unsafe_macro_call</a>(&self, macro_call: &MacroCall) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a></h4></section><section id="method.resolve_attr_macro_call" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2018">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_attr_macro_call" class="fn">resolve_attr_macro_call</a>(&self, item: &Item) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.Macro.html" title="struct hir::Macro">Macro</a>></h4></section><section id="method.resolve_path" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2027">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_path" class="fn">resolve_path</a>(&self, path: &Path) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../hir/semantics/enum.PathResolution.html" title="enum hir::semantics::PathResolution">PathResolution</a>></h4></section><section id="method.resolve_path_per_ns" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2031">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_path_per_ns" class="fn">resolve_path_per_ns</a>(&self, path: &Path) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/semantics/struct.PathResolutionPerNs.html" title="struct hir::semantics::PathResolutionPerNs">PathResolutionPerNs</a>></h4></section><section id="method.resolve_path_with_subst" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2035-2038">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_path_with_subst" class="fn">resolve_path_with_subst</a>( |
| &self, |
| path: &Path, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="enum" href="../hir/semantics/enum.PathResolution.html" title="enum hir::semantics::PathResolution">PathResolution</a>, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.GenericSubstitution.html" title="struct hir::GenericSubstitution">GenericSubstitution</a><'db>>)></h4></section><section id="method.resolve_use_type_arg" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2042">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_use_type_arg" class="fn">resolve_use_type_arg</a>(&self, name: &NameRef) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/struct.TypeParam.html" title="struct hir::TypeParam">TypeParam</a>></h4></section><section id="method.resolve_offset_of_field" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2046-2049">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_offset_of_field" class="fn">resolve_offset_of_field</a>( |
| &self, |
| name_ref: &NameRef, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><<a class="struct" href="../hir/struct.EnumVariant.html" title="struct hir::EnumVariant">EnumVariant</a>, <a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>>, <a class="struct" href="../hir/struct.GenericSubstitution.html" title="struct hir::GenericSubstitution">GenericSubstitution</a><'db>)></h4></section><section id="method.resolve_mod_path" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2053-2057">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_mod_path" class="fn">resolve_mod_path</a>( |
| &self, |
| scope: &SyntaxNode<RustLanguage>, |
| path: &ModPath, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><impl <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="../hir/enum.ItemInNs.html" title="enum hir::ItemInNs">ItemInNs</a>>></h4></section><section id="method.resolve_bind_pat_to_const" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2067">Source</a><h4 class="code-header">pub fn <a href="#method.resolve_bind_pat_to_const" class="fn">resolve_bind_pat_to_const</a>(&self, pat: &IdentPat) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../hir/enum.ModuleDef.html" title="enum hir::ModuleDef">ModuleDef</a>></h4></section><section id="method.record_literal_missing_fields" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2071-2074">Source</a><h4 class="code-header">pub fn <a href="#method.record_literal_missing_fields" class="fn">record_literal_missing_fields</a>( |
| &self, |
| literal: &RecordExpr, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>)></h4></section><section id="method.record_literal_matched_fields" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2080-2083">Source</a><h4 class="code-header">pub fn <a href="#method.record_literal_matched_fields" class="fn">record_literal_matched_fields</a>( |
| &self, |
| literal: &RecordExpr, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>)></h4></section><section id="method.record_pattern_missing_fields" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2089-2092">Source</a><h4 class="code-header">pub fn <a href="#method.record_pattern_missing_fields" class="fn">record_pattern_missing_fields</a>( |
| &self, |
| pattern: &RecordPat, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>)></h4></section><section id="method.record_pattern_matched_fields" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2098-2101">Source</a><h4 class="code-header">pub fn <a href="#method.record_pattern_matched_fields" class="fn">record_pattern_matched_fields</a>( |
| &self, |
| pattern: &RecordPat, |
| ) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../hir/struct.Field.html" title="struct hir::Field">Field</a>, <a class="struct" href="../hir/struct.Type.html" title="struct hir::Type">Type</a><'db>)></h4></section><section id="method.to_def" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2112">Source</a><h4 class="code-header">pub fn <a href="#method.to_def" class="fn">to_def</a><T>(&self, src: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&T</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<T as <a class="trait" href="../hir/semantics/trait.ToDef.html" title="trait hir::semantics::ToDef">ToDef</a>>::<a class="associatedtype" href="../hir/semantics/trait.ToDef.html#associatedtype.Def" title="type hir::semantics::ToDef::Def">Def</a>><div class="where">where |
| T: <a class="trait" href="../hir/semantics/trait.ToDef.html" title="trait hir::semantics::ToDef">ToDef</a>,</div></h4></section><section id="method.to_def2" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2117">Source</a><h4 class="code-header">pub fn <a href="#method.to_def2" class="fn">to_def2</a><T>( |
| &self, |
| src: InFileWrapper<HirFileId, <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&T</a>>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<T as <a class="trait" href="../hir/semantics/trait.ToDef.html" title="trait hir::semantics::ToDef">ToDef</a>>::<a class="associatedtype" href="../hir/semantics/trait.ToDef.html#associatedtype.Def" title="type hir::semantics::ToDef::Def">Def</a>><div class="where">where |
| T: <a class="trait" href="../hir/semantics/trait.ToDef.html" title="trait hir::semantics::ToDef">ToDef</a>,</div></h4></section><section id="method.scope" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2130">Source</a><h4 class="code-header">pub fn <a href="#method.scope" class="fn">scope</a>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/semantics/struct.SemanticsScope.html" title="struct hir::semantics::SemanticsScope">SemanticsScope</a><'db>></h4></section><section id="method.scope_at_offset" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2141-2145">Source</a><h4 class="code-header">pub fn <a href="#method.scope_at_offset" class="fn">scope_at_offset</a>( |
| &self, |
| node: &SyntaxNode<RustLanguage>, |
| offset: <a class="struct" href="struct.TextSize.html" title="struct ide::TextSize">TextSize</a>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../hir/semantics/struct.SemanticsScope.html" title="struct hir::semantics::SemanticsScope">SemanticsScope</a><'db>></h4></section><details class="toggle method-toggle" open><summary><section id="method.source" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2157">Source</a><h4 class="code-header">pub fn <a href="#method.source" class="fn">source</a><Def>( |
| &self, |
| def: Def, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><InFileWrapper<HirFileId, <Def as <a class="trait" href="../hir/has_source/trait.HasSource.html" title="trait hir::has_source::HasSource">HasSource</a>>::<a class="associatedtype" href="../hir/has_source/trait.HasSource.html#associatedtype.Ast" title="type hir::has_source::HasSource::Ast">Ast</a>>><div class="where">where |
| Def: <a class="trait" href="../hir/has_source/trait.HasSource.html" title="trait hir::has_source::HasSource">HasSource</a>,</div></h4></section></summary><div class="docblock"><p>Search for a definition’s source and cache its syntax tree</p> |
| </div></details><section id="method.source_with_range" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2164-2167">Source</a><h4 class="code-header">pub fn <a href="#method.source_with_range" class="fn">source_with_range</a><Def>( |
| &self, |
| def: Def, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><InFileWrapper<HirFileId, (<a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>, <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<Def as <a class="trait" href="../hir/has_source/trait.HasSource.html" title="trait hir::has_source::HasSource">HasSource</a>>::<a class="associatedtype" href="../hir/has_source/trait.HasSource.html#associatedtype.Ast" title="type hir::has_source::HasSource::Ast">Ast</a>>)>><div class="where">where |
| Def: <a class="trait" href="../hir/has_source/trait.HasSource.html" title="trait hir::has_source::HasSource">HasSource</a>,</div></h4></section><section id="method.store_owner_for" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2173">Source</a><h4 class="code-header">pub fn <a href="#method.store_owner_for" class="fn">store_owner_for</a>( |
| &self, |
| node: InFileWrapper<HirFileId, &SyntaxNode<RustLanguage>>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../hir/enum.ExpressionStoreOwner.html" title="enum hir::ExpressionStoreOwner">ExpressionStoreOwner</a>></h4></section><section id="method.assert_contains_node" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2343">Source</a><h4 class="code-header">pub fn <a href="#method.assert_contains_node" class="fn">assert_contains_node</a>(&self, node: &SyntaxNode<RustLanguage>)</h4></section><details class="toggle method-toggle" open><summary><section id="method.is_inside_unsafe" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2386">Source</a><h4 class="code-header">pub fn <a href="#method.is_inside_unsafe" class="fn">is_inside_unsafe</a>(&self, expr: &Expr) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the <code>node</code> is inside an <code>unsafe</code> context.</p> |
| </div></details><section id="method.impl_generated_from_derive" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2434">Source</a><h4 class="code-header">pub fn <a href="#method.impl_generated_from_derive" class="fn">impl_generated_from_derive</a>(&self, impl_: <a class="struct" href="../hir/struct.Impl.html" title="struct hir::Impl">Impl</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../hir/enum.Adt.html" title="enum hir::Adt">Adt</a>></h4></section><section id="method.locals_used" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2454-2458">Source</a><h4 class="code-header">pub fn <a href="#method.locals_used" class="fn">locals_used</a>( |
| &self, |
| element: <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><&Expr, &StmtList>, |
| text_range: <a class="struct" href="struct.TextRange.html" title="struct ide::TextRange">TextRange</a>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><IndexSet<<a class="struct" href="../hir/struct.Local.html" title="struct hir::Local">Local</a>, FxBuildHasher>></h4></section><section id="method.get_failed_obligations" class="method"><a class="src rightside" href="../src/hir/semantics.rs.html#2553">Source</a><h4 class="code-header">pub fn <a href="#method.get_failed_obligations" class="fn">get_failed_obligations</a>( |
| &self, |
| token: SyntaxToken<RustLanguage>, |
| ) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></div></details><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-Debug-for-Semantics%3C'_,+DB%3E" class="impl"><a class="src rightside" href="../src/hir/semantics.rs.html#181">Source</a><a href="#impl-Debug-for-Semantics%3C'_,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<DB> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'_, DB><div class="where">where |
| DB: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/hir/semantics.rs.html#182">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.95.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.95.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.95.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deref-for-Semantics%3C'db,+DB%3E" class="impl"><a class="src rightside" href="../src/hir/semantics.rs.html#187">Source</a><a href="#impl-Deref-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB><div class="where">where |
| DB: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl"><a class="src rightside" href="../src/hir/semantics.rs.html#188">Source</a><a href="#associatedtype.Target" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="../hir/semantics/struct.SemanticsImpl.html" title="struct hir::semantics::SemanticsImpl">SemanticsImpl</a><'db></h4></section></summary><div class='docblock'>The resulting type after dereferencing.</div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a class="src rightside" href="../src/hir/semantics.rs.html#190">Source</a><a href="#method.deref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fn">deref</a>(&self) -> &<<a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB> as <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></h4></section></summary><div class='docblock'>Dereferences the value.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Semantics%3C'db,+DB%3E" class="impl"><a href="#impl-Freeze-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> !<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB></h3></section><section id="impl-RefUnwindSafe-for-Semantics%3C'db,+DB%3E" class="impl"><a href="#impl-RefUnwindSafe-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> !<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB></h3></section><section id="impl-Send-for-Semantics%3C'db,+DB%3E" class="impl"><a href="#impl-Send-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> !<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB></h3></section><section id="impl-Sync-for-Semantics%3C'db,+DB%3E" class="impl"><a href="#impl-Sync-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> !<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB></h3></section><section id="impl-Unpin-for-Semantics%3C'db,+DB%3E" class="impl"><a href="#impl-Unpin-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB><div class="where">where |
| DB: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section><section id="impl-UnsafeUnpin-for-Semantics%3C'db,+DB%3E" class="impl"><a href="#impl-UnsafeUnpin-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.UnsafeUnpin.html" title="trait core::marker::UnsafeUnpin">UnsafeUnpin</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB><div class="where">where |
| DB: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section><section id="impl-UnwindSafe-for-Semantics%3C'db,+DB%3E" class="impl"><a href="#impl-UnwindSafe-for-Semantics%3C'db,+DB%3E" class="anchor">§</a><h3 class="code-header">impl<'db, DB> !<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Semantics.html" title="struct ide::Semantics">Semantics</a><'db, DB></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/any.rs.html#141">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where |
| T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/any.rs.html#142">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.95.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where |
| T: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.95.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where |
| T: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.95.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CollectAndApply%3CT,+R%3E-for-T" class="impl"><a href="#impl-CollectAndApply%3CT,+R%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, R> CollectAndApply<T, R> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.collect_and_apply" class="method trait-impl"><a href="#method.collect_and_apply" class="anchor">§</a><h4 class="code-header">fn <a class="fn">collect_and_apply</a><I, F>(iter: I, f: F) -> R<div class="where">where |
| I: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = T>, |
| F: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&<a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.slice.html">[T]</a>) -> R,</div></h4></section></summary><div class="docblock"><p>Equivalent to <code>f(&iter.collect::<Vec<_>>())</code>.</p> |
| </div></details><section id="associatedtype.Output" class="associatedtype trait-impl"><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Output</a> = R</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p> |
| </div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an |
| <code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an |
| <code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where |
| U: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p> |
| <p>That is, this conversion is whatever the implementation of |
| <code><a href="https://doc.rust-lang.org/1.95.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p> |
| </div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoBox%3Cdyn+Any%3E-for-T" class="impl"><a href="#impl-IntoBox%3Cdyn+Any%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> IntoBox<dyn <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>> for T<div class="where">where |
| T: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_box" class="method trait-impl"><a href="#method.into_box" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_box</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.95.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>></h4></section></summary><div class='docblock'>Convert self into the appropriate boxed form.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a> |
| if <code>into_left</code> is <code>true</code>. |
| Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a> |
| otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a><F>(self, into_left: F) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self><div class="where">where |
| F: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a> |
| if <code>into_left(&self)</code> returns <code>true</code>. |
| Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a> |
| otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Lookup%3CT%3E-for-T" class="impl"><a href="#impl-Lookup%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Lookup<T> for T</h3></section></summary><div class="impl-items"><section id="method.into_owned" class="method trait-impl"><a href="#method.into_owned" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_owned</a>(self) -> T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Pointable-for-T" class="impl"><a href="#impl-Pointable-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Pointable for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.ALIGN" class="associatedconstant trait-impl"><a href="#associatedconstant.ALIGN" class="anchor">§</a><h4 class="code-header">const <a class="constant">ALIGN</a>: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>The alignment of pointer.</div></details><details class="toggle" open><summary><section id="associatedtype.Init" class="associatedtype trait-impl"><a href="#associatedtype.Init" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Init</a> = T</h4></section></summary><div class='docblock'>The type for initializers.</div></details><details class="toggle method-toggle" open><summary><section id="method.init" class="method trait-impl"><a href="#method.init" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">init</a>(init: <T as Pointable>::Init) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Initializes a with the given initializer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref-1" class="method trait-impl"><a href="#method.deref-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&'a T</a></h4></section></summary><div class='docblock'>Dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl"><a href="#method.deref_mut" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref_mut</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.reference.html">&'a mut T</a></h4></section></summary><div class='docblock'>Mutably dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl"><a href="#method.drop" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">drop</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.95.0/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'>Drops the object pointed to by the given pointer. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Receiver-for-P" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/ops/deref.rs.html#378-380">Source</a><a href="#impl-Receiver-for-P" class="anchor">§</a><h3 class="code-header">impl<P, T> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Receiver.html" title="trait core::ops::deref::Receiver">Receiver</a> for P<div class="where">where |
| P: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T> + ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, |
| T: ?<a class="trait" href="https://doc.rust-lang.org/1.95.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/ops/deref.rs.html#382">Source</a><a href="#associatedtype.Target-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.95.0/core/ops/deref/trait.Receiver.html#associatedtype.Target" class="associatedtype">Target</a> = T</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>arbitrary_self_types</code>)</span></div></span><div class='docblock'>The target type on which the method may be called.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where |
| U: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where |
| U: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.95.0/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.95.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Upcast%3CI,+U%3E-for-T" class="impl"><a href="#impl-Upcast%3CI,+U%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<I, T, U> Upcast<I, U> for T<div class="where">where |
| U: UpcastFrom<I, T>,</div></h3></section></summary><div class="impl-items"><section id="method.upcast" class="method trait-impl"><a href="#method.upcast" class="anchor">§</a><h4 class="code-header">fn <a class="fn">upcast</a>(self, interner: I) -> U</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-UpcastFrom%3CI,+T%3E-for-T" class="impl"><a href="#impl-UpcastFrom%3CI,+T%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<I, T> UpcastFrom<I, T> for T</h3></section></summary><div class="impl-items"><section id="method.upcast_from" class="method trait-impl"><a href="#method.upcast_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">upcast_from</a>(from: T, _tcx: I) -> T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where |
| S: <a class="trait" href="https://doc.rust-lang.org/1.95.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a |
| [<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a |
| [<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details><section id="impl-ErasedDestructor-for-T" class="impl"><a href="#impl-ErasedDestructor-for-T" class="anchor">§</a><h3 class="code-header">impl<T> ErasedDestructor for T<div class="where">where |
| T: 'static,</div></h3></section></div></section></div></main></body></html> |