macro_rules! derive_binary {
($($name:ident ( $variant:ident )),* $(,)?) => { ... };
}Expand description
Generates the BinaryFunc enum, its impl block (with 8 delegating methods),
Display impl, and From<InnerType> impls for each variant.
All variants must use explicit Name(Type) syntax. When the variant name equals
the inner type name, write e.g. AddInt16(AddInt16).