Crate hacky_types
source ·Attribute Macros
- 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.