Skip to content

Provide assistance for writing an impl block #17590

Open
@RalfJung

Description

@RalfJung

When I am at a type, I can select a "generate impl" assist and it will generate a block right below the type. That's useful, but often I am somewhere else in the project (might not even be the same file), and I want to generate an impl block here. Would be great if there was some way to get the assist there as well. :)

What I usually try is to write impl TypeName, and then my hope would be that (a) I get auto-complete (including auto-import) for the type name, and (b) I can then select an assist to generate an impl block, and it will turn this into

impl<'a, T: Bound> TypeName<'a, T> {
  /* cursor here */
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions