Macro impl_binary_op_from_py

Source
macro_rules! impl_binary_op_from_py {
    ($struct_name:ident, $enum_name:ident, $op_variants:tt) => { ... };
}
Expand description

Macro for generating binary operator FromPyObject implementations. This handles the common pattern of extracting left, right, and op from Python binary operators.