Crate append_to_string

Source
Expand description

This crate contains the append_to_string! macro, which appends the .to_string() method to any directly declared literals (i.e. “hellostr”, 42, etc.) that it finds inside a given struct instantiation. It also works for literals that are not part of a struct.

It can be useful when large structs with String fields are being declared. For examples you can look inside the [tests] folder. append_to_string!: https://github.com/DavidCks/append_to_string/ [tests]: https://github.com/DavidCks/append_to_string/tree/main/tests

Macros§

append_to_string