rust-analyzer
rust-analyzer copied to clipboard
Add ide-assist: generate_impl_trait for generate_impl
Adds this trait impl for a type.
trait $0Foo {
fn foo(&self) -> i32;
}
->
trait Foo {
fn foo(&self) -> i32;
}
impl Foo for ${1:_} {
$0fn foo(&self) -> i32 {
todo!()
}
}
r? @Veykril
Besides tabstop, other things look good