Module completions

Module completions 

Source
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 where and for keywords.
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.