Macro rustradio::map_block_convert_tag_macro

source ·
macro_rules! map_block_convert_tag_macro {
    ($name:path, $out:ident) => { ... };
}
Expand description

Version of map_block_convert_macro that supports adding tags.

Output type may be different from input type.

process_one(&mut self, s: Type1, tags: []Tag) -> (Type2, []Tag) must be implemented by the block.

Both types are derived, so only the name of the block is needed at macro call.