Attribute Macros§
- extension_
method - Creates an “extension” method for a type by implementing a custom trait with a single method.
This is a workaround to enable chaining utility functions without modifying the original type.
The first parameter of the annotated function will be used as
self
in the trait method.