1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/// For a type `T: Copy` which has unary operator `unop` implemented, also implement `unop &T`.
///
/// For readability, the expected syntax of the macro is the following:
/// ```text
/// ( [ Generics ] )?
/// impl Trait, Method for Type
/// ( where Bounds )?
/// ```
/// - `Generics` are comma-seperated type or const generics
/// - `Trait` is the trait to be implemented
/// - `Method` is the method that `Trait` defines\
/// (can be ommitted for [`Neg`](https://doc.rust-lang.org/std/ops/trait.Neg.html))
/// - `Type` is the type that `Trait` is implemented on (i.e. `T`)
/// - `Bounds` are comma-seperated trait bounds for the listed generics
};