Skip to main content

Module macros

Module macros 

Source

Macrosยง

derive_binary ๐Ÿ”’
Generates the BinaryFunc enum, its impl block (with 8 delegating methods), Display impl, and From<InnerType> impls for each variant.
derive_unary ๐Ÿ”’
Temporary macro that generates the equivalent of what enum_dispatch will do in the future. We need this manual macro implementation to delegate to the previous manual implementation for variants that use the old definitions.
to_unary ๐Ÿ”’