From 5b2d52c8df5235fce9d2ae78adc3182a9659b268 Mon Sep 17 00:00:00 2001 From: Paulo Lieuthier Date: Sat, 19 Oct 2019 08:19:06 -0300 Subject: docs: describe new feature 'add custom impl for derived trait' --- docs/user/assists.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/user') diff --git a/docs/user/assists.md b/docs/user/assists.md index 6f4c30bee..334ba450f 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md @@ -3,6 +3,24 @@ Cursor position or selection is signified by `┃` character. +## `add_custom_impl` + +Adds impl block for derived trait. + +```rust +// BEFORE +#[derive(Deb┃ug, Display)] +struct S; + +// AFTER +#[derive(Display)] +struct S; + +impl Debug for S { + +} +``` + ## `add_derive` Adds a new `#[derive()]` clause to a struct or enum. -- cgit v1.2.3