Expand description
This module defines an accumulator for completions which are going to be presented to user.
Modulesยง
- attribute ๐
- Completion for (built-in) attributes, derives and lints.
- dot ๐
- Completes references after dot (fields and method calls).
- env_
vars ๐ - Completes environment variables defined by Cargo (https://doc.rust-lang.org/cargo/reference/environment-variables.html)
- expr ๐
- Completion of names from the current scope in expression position.
- extern_
abi ๐ - Completes function abi strings.
- extern_
crate ๐ - Completion for extern crates
- field ๐
- Completion of field list position.
- flyimport ๐
- See
import_on_the_fly. - fn_
param ๐ - See
complete_fn_param. - format_
string ๐ - Completes identifiers in format string literals.
- item_
list ๐ - Completion of paths and keywords at item list position.
- keyword ๐
- Completes
whereandforkeywords. - lifetime ๐
- Completes lifetimes and labels.
- macro_
def ๐ - Completion for macro meta-variable segments
- mod_ ๐
- Completes mod declarations.
- pattern ๐
- Completes constants and paths in unqualified patterns.
- postfix ๐
- Postfix completions, like
Ok(10).ifl$0=>if let Ok() = Ok(10) { $0 }. - ra_
fixture ๐ - Injected completions for
#[rust_analyzer::rust_fixture]. - record ๐
- Complete fields in record literals and patterns.
- snippet ๐
- This file provides snippet completions, like
pd=>eprintln!(...). - type ๐
- Completion of names from the current scope in type position.
- use_ ๐
- Completion for use trees
- vis ๐
- Completion for visibility specifiers.
Structsยง
- Completions
- Represents an in-progress set of completions being built.
Functionsยง
- complete_
name ๐ - complete_
name_ ๐ref - complete_
patterns ๐ - enum_
variants_ ๐with_ paths - Calls the callback for each variant of the provided enum with the path to the variant. Skips variants that are visible with single segment paths.