Derive Macro thalo_derive::Command
source · #[derive(Command)]
Expand description
Used to implement traits for an aggregate command enum.
A command enum can either wrap nested command structs which each implement Handle
,
or contain the data embedded without nested command structs.
Depeneding on this, the implementation for thalo::Handle<...> for thalo::State<T>
will be slightly different.
However, the implementation should not concern developers, as this is only used internally by the
thalo::export_aggregate!
macro.
If the command uses nested command structs, then a From
implementation will be generated for each variant.