Skip to main content

command_registry

Macro command_registry 

Source
macro_rules! command_registry {
    (
        $registry:ident {
            $(
                $command:ident => $handler:expr
            ),* $(,)?
        }
    ) => { ... };
}
Expand description

Create a command registry with automatic dispatch