A macro to reduce boilerplate code in Rust.
Sometimes you can't DRY code with the type system alone. Different types may require code of the exact same form, but with different symbols. Generics can help, but not always.
This crate provides a way to substitute symbols into statements, arguments, fields, and even attributes. You can specify multiple sets of symbols to substitute, and the target code will be duplicated for each symbol.
Example
use secador;
# ;
#
# let some_container = SomeContainer;
#
secador!;
This expands to:
# ;
#
# let some_container = SomeContainer;
#
for x in some_container.some_method.iter
for x in some_container.another_method.iter