Expand description
Completion for associated items in a trait implementation.
This module adds the completion items related to implementing associated
items within an impl Trait for Struct block. The current context node
must be within either a FN, TYPE_ALIAS, or CONST node
and an direct child of an IMPL.
ยงExamples
Considering the following trait impl:
โ
trait SomeTrait {
fn foo();
}
impl SomeTrait for () {
fn f$0
}may result in the completion of the following method:
โ
impl SomeTrait for () {
fn foo() {}$0
}Enumsยง
- Async
Sugaring ๐ - Impl
Completion ๐Kind
Functionsยง
- add_
const_ ๐impl - add_
function_ ๐impl - add_
function_ ๐impl_ - add_
type_ ๐alias_ impl - complete_
trait_ ๐impl - complete_
trait_ ๐impl_ const - complete_
trait_ ๐impl_ fn - complete_
trait_ ๐impl_ item_ by_ name - complete_
trait_ ๐impl_ name - complete_
trait_ ๐impl_ type_ alias - function_
declaration ๐ - get_
transformed_ ๐assoc_ item - Transform a relevant associated item to inline generics from the impl, remove attrs and docs, etc.
- get_
transformed_ ๐fn - Transform a relevant associated item to inline generics from the impl, remove attrs and docs, etc.
- make_
const_ ๐compl_ syntax